CentOS7安装PostgreSQL10

CentOS7安装PostgreSQL10

官网

安装 repository RPM:

yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm

安装 packages:

yum install postgresql10

安装 server packages:

yum install postgresql10-server

初始化

/usr/pgsql-10/bin/postgresql-10-setup initdb
systemctl enable postgresql-10
systemctl start postgresql-10

你可能感兴趣的:(CentOS7安装PostgreSQL10)