美文网首页
centos7 systemctl 基本命令

centos7 systemctl 基本命令

作者: 毛中杰 | 来源:发表于2018-08-25 22:32 被阅读0次

启动一个服务:systemctl start ss.service
关闭一个服务:systemctl stop ss.service
重启一个服务:systemctl restart ss.service
显示一个服务的状态:systemctl status ss.service
在开机时启用一个服务:systemctl enable ss.service
在开机时禁用一个服务:systemctl disable ss.service
查看服务是否开机启动:systemctl is-enabled ss.service
查看已启动的服务列表:systemctl list-unit-files|grep enabled
列出非系统服务列表:systemctl list-dependencies
查看启动失败的服务列表:systemctl --failed
重载服务配置: systemctl daemon-reload

相关文章

网友评论

      本文标题:centos7 systemctl 基本命令

      本文链接:https://www.haomeiwen.com/subject/qtigiftx.html