安装postgresql
yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-6-x86_64/pgdg-centos96-9.6-3.noarch.rpm yum install postgresql96 ## Optionally install the server packages: yum install postgresql96-server ## Optionally initialize the database and enable automatic start: service postgresql-9.6 initdb chkconfig postgresql-9.6 on #开机启动 service postgresql-9.6 start