环境信息:
华为云服务器 + centos 7.6
操作步骤:
下载
sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
安装
sudo yum install -y postgresql13-server postgresql13
sudo rpm -qi postgresql13-server
sudo systemctl enable postgresql-13
sudo systemctl start postgresql-13
sudo systemctl stop postgresql-13