安装环境
-
操作系统
[root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core)
-
数据库版本
PostgreSQL9.6
安装
-
安装rpm
yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
-
安装客户端
yum install postgresql96
-
安装服务端
yum install postgresql96-server
-
初始化数据库
/usr/pgsql-9.6/bin/postgresql96-setup