https://blog.csdn.net/weixin_45616246/article/details/118734374
yum进行安装
https://www.yisu.com/zixun/586064.html
9.6 版本 https://www.likecs.com/show-305642137.html
yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpmyum install -y postgresql96-server### 可能遇到问题Last metadata expiration check: 0:07:07 ago on Wed 28 Oct 2020 04:48:26 PM CST.All matches were filtered out by modular filtering for argument: postgresql96-serverError: Unable to find a match: postgresql96-server### 执行 yum -qy module disable postgresql/usr/pgsql-9.6/bin/postgresql96-setup initdbsystemctl enable postgresql-9.6systemctl start postgresql-9.6
数据库安装包下载地址:【下载到家里的电脑了】
https://download.postgresql.org/pub/source/v9.6.4/
使用安装包进行安装的方式:
https://baijiahao.baidu.com/s?id=1694465909495682742&wfr=spider&for=pc
