设为首页 加入收藏

TOP

解决不能连接远程postgresql
2015-07-24 10:23:53 来源: 作者: 【 】 浏览:0
Tags:决不能 连接 远程 postgresql

在远程服务器上安装了postgresql,用 pgAdmin添加服务器始终不行。

解决办法:

在远程的postgresql数据库上的pg_hba.conf中添加 host all all 0.0.0.0/0 trust

并保证postgresql.conf 中参数设置为listen_addresses = '*'

修改完毕后重启:

/bea/PostgreSQL/9.3/bin/pg_ctl stop

/bea/PostgreSQL/9.3/bin/pg_ctl start

启动过程中如果报,pg_ctl: no database directory specified and environment variable PGDATA unset 则设置下环境变量

PGDATA=/bea/PostgreSQL/9.3/data
export PGDATA

如果报CST LOG: could not create IPv6 socket: 协议不支持的地址族,忽略,不影响连接

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇阶段总结――――shell如何访问my.. 下一篇localhost错误导致Racroot.sh执行..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·微服务 Spring Boot (2025-12-26 18:20:10)
·如何调整 Redis 内存 (2025-12-26 18:20:07)
·MySQL 数据类型:从 (2025-12-26 18:20:03)
·Linux Shell脚本教程 (2025-12-26 17:51:10)
·Qt教程,Qt5编程入门 (2025-12-26 17:51:07)