yum install -y https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7.2-x86_64/pgdg-centos96-9.6-3.noarch.rpm
yum
install -y
postgresql96-server postgresql96-contrib
3、初始化数据库
1 |
|
4、设置开机自启动
1 |
|
5、启动服务
1 |
|
6、查看版本
1 |
|
PostgreSQL 9.5安装配置
1、修改用户密码
1 2 3 4 |
|
2、开启远程访问
1 2 |
|
3、信任远程连接
1 |
|
1 2 3 4 |
|
4、重启服务
1 |
|