首页 > 其他 > 详细

CentOS7 systemctl的使用

时间:2016-06-27 19:45:01      阅读:216      评论:0      收藏:0      [点我收藏+]

# 查看正在运行的服务

systemctl

 

# 查看某个服务的状态

systemctl status httpd.service

技术分享

 

# 启动服务

systemctl start  foo.service

如:systemctl start httpd.service 

 

# 停止服务

systemctl stop foo.service

如:systemctl stop httpd.service

 

# 重启服务

systemctl restart foo.service

如:systemctl restart httpd.service

 

# 重新加载配置文件

systemctl reload  foo.service

如:systemctl reload httpd.service

 

# 开机时启动一个服务

systemctl enable foo.service

如:systemctl enable httpd.service

 

# 开机时关闭一个服务

systemctl disable foo.service

如:systemctl disable httpd.service

 

# 查看服务是否开机启动

systemctl is-enabled foo.service

如:systemctl is-enabled httpd.service

技术分享

 

CentOS7 systemctl的使用

原文:http://www.cnblogs.com/D-Chen/p/5621281.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!