下载安装postgresql
https://www.postgresql.org/download/linux/redhat/
- 安装rpm源
yum install https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm
- 安装客户端
yum install postgresql10
- 安装服务端
yum install postgresql10-server