1. 查看服务

systemctl status postgresql-10

2. 启动服务

systemctl start postgresql-10

3. 停止服务

systemctl stop postgresql-10

4. 禁用自启动服务

systemctl disable postgresql-10

5. 启用自启动服务

systemctl enable postgresql-10

更多推荐