码迷,mamicode.com
首页 > 其他好文 > 详细

Redhat7 systemctl命令

时间:2015-12-01 01:51:37      阅读:739      评论:0      收藏:0      [点我收藏+]

标签:systemctl


Redhat7 systemctl命令:


启动、停止、重启、查看状态:


# systemctl start\stop\restart\status httpd


激活服务:

# systemctl is-active  httpd


开机启动httpd:

# systemctl enable httpd 


开机不启动httpd:

# systemctl disable httpd


使用systemctl命令杀死服务:

# systemctl kill httpd



列出所有服务(包括启用和禁用):

# systemctl list-units --type=service



屏蔽服务(使它不能启动或显示):


# systemctl mask httpd


取消屏蔽:


# systemctl unmask httpd


本文出自 “linux” 博客,请务必保留此出处http://yangzhiming.blog.51cto.com/4849999/1718317

Redhat7 systemctl命令

标签:systemctl

原文地址:http://yangzhiming.blog.51cto.com/4849999/1718317

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!