相关疑难解决方法(0)

PG :: ConnectionBad - 无法连接到服务器:连接被拒绝

每次我运行我的rails 4.0服务器,我得到这个输出.

Started GET "/" for 127.0.0.1 at 2013-11-06 23:56:36 -0500

PG::ConnectionBad - could not connect to server: Connection refused
Is the server running on host "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?
could not connect to server: Connection refused
Is the server running on host "localhost" (fe80::1) and accepting
TCP/IP connections on port 5432?
: …
Run Code Online (Sandbox Code Playgroud)

ruby database-connection ruby-on-rails pg rails-postgresql

253
推荐指数
15
解决办法
22万
查看次数