【发布时间】:2016-10-06 08:24:21
【问题描述】:
我正在使用 Rails 开发网站,但是当我尝试打开本地主机时出现此错误
could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?
如何解决问题
【问题讨论】:
-
您是否正在尝试启动 postgres 服务器?
-
我不确定它是否是正确的解决方案,但我可以尝试,问题不知道如何在 Window 上启动它
-
你在windows系统上工作吗?当你得到这个错误?在运行 rails s 时?
-
是的,我在 Windows 8.1 上运行它,当我尝试在 localhost:3000 上运行我的网站时出现此错误
标签: ruby-on-rails ruby-on-rails-4