【PostgreSQL启动,停止命令(重启)】
找到 /usr/lib/systemd/system文件夹路径看是否包含 postgresql服务
关闭服务:
systemctl stop postgresql-12.service
启动服务
systemctl start postgresql-12.service
重启服务
systemctl restart postgresql-12
查看状态
systemctl status postgresql-12.service