您的位置:首页 > 运维架构 > Linux

Linux---systemctl命令

2017-02-13 21:15 393 查看
        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
 
        最近接触运维的东西比较多,一下子就发现自己之前所了解的linux知识不够系统,需要加强。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: