标签:https gre conf repo nbsp password ash ble install
安装:
yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-6-x86_64/pgdg-centos96-9.6-3.noarch.rpm
yum install postgresql96-server postgresql96-contrib postgresql96 postgresql96-libs postgresql96-devel postgis2_96
初始化:
service postgresql-9.6 initdb
chkconfig postgresql-9.6 on service postgresql-9.6 start
service postgresql-9.6 restart
远程访问:
setup打开5432的tcp
service iptables restart
vi /var/lib/pgsql/9.6/data/pg_hba.conf
在该配置文件的host all all 127.0.0.1/32 md5行下添加以下配置,或者直接将这一行修改为以下配置
host all all 0.0.0.0/0 md5
vi /var/lib/pgsql/9.6/data/postgresql.conf
将该文件中的listen_addresses项值设定为“*”,在9.0 Windows版中,该项配置已经是“*”无需修改。
service postgresql-9.6 restart
修改初始密码
sudo -u postgres psql
ALTER USER postgres WITH PASSWORD
‘postgres‘
;
退出命令:\q
service postgresql-9.6 restart
标签:https gre conf repo nbsp password ash ble install
原文地址:http://www.cnblogs.com/sipo/p/6022508.html