微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

postgresql 9.6 rpm包安装 CentOS 7.2 X64

1.pgdg-centos96-9.6-3.noarch.rpm

Postgresql 9.6--》CentOS 7 - x86_64

下载链接

https://yum.postgresql.org/repopackages.PHP

rpm -ivh pgdg-centos96-9.6-3.noarch.rpm

2.postgresql96-server

# yum install -y postgresql96-server

# yum install -y postgresql96-contrib

3.检查安装

# rpm -qa|grep postgres

postgresql96-9.6.1-1PGDG.rhel7.x86_64

postgresql96-libs-9.6.1-1PGDG.rhel7.x86_64

postgresql96-server-9.6.1-1PGDG.rhel7.x86_64

postgresql96-contrib-9.6.1-1PGDG.rhel7.x86_64

4.初始化数据库

# /usr/pgsql-9.6/bin/postgresql96-setup initdb

5.添加服务

# systemctl enable postgresql-9.6.service

6.启动服务

# systemctl start postgresql-9.6.service

# su - postgres

psql

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐