标签: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
标签:systemctl
原文地址:http://yangzhiming.blog.51cto.com/4849999/1718317