- Linux Systemctl 是一个系统管理守护进程,一些命令如下
#列出所有可用单元
systemctl list-unit-files
#列出所有运行单元
systemctl list-units
#列出所有失败单元
systemctl -failed
#检查某个单元是否启用
systemctl is-enabled xxx.service
#列出所有服务
systemctl list-unit-files -type=service
#启动、重启、停止、重载服务以及检查服务
systemctl start xxx.service
systemctl restart xxx.service
systemctl stop xxx.service
systemctl reload xxx.service
systemctl status xxx.service
#激活服务并在开机启动或禁用服务
systemctl is-active xxx.service
systemctl enable xxx.service
systemctl disable xxx.service
#列出所有系统挂载点
systemctl list-unit-files -type=mount
#检查服务所有配置
systemctl show xxx