systemctl命令
任务 | 新指令 |
---|---|
使某服务自动启动 | systemctl |
使某服务不自动启动 | systemctl disable httpd.service |
检查服务状态 |
systemctl status httpd.service (服务详细信息) systemctl is-active httpd.service (仅显示是否 Active) |
显示所有已启动的服务 | systemctl list-units -- |
启动某服务 | systemctl start httpd.service |
停止某服务 | systemctl stop httpd.service |
重启某服务 |