systemctl

任务 指令
使某服务自动启动 systemctl enable 服务名
使某服务不自动启动 systemctl disable 服务名
检查服务状态(详细) systemctl status 服务名(服务详细信息)
检查服务状态 systemctl is-active 服务名 (仅显现是否Active)
显示所有已启动服务 systemctl list-units –type=service
启动某服务 systemctl start 服务名
停止某服务 systemctl stop 服务名
重启某服务 systemctl restart 服务名