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

systemctl命令使用方法和心得体会

2017-06-20 10:33 716 查看

转自:http://jingyan.baidu.com/article/f7ff0bfc73fa4f2e26bb1385.html

使用linux的同学对service和chkconfig两个命令都不陌生,其重要性不言而喻,那么怎么会突然冒出个systemctl命令呢?其实,为了简化操作,systemctl命令将service和chkconfig命令结合在了一起。这样通过一个命令就可以实现两个命令的功能。

systemctl命令的基本操作格式是:

systemctl   动作   服务名.service

查看帮助:systemctl --help

systemctl start httpd.service        
systemctl stop httpd.service  
systemctl status httpd.service  

使用systemctl命令,要记住start, stop, restart, status, enable, disable, is-enabled, mask, unmask。就可以很好的使用
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  linux systemctl