基于唐成的postgresSQL相同操作不在累述。
选择CentOS-7.0-1406-x86_64-Everything.iso。安装版本选择最后一个加上开发工具包。
安装完成配置ip网络后
cd /etc/sysconfig/network-scripts
vi ifcfg-enp2s0
ONBOOT=yes【编辑为此内容 保证开机连接网卡】
安装postgres
http抓包后;wget下载https://ftp.postgresql.org/pub/source/v9.4.3/postgresql-9.4.3.tar.bz2
yum search zlib |grep dev
yum install zlib-devel.x86_64
yum search readline|grep dev
yum install readline-devel.x86_64
postgresql.conf中
listin
port
注释打开
pg_hba.conf中
添加
host all all 0.0.0.0/0 md5
psql #进入postgres
alter user postgres with password 'postgres'; #添加密码提供外部连接