CentOS 7.0 systemctl使用说明
来源:互联网 发布:知乎付费问答 编辑:程序博客网 时间:2024/06/05 13:22
http://blog.chinaunix.net/uid-29179844-id-4416943.html
centos 7.0 引入了很多心得特性,感觉比较大的是sytemctl 命令的使用。
systemd使用方法:
systemd的服务管理程序
systemctl是最主要的工具。它融合 service 和chkconfig的功能于一体。你可以使用它永久性或只在当前会话中启用/禁用服务。
下面命令用于列出正在运行的服务或其他: systemctl
更多详细信息请参考手册页(man systemctl)。systemd-cgls以树形列出正在运行的进程。它可以递归显示给定控制组内容。详情请参阅systemd-cgls手册页。
如何启动/关闭、启用/禁用服务?
运行一个服务:
systemctl start network.service 关闭网络服务:
systemctl stop network.service 重启网络服务:
systemctl restart network.service
显示一个服务(无论运行与否)的状态: systemctl status network.service
在开机时启用一个服务: systemctl enable network.service
在开机时禁用一个服务: systemctl disable network.service
查看服务开机是否启动:systemctl is-enabled network.service;echo $? 或者是chkconfig使用systemctl命令,要记住start,stop,restart,status,enable,disable,is-enabled。就可以很好的使用!
systemd查看开机自启动的程序
相当于chkconfig --list
ls /etc/systemd/system/multi-user.target.wants/
0 0
- CentOS 7.0 systemctl使用说明
- CentOS 7.0 服务管理 – systemctl 命令
- systemd & systemctl 的一些使用说明
- systemd & systemctl 的一些使用说明
- Centos 7 之 systemctl
- docker centos systemctl开启
- centos systemctl用法
- centos 7 systemctl 命令总结
- CentOS 7 上systemctl 的用法
- RHEL/CentOS 7.x的systemctl
- CentOS 7 上systemctl 的用法
- CentOS 7 上systemctl 的用法
- CentOS 7 上systemctl 的用法
- CentOS 7 上systemctl 的用法
- centos 7 解决 systemctl dbus bug
- CentOS 7 上systemctl 的用法 【转】
- CentOS 7系统服务管理工具systemctl介绍
- CentOS 7 上systemctl 的用法
- 题目1489:计算两个矩阵的乘积
- Unbuntu下Android studio报Unable to recreate missing debug keystore错误
- 【android】在xml文件中定义drawable数组、id数组等
- onselectstart
- DP问题各种模型的状态转移方程
- CentOS 7.0 systemctl使用说明
- c++学习之OO思想
- 深拷贝与浅拷贝
- Android PopupWindow显示在控件上方或者下方
- 抽屉效果实现原理
- python 3, 字符串连接速度
- Debian和Ubuntu的root用户
- android 守护线程Daemon解说
- 交换机端口汇聚