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

    1. yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
    2. yum install -y postgresql96-server
    3. ### 可能遇到问题
    4. Last metadata expiration check: 0:07:07 ago on Wed 28 Oct 2020 04:48:26 PM CST.
    5. All matches were filtered out by modular filtering for argument: postgresql96-server
    6. Error: Unable to find a match: postgresql96-server
    7. ### 执行 yum -qy module disable postgresql
    8. /usr/pgsql-9.6/bin/postgresql96-setup initdb
    9. systemctl enable postgresql-9.6
    10. systemctl start postgresql-9.6

    数据库安装包下载地址:【下载到家里的电脑了】
    https://download.postgresql.org/pub/source/v9.6.4/

    使用安装包进行安装的方式:
    https://baijiahao.baidu.com/s?id=1694465909495682742&wfr=spider&for=pc