PostgreSQL(10+)
一、安装PostgreSQL
// 安装EPEL源 # wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm && rpm -ivh epel-release-6-8.noarch.rpm // 安装PGSQL # yum -y install https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-6-x86_64/pgdg-centos10-10-2.noarch.rpm # yum -y install postgresql10 # yum install -y postgresql10-server // 初始化启动服务 # service postgresql-10 initdb # chkconfig postgresql-10 on # service postgresql-10 start
备注:对于上面的脚本可以在官网(https://www.postgresql.org/download/linux/redhat/)找到,选择对应平台即可。