CentOS 7 上systemctl 的用法
2016-02-21 16:37
417 查看
我们对service和chkconfig两个命令都不陌生,systemctl 是管制服务的主要工具, 它整合了chkconfig 与 service功能于一体。systemctl is-enabled iptables.service
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的服务名为httpd
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的服务名为httpd
相关文章推荐
- systemctl启动服务脚本编写使用
- CentOS7 - systemd服务
- Centos7 修改运行级别
- CentOS 7 巨大变动之 systemd 取代 SysV的Init
- centos7中systemctl查看服务
- systemd系统服务管理详解
- CentOS7下源码安装Redis系统服务配置
- systemctl命令用法
- Archlinux systemd 开机执行rc.local
- 在CentOS 7上利用systemctl添加自定义系统服务
- MongoDB在CentOS 7上的systemctl服务配置
- 关于fedora20启动服务
- CentOS7的新特性介绍
- CentOS7 network.service loaded failed 处理技巧
- centos7/rhel7的与众不同系列(2)——如何配置vncserver
- CentOS7网络配置和服务管理
- 云主机配置Docker Bridge,在重新颠倒配置,重启网卡,导致物理网卡不正常工作
- systemctl系统服务管理,service,chkconfig
- 如何编写systemctl自启动服务 .service文件
- 监控宝内网采集器start.sh 添加systemctl开机自启动 jkb.service