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
转载于:https://blog.51cto.com/heyiyi/1891138
本文提供了一步一步的指导来帮助您在 CentOS 7 上安装 PostgreSQL 9.6 数据库服务器。从下载 RPM 包到安装及配置服务启动等流程均有详细介绍。
6746

被折叠的 条评论
为什么被折叠?



