PostgreSQL: Linux downloads (Red Hat family)
sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
# Install PostgreSQL:
sudo yum install -y postgresql14-server
# Optionally initialize the database and enable automatic start:
sudo /usr/pgsql-14/bin/postgresql-14-setup initdb
sudo systemctl enable postgresql-14
sudo systemctl start postgresql-14
https://blog.csdn.net/qq_40965479/article/details/124476684
https://blog.csdn.net/lixinkuan328/article/details/105621127
https://blog.csdn.net/zhenghongcs/article/details/122316936
https://blog.csdn.net/asd54090/article/details/129432247