环境:centos6.5、PostgreSQL10
官方链接:https://www.postgresql.org/
此处的具体地址根据不同的系统环境下载选择适适合的安装包:
https://www.postgresql.org/download/
1 系统环境配置:
关闭防火墙:
#systemctl stop firewalld.service
#systemctl disable firewalld.service
设置selinux
#vim /etc/selinux/config
修改 SELINUX=disabled
安装依赖:
# yum install -y flex bison readline-devel zlib-devel openjade docbook-style-dsssl
重启服务器
#reboot
2 安装postgreSQL
下载并安装postgreSQL10
#yum install https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-6-x86_64/pgdg-centos10-10-1.noarch.rpm
#yum install p