当前位置: 首页 > news >正文

如何制作外贸网站 wordpress不备案 国内网站

如何制作外贸网站 wordpress,不备案 国内网站,apache 多个网站,东莞网上商城网站建设零、前言 本文是基于阿里云ECS服务器进行的实践操作#xff0c;操作系统版本#xff1a;Red Hat Enterprise Linux 7 PG数据库版本#xff1a;PostgresSql 15 PG安装方式#xff1a;yum 由于本人新接触pg数据#xff0c;本次也是出于好奇#xff0c;就对pg数据库的pg_du…零、前言 本文是基于阿里云ECS服务器进行的实践操作操作系统版本Red Hat Enterprise Linux 7 PG数据库版本PostgresSql 15 PG安装方式yum 由于本人新接触pg数据本次也是出于好奇就对pg数据库的pg_dump备份操作进行了一次试验操作过程可能有些不当敬请谅解。 本文只供留做笔记或新手作为参考不作为技术指导类文章。操作需具备pg基础及linux基本操作知识。 一、备份 --- 1.1、首先新建备份sql输出的目录并授权 # root用户操作 [rootwstech ~]# mkdir -p /usr/pgsql-15/backup--- 1.2、备份操作 -- 切换postgres用户 su - postgrescd /usr/pgsql-15/bin --- 1.3、执行备份注意文件目录——可执行命令的目录以及输出备份文件的目录不然恢复的时候找不到。另外需要注意输出目录的磁盘余量。 -bash-4.2$ ./bin/pg_dump mydb ./backup/mydb.sql --- 1.4、查看文件 -bash-4.2$ cd pgsql-15/backup/ -bash-4.2$ ll total 4 -rw-r--r-- 1 postgres postgres 1073 Aug 26 23:42 mydb.sql --- 1.5、查看备份文件sql文本内容 -bash-4.2$ cat mydb.sql -- -- PostgreSQL database dump ---- Dumped from database version 15.4 -- Dumped by pg_dump version 15.4SET statement_timeout 0; SET lock_timeout 0; SET idle_in_transaction_session_timeout 0; SET client_encoding UTF8; SET standard_conforming_strings on; SELECT pg_catalog.set_config(search_path, , false); SET check_function_bodies false; SET xmloption content; SET client_min_messages warning; SET row_security off;SET default_tablespace ;SET default_table_access_method heap;-- -- Name: weather_info; Type: TABLE; Schema: public; Owner: postgres --CREATE TABLE public.weather_info (city character varying(80),temp_lo integer,temp_hi integer,prcp real,date date );ALTER TABLE public.weather_info OWNER TO postgres;-- -- Data for Name: weather_info; Type: TABLE DATA; Schema: public; Owner: postgres --COPY public.weather_info (city, temp_lo, temp_hi, prcp, date) FROM stdin; US 46 50 0.25 1994-11-27 UK 43 57 0 1994-11-29 Hayward 37 54 \N 1994-11-29 \.-- -- PostgreSQL database dump complete ----- 1.6、删除数据库mydb -bash-4.2$ dropdb mydb; -bash-4.2$ psql psql (15.4) Type help for help. --- 1.7、查看是否删除成功已经没有了说明删除成功了 postgres# \lList of databasesName | Owner | Encoding | Collate | Ctype | ICU Locale | Locale Provider | Access privileges -------------------------------------------------------------------------------------------------------------dbname | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | | libc |dengyu | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | | libc |postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | | libc |template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | | libc | c/postgres | | | | | | | postgresCTc/postgrestemplate1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | | libc | c/postgres | | | | | | | postgresCTc/postgres (5 rows) 二、恢复 --- 2.1、新建目标库newdb数据库 -bash-4.2$ createdb newdb; --- 2.2、进入psql可执行文件目录bin目录 -bash-4.2$ cd /usr/pgsql-15/ -bash-4.2$ ls backup bin lib share --- 2.3、恢复 -- 执行恢复注意可执行文件路径及备份文件路径 -bash-4.2$ ./bin/psql newdb ./backup/mydb.sql SET SET SET SET SETset_config ------------(1 row)SET SET SET SET SET SET CREATE TABLE ALTER TABLE COPY 3 -bash-4.2$--- 2.4、恢复完成后链接数据库 -bash-4.2$ psql psql (15.4) Type help for help. --- 2.5、切换到newdb数据库 postgres# \c newdb You are now connected to database newdb as user postgres. --- 2.6、看数据库中表信息 newdb# \dList of relationsSchema | Name | Type | Owner ---------------------------------------public | weather_info | table | postgres (1 row) --- 2.7、查询newdb中恢复的表weather_info的数据 newdb# select * from weather_info;city | temp_lo | temp_hi | prcp | date ---------------------------------------------US | 46 | 50 | 0.25 | 1994-11-27UK | 43 | 57 | 0 | 1994-11-29Hayward | 37 | 54 | | 1994-11-29 (3 rows)newdb#
http://www.pierceye.com/news/612670/

相关文章:

  • 西南城乡建设部网站首页python3做网站教程
  • 网站首页设计欣赏个人电影网站建设
  • 导航网站建设怎么给网站图片加alt
  • 备案成功后怎么建设网站宠物喂养网页设计模板以及代码
  • 东莞哪家网站建设比较好wordpress更改语言设置
  • 如何找做网站的客户wordpress适合视频网站吗
  • 网站建设的业务流程图拔萝卜视频播放在线观看免费
  • 建个网站要多少钱高安网站制作
  • dw设计模板百度ocpc如何优化
  • 苏宁网站优化与推广html教程网站
  • 怎么做网站网页免费高清屏幕录像
  • 网络推广哪个网站好亚马逊网站开发使用的什么方式
  • 佛山企业网站建设咨询怎么从零开始做网站
  • dede移动端网站源码中国能建设计公司网站
  • 潍坊网站建设多少钱做网站seo优化
  • 南昌网站建设方案外包怎么自己做网站凑钱
  • 贵州企业展示型网站建设网站建设需要摊销吗
  • 网站建设视频教程广州哪里有正规的技能培训
  • 网站后台iis配置小程序模板消息推送规则
  • 桥梁建设工程网站残疾人网站服务平台
  • 网站开发语言包括哪些潍坊公司注册
  • 平顶山网站制作哪家公司好阿里巴巴网站建设改图片
  • 网站设计培训学校有哪些wordpress主题什么值得买
  • 如皋建设工程局网站静态网站做淘宝客
  • 温州网站建设案例做网站卖衣服物流包年多少钱
  • 响应 网站建设招聘室内设计
  • 网站建设宣传册内容南京个人网站建设
  • 毕业设计可以做哪些网站遵义原创网站
  • 国外服装设计网站app网站建设需要什么
  • 网站建设a云世家宋南南网站建设合集