系统相关
首页 > 系统相关> > linux安装postgre9.6.20

linux安装postgre9.6.20

作者:互联网

linux安装postgre9.6.20

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

标签:postgresql96,20,x86,1PGDG,postgre9.6,64,linux,9.6,rpm
来源: https://blog.csdn.net/jingemperor/article/details/120074268