我的PostgreSQL已经疯了 - 服务命令说它工作得很好,但是当我尝试ps时它是不可见的。记录的任何记录都是不成功的:
postgres@vanqyard:~$ 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再次运作?