免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 70065 | 回复: 2
打印 上一主题 下一主题

pgadmin4无法远程连接到centos7.3 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2017-03-16 19:59 |只看该作者 |倒序浏览
在配置文件都做好,就是无法连接,看了资料, 说要配置服务器允许TCP/IP连接,不知如何配置
那台centos7最小化安装,可以ping通外网,已经设置固定ip,web外网可以访问,就是pgadmin4无法访问。5432的防火墙端口也开了


  1. psql: could not connect to server: Connection refused
  2.         Is the server running on host "server.joe.com" and accepting
  3.         TCP/IP connections on port 5432?
  4. This is the generic "I couldn't find a server to talk to" failure. It looks like the above when TCP/IP communication is attempted. A common mistake is to forget to configure the server to allow TCP/IP connections.
复制代码



论坛徽章:
0
2 [报告]
发表于 2017-03-16 20:29 |只看该作者
自己解决了,原来头晕失眠检查错了,另一配置文件

这样改才行,希望对后生有用

  1. vi /var/lib/pgsql/9.6/data/postgresql.conf

  2. 将listen_addresses前的#去掉,并将 listen_addresses = 'localhost' 改成 listen_addresses = '*';
复制代码


论坛徽章:
0
3 [报告]
发表于 2021-04-16 14:13 |只看该作者
我有次也是,,其他的改完了,就是没有改listen_addresses.....
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP