在 Ubuntu 18.04 中重新启动 PostgreSQL
Shihab Sikder
2022年6月13日

这篇简短的文章展示了如何在 Ubuntu 中重新启动 PostgreSQL。
在 Ubuntu 中重新启动 PostgreSQL 服务器
你可以使用以下命令在 Ubuntu 中重新启动 Postgres 服务器。
命令:
sudo service postgres restart
有时上面的命令不起作用。重新启动后可能会出现卡在集群中的问题。
要解决此问题,你可以执行以下命令。
命令:
sudo systemctl restart postgresql.service
如果要在启动 Ubuntu 时自动启动,请使用以下命令。
命令:
sudo systemctl enable postgresql
作者: Shihab Sikder