CentOS7安装PostgreSQL12

PostgreSQL安装

参考如下链接:

https://www.postgresql.org/download/linux/redhat/

安装PostgreSQL的yum源

执行如下操作

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

安装PostgreSQL

执行

1
yum install postgresql12-server

安装完成后,初始化数据库并启动

1
2
3
service postgresql-12 initdb
chkconfig postgresql-12 on
service postgresql-12 start
阅读更多