systemctl命令用法
2015-10-13 15:32
162 查看
对比表,以 apache / httpd 为例
任务 | 旧指令 | 新指令 |
---|---|---|
使某服务自动启动 | chkconfig –level 3 httpd on | systemctl enable httpd.service |
使某服务不自动启动 | chkconfig –level 3 httpd off | systemctl disable httpd.service |
检查服务状态 | service httpd status | systemctl status httpd.service (服务详细信息) |
systemctl is-active httpd.service (仅显示是否 Active) | ||
显示所有已启动的服务 | chkconfig –list | systemctl list-units –type=service |
启动某服务 | service httpd start | systemctl start httpd.service |
停止某服务 | service httpd stop | systemctl stop httpd.service |
重启某服务 | service httpd restart | systemctl restart httpd.service |
相关文章推荐
- 如何用Python输出漂亮的xml文件
- iClap是什么,能解决什么问题?
- 字典树java版本
- 百度统计之百度代码引用
- 运行时编程block
- 通过修改配置文件,手动创建一个Linux可登陆账户
- $().each和$.each()的区别和用法
- Visual Studio 2015中创建C#的Android项目提示"Value cannot be null"的解决方法
- Win7系统中如何显示文件扩展名
- 使用python + tornado 做项目demo演示模板
- andfix 增量升级更新 热补丁修复
- 停止Eclipse LogCat的自动滚动
- 环形旋转图2
- HttpClient 网络优化
- Android的Touch Mode
- Android的事件处理1
- DLL注入技术
- HttpClient 网络优化
- 无法嵌入互操作类型
- EasyUI - Tabs 选项卡标签