systemctl命令

systemctl命令是系统服务管理器指令,它实际上将 service 和 chkconfig 这两个命令组合到一起。

任务新指令
使某服务自动启动 systemctl enable httpd.service
使某服务不自动启动 systemctl disable httpd.service
检查服务状态

systemctl status httpd.service (服务详细信息)

systemctl is-active httpd.service (仅显示是否 Active)

显示所有已启动的服务 systemctl list-units --type=service
启动某服务 systemctl start httpd.service
停止某服务 systemctl stop httpd.service
重启某服务 systemctl restart httpd.service
posted @ 2020-06-19 02:10  重积德  阅读(9)  评论(0编辑  收藏  举报