systemctl常用操作

 

     systemctl命令详解

 

一、查询服务是否开机启动

 

 

 

    systemctl is-enabled xxx.service

 

 

 

二、开机运行服务

 

 

 

    systemctl enable xxx.service

 

 

 

三、取消开机运行

 

 

 

    systemctl disable xxx.service

 

 

 

四、启动服务

 

 

 

    systemctl start xxx.service

 

 

 

五、停止服务

 

 

 

    systemctl stop xxx.service

 

 

 

六、重启服务

 

 

 

    systemctl restart xxx.service

 

 

 

七、重新加载服务配置文件

 

 

 

    systemctl reload xxx.service

 

 

 

八、查询服务运行状态

 

 

 

    systemctl status xxx.service

 

 

 

九、显示启动失败的服务

 

 

 

    systemctl --failed

 

 

 

 

 

 

posted @ 2019-04-17 18:47  vitalityヾ  阅读(396)  评论(0编辑  收藏  举报