启动服务

systemctl start xxxx.service

停止服务

systemctl stop xxxx.service

重启服务

systemctl restart xxxx.service

设置开机自动启动

systemctl enable xxxx.service

取消开机自动启动

systemctl disable xxxx.service

查询服务是否开机自启动

systemctl is-enabled xxxx.service

查询服务状态

systemctl status xxxx.service
posted on 2020-08-24 20:51  风停了,雨来了  阅读(156)  评论(0)    收藏  举报