systemctl命令用法

来源:互联网 发布:数据挖掘导论英文版 编辑:程序博客网 时间:2024/05/24 00:43

systemctl命令用法

转自

http://blog.csdn.net/julius819/article/details/7665679


对比表,以 apache / httpd 为例
任务旧指令新指令使某服务自动启动chkconfig --level 3 httpd onsystemctl enable httpd.service使某服务不自动启动chkconfig --level 3 httpd offsystemctl disable httpd.service检查服务状态service httpd statussystemctl status httpd.service (服务详细信息) systemctl is-active httpd.service (仅显示是否 Active)显示所有已启动的服务chkconfig --listsystemctl list-units --type=service启动某服务service httpd startsystemctl start httpd.service停止某服务service httpd stopsystemctl stop httpd.service重启某服务service httpd restartsystemctl restart httpd.service

原创粉丝点击