PostgreSQL10版本的主从安装配置在 http://www.javashuo.com/article/p-xugkknvh-ee.htmlhtml
$ yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm
$ yum install postgresql96
$ yum install postgresql96-server
$ yum install postgresql96-devel.x86_64
$ yum install postgresql96-contrib.x86_64
$ /usr/pgsql-9.6/bin/postgresql96-setup initdb
$ systemctl enable postgresql-9.6 $ systemctl start postgresql-9.6
$ passwd postgres
$ su - postgres $ psql -U postgres alter user postgres with password '你的密码';
可能在/var/lib/pgsql/9.6/data下,能够linux
在最后添加容许访问IP段(全网段可访问)
host all all 0.0.0.0/0 md5sql
找到用户参数listen_address(取消掉注释),改为下面样式:数据库
listen_address = '*'
启用密码验证centos
#password_encryption = on 修改成 password_encryption = on
$ systemctl restart postgresql-9.6
备注:使用Navicat For PostgreSql来链接post