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
时间: 2024-11-03 05:26:45