#查看正在运行的服务
systemctl
#启动,停止,重启服务
systemctl start postgresql-9.4.service
systemctl stop postgresql-9.4.service
#查看一个服务的状态
systemctl status postgresql-9.4.service
#开机时启用一个服务
systemctl enable postgresql-9.4.service
#开机时关闭一个服务
systemctl disable postgresql-9.4.service
#查看服务是否开机启动
systemctl is-enabled postgresql-9.4.service
systemctl
#启动,停止,重启服务
systemctl start postgresql-9.4.service
systemctl stop postgresql-9.4.service
systemctl restart postgresql-9.4.service

#查看一个服务的状态
systemctl status postgresql-9.4.service
#开机时启用一个服务
systemctl enable postgresql-9.4.service
#开机时关闭一个服务
systemctl disable postgresql-9.4.service
#查看服务是否开机启动
systemctl is-enabled postgresql-9.4.service
本文介绍如何使用systemctl命令管理PostgreSQL 9.4服务,包括查看状态、启动、停止、重启服务,以及设置服务随系统启动或禁用。
5665

被折叠的 条评论
为什么被折叠?



