PostgreSQL
下载
官网地址:https://www.postgresql.org/
下载地页面:https://www.postgresql.org/download/linux/redhat/
安装
使用yum命令添加PostgreSQL软件源。
[root@localhost ~] yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
使用yum命令安装PostgreSQL。
[root@localhost ~] yum install postgresql12
[root@localhost ~] yum install postgresql12-server
[root@localhost ~] yum install postgresql12-contrib
初始化数据库。
[root@localhost ~] /usr/pgsql-12/bin/postgresql-12-setup initdb
配置开机启动与启动
[root@localhost ~] systemctl enable postgresql-12
[root@localhost ~] systemctl start po