启动service
systemctl start 服务名称.service
停止service
systemctl stop 服务名称.service
重启service
systemctl restart 服务名称.service
查看service状态
systemctl status 服务名称.service
在开机时启用service
systemctl enable 服务名称.service
在开机时禁用service
systemctl disable 服务名称.service
查看service是否开机启动
systemctl is-enabled 服务名称.service
查看已启动的service列表
systemctl list-unit-files|grep enabled
查看启动失败的service列表
systemctl --failed
查看service日志
journalctl -f -u 服务名称.service -n 1000