Linux postgresql 10配置

1. 安装postgresql 10,我这里安装到了缺省目录/opt/PostgreSql/10
2. 修改安装目录下data目录下的pg_hba.conf, 在ipv4部分,复制存在的行并粘贴添加一行,然后将ip和端口改为0.0.0.0/0,保存退出。
3. 修改防火墙: vim /etc/sysconfig/iptables
通过复制粘贴添加一行-A INPUT 行,将端口号 改为5432, 保存退出。
4. 重启/保存防火墙: service iptables restart
                  service iptables save
5. 启动postgresql服务: service postgresql-10 start
6. 用其他机器的pgAdmin访问就可以了。

猜你喜欢

转载自johnsmith9th.iteye.com/blog/2397585