最佳答案
在做任何事情之前,请注意我在 Stack Overflow 和整个网络上的文章中发现了几个类似的问题,但是没有一个能帮助我解决我的问题:
现在的问题是:
master
和一个 mvp
分支。git
版本与家酿(Mac)。现在,当我尝试在本地启动应用程序时,我得到了以下错误:
PG::ConnectionBad at /
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?
我几次试图重启我的电脑。
我还检查了 /usr/local/var/postgres
的内容:
PG_VERSION pg_dynshmem pg_multixact pg_snapshots pg_tblspc postgresql.conf
base pg_hba.conf pg_notify pg_stat pg_twophase postmaster.opts
global pg_ident.conf pg_replslot pg_stat_tmp pg_xlog server.log
pg_clog pg_logical pg_serial pg_subtrans postgresql.auto.conf
如您所见,这里没有 postmaster.pid
文件。
知道我该怎么补救吗?