加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

postgresql – 如何重新启动openshift postgres盒式磁带?

发布时间:2020-12-13 15:54:42 所属栏目:百科 来源:网络整理
导读:我的应用程序已经崩溃,因为它无法连接到postgres数据库,当我尝试通过ssh和psql连接到数据库时,我得到以下消息: psql: could not connect to server: Connection refused Is the server running on host "GEAR_ID-NAMESPACE.rhcloud.com" (IP_ADDRESS) and a
我的应用程序已经崩溃,因为它无法连接到postgres数据库,当我尝试通过ssh和psql连接到数据库时,我得到以下消息:

psql: could not connect to server: Connection refused
         Is the server running on host "<GEAR_ID>-<NAMESPACE>.rhcloud.com" (<IP_ADDRESS>) and accepting
         TCP/IP connections on port <PORT_NUMBER>?

运行rhc app show –state prints:

Cartridge jbossas-7,haproxy-1.4 is started
Cartridge postgresql-9.2 is started

另外,运行rhc app show显示没什么异常.

我无法telnet到上面的IP_ADDRESS& POST_NUMBER,看起来两个齿轮之间的通信已经断开了.

有任何想法吗?

解决方法

我有同样的问题.使用pg_ctl而不是rhc命令为我修复它.

$rhc ssh <appname>
[...rhcloud.com ...]&; pg_ctl restart
pg_ctl: old server process (PID: 20034) seems to be gone
starting server anyway
server starting

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读