我想在基於Yosemite的osX上安裝postgresql以使用Rails。 我嘗試了不同的東西: - 釀造。 - postgre.app - 直接從postgresql站點下載的dmg。在MacOS優勝美地上安裝Postgresql
當我型我有這裏面的psql在CLI:
psql is /usr/local/bin/psql
psql is /usr/local/bin/psql
psql is /usr/local/Cellar/postgresql/9.5.0/bin/psql
psql is /usr/local/bin/psql
如果我啓動工頭開始我有這樣的錯誤:
10:54:47 worker.1 | Is the server running locally and accepting
10:54:47 worker.1 | connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
如果我型PSQL我有這樣的錯誤太多:
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
您是否實際初始化並啓動了postgresql服務器? – jcaron
我已經按照brew的說明執行了此操作警告「launchctl load〜/ Library/LaunchAgents/homebrew.mxcl.postgresql.plist」 –
您在這一點上是否有任何錯誤?有一個postgresql進程在運行嗎?任何日誌? – jcaron