【发布时间】:2016-02-23 23:54:22
【问题描述】:
Web 开发新手。尝试为 pgAdminIII 连接和注册新服务器。 (使用云 9 IDE)..
在浏览器中查看时出现此错误..
_PG::CONNECTION BAD _
could not connect to server: Connection refused Is the server running on
"localhost" (::1) and accepting TCP/IP connections on port 5432?
could not connect to server: Connection
refused Is the server running on host "localhost"
(127.0.0.1) and accepting TCP/IP connections on port 5432
PS。试图通过创建的新用户“ubuntu”超级用户访问..
我该如何解决这个问题?
PPS。在 cloud 9 的社区论坛上,一名员工说.. “只有端口 8080、8081 和 8082 对工作区开放,因此如果您想从外部访问数据库,您需要在这些端口之一上运行它。确保您可以使用 curl 从本地终端访问它,并且确保它监听的是 0.0.0.0 而不是 127.0.0.1,因为后者只允许本地连接。"
最后,他们的 ide 安装了 postgres,我需要做的就是设置它..
在尝试注册新服务器以使用 gui 时如何使用上述信息?
如果我需要添加任何其他内容,请告诉我。
谢谢。
【问题讨论】:
-
找到解决方案了吗?
标签: postgresql ruby-on-rails-4 cloud9-ide pgadmin