一、Redhat家族(CentOS)
1、Install the repository RPM:
yum installhttps://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-1.noarch.rpm
2、Install the client packages:
yum install postgresql10
3、Optionally install the server packages:
yum install postgresql10-server
4、Optionally initialize the database and enable automatic start:
/usr/pgsql-10/bin/postgresql-10-setup initdb
systemctl enable postgresql-10
systemctl start postgresql-10
网友评论