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

Centos 7 之 systemctl

2016-06-06 14:24 399 查看
systemctl 是 centos 7 引入的新特性。

systemctl - Control the systemd system and service manager

systemctl是 Systemd 的主命令,用于管理系统。主要负责控制systemd系统和服务管理器.

一、常见用法:

systemctl is-enabled servicename.service #查询服务是否开机启动

systemctl enable *.service #开机运行服务

systemctl disable *.service #取消开机运行

systemctl start *.service #启动服务

systemctl stop *.service #停止服务

systemctl restart *.service #重启服务

systemctl reload *.service #重新加载服务配置文件

systemctl status *.service #查询服务运行状态

systemctl –failed #显示启动失败的服务

参考:http://www.ahlinux.com/centos/8658.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: