在带有 Postgres 12 服务器的 ubuntu 20.04 中,HD 出现问题后,Postgres 停止工作。下面是我的测试和解决问题的尝试:
\n~$ psql\npsql: error: 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"?\nRun Code Online (Sandbox Code Playgroud)\n当我尝试 systemctl 时:
\n$ sudo systemctl start postgresql@12-main\nJob for postgresql@12-main.service failed because the service did not take the steps required by its unit configuration.\nSee "systemctl status postgresql@12-main.service" and "journalctl -xe" for details.\nRun Code Online (Sandbox Code Playgroud)\nsystemctl status postgresql@12-main.service 的输出:
\n$ systemctl status postgresql@12-main.service\n\xe2\x97\x8f …Run Code Online (Sandbox Code Playgroud)