在过去的一周里postgreSQL,我未能设置好与我的Ruby-on-Rails项目一起工作。
我已经尝试卸载并重新安装,postgreSQL现在两次。
但是当我尝试启动时,postgreSQL我不断收到以下错误:
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?"
Run Code Online (Sandbox Code Playgroud)
我查看了许多在线资源,包括stackoverflow,但似乎都没有帮助。
我的pg_hba.conf文件的关键部分如下所示:
# TYPE DATABASE USER ADDRESS METHOD
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 …Run Code Online (Sandbox Code Playgroud)