postgresql12 主从部署

postgresql12 主从部署

  1. yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
  2. yum install postgresql12
  3. yum install postgresql12-server
  4. /usr/pgsql-12/bin/postgresql-12-setup initdb
  5. systemctl enable postgresql-12
  6. systemctl start postgresql-12
  7. 服务器时区设置
    [root@localhost ~]# cp -rf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
  8. 配置postgresql.conf
listen_addresses = '*'                     
port = 5432
max_connections = 500
superuser_reserved_connections = 10
full_page_writes = 

你可能感兴趣的:(postgresql,database)