0
我的PostgreSQL已經瘋了 - 服務命令說它工作正常,但是當我嘗試ps時它是不可見的。任何登錄attepts是不成功的:在ps中沒有運行PostgreSQL
[email protected]:~$ psql
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
服務和ps輸出:
# service postgresql status
● postgresql.service - PostgreSQL RDBMS
Loaded: loaded (/lib/systemd/system/postgresql.service; enabled)
Active: active (exited) since Wed 2017-04-19 22:07:09 CEST; 2min 15s ago
Process: 15737 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 15737 (code=exited, status=0/SUCCESS)
Apr 19 22:07:09 systemd[1]: Started PostgreSQL RDBMS.
# ps aux | grep postgresql
root 15999 0.0 0.0 12728 2220 pts/1 S+ 22:09 0:00 grep postgresql
它用來做工精細,直到我開始玩supervisord。
如何讓postgres再次工作?
試試'ps auxw | grep postgres'來檢查正在運行的postgres進程。 – wildplasser
@wildplasser仍然相同 – asdfgh
什麼是'supervisord'?一種防火牆?無論如何:第一步:檢查(sys)日誌。 – wildplasser