安装postgresql

Posted ShuiChe’s Blog

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了安装postgresql相关的知识,希望对你有一定的参考价值。

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

  

以上是关于安装postgresql的主要内容,如果未能解决你的问题,请参考以下文章