postgresql安装
yum install -y perl-ExtUtils-Embed readline-devel zlib-devel pam-devel libxml2-devel libxslt-devel openldap-devel yum install readline-devel -y yum install libxslt-devel -y
useradd postgresql mkdir -p /usr/local/postgresql/data chown -R postgresql:postgresql /usr/local/postgresql
./configure --prefix=/usr/local/postgresql --with-python --with-libxml --with-libxslt
make && make install
打开profile文件,添加环境变量
vim /etc/profile #拉到profile文件