有一天,我的 Postgresql 服务器停止工作。检查日志。它以某种方式关闭了。
\n\nroot@ip_address:/# tail /var/log/postgresql/postgresql-10-main.log\n2020-02-19 06:47:49.215 CET [23497] LOG: received smart shutdown request\n2020-02-19 06:47:49.477 CET [23497] LOG: worker process: logical replication launcher (PID 23512) exited with exit code 1\n2020-02-19 06:47:49.482 CET [23507] LOG: shutting down\n2020-02-19 06:47:49.546 CET [23497] LOG: database system is shut down\n
Run Code Online (Sandbox Code Playgroud)\n\n当我跑步时,
\n\nroot@ip_address:/# psql\npsql: could not connect to server: No such file or directory\n Is the server running locally and accepting\n connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?\n
Run Code Online (Sandbox Code Playgroud)\n\n它抱怨没有文件和目录。所以我检查了我是否postgresql
跑步。
root@ip_address:/# …
Run Code Online (Sandbox Code Playgroud)