美文网首页
CentOS 6.x 安装PostgreSQL9.6

CentOS 6.x 安装PostgreSQL9.6

作者: MrOldHe | 来源:发表于2017-03-23 15:07 被阅读0次

1.添加PRM包

yum install yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-6-x86_64/pgdg-centos96-9.6-3.noarch.rpm

2.安装PostgreSQL 9.5

yum install postgresql96-server postgresql96-contrib

3.初始化数据库

service postgresql-9.6 initdb

4.启动服务器

service postgresql-9.6 start

5.修改配置文件

vim /var/lib/pgsql/9.6/data/postgresql.conf
添加:
listen_address = '*'

6.重启服务

service postgresql-9.6 restart 

相关文章

网友评论

      本文标题:CentOS 6.x 安装PostgreSQL9.6

      本文链接:https://www.haomeiwen.com/subject/ntnznttx.html