安装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

  

博客中所涉及到的图片都有版权,请谨慎使用