2017-04-19 3 views
0

私のPostgreSQLが狂ってしまった - serviceコマンドはperferctlyうまく動作すると言いますが、私が試してみるとpsは見えません。ログインするために、任意のatteptsはunsuccesfulです: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で遊んで開始するまで、それが正常に動作するために使用しました。

どのように私は再びポストグルを動作させるのですか?

+0

試してみるps auxw | grep postgres'を実行して、実行中のpostgresプロセスをチェックします。 – wildplasser

+0

@wildplasserはまだ同じです – asdfgh

+0

'supervisord'とは何ですか?ファイアウォールの一種?とにかく:最初のステップ:(sys)ログを確認してください。 – wildplasser

答えて

0

あなたのスーパーバイザがまだ機能していて、[program:postgres]のようなプログラムがPostgreSQL用に設定されていると仮定した場合、supervisorctl(つまりstop postgres)以内で停止できますか?それがうまくいくならば、supervisordをシャットダウンし、従来のサービスを開始してPostgreSQLを起動してみてください。

関連する問題