「PostgreSQL」- 安装

  CREATED BY JENKINSBOT

PostgreSQL 10 On CentOS 7.x

yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
yum install -y postgresql10-server

/usr/pgsql-10/bin/postgresql-10-setup initdb

systemctl enable postgresql-10
systemctl start postgresql-10

PostgreSQL 9.2.24 on CentOS 7.5

# 安装
yum install postgresql-server

# 初始化
postgresql-setup initdb

# 启动服务
systemctl start postgresql

参考文献

Linux downloads (Red Hat family)