systemctl命令用法详解

systemctl命令用法详解
系统环境:Fedora 16
binpath:/bin/systemctl
package:systemd-units

systemctl enable httpd.service 
将httpd服务设为开机自动启动

systemctl disable httpd.service
禁止httpd服务开机自动启动

systemctl status httpd.service 
查看httpd服务的运行状态

//Loaded行中的enabled表示该服务是开机自动启动的,disable表示该服务不是开机自动启动的

systemctl is-active httpd.service
检查httpd服务是否处于活动状态

systemctl start httpd.service
启动httpd服务

systemctl stop httpd.service
停止httpd服务

systemctl restart httpd.service 
重新启动httpd服务

posted @ 2013-07-31 09:04  呵呵··  阅读(674)  评论(0编辑  收藏  举报