`
MyEyeOfJava
  • 浏览: 1124617 次
  • 性别: Icon_minigender_1
  • 来自: 北京
博客专栏
7af2d6ca-4fe1-3e9a-be85-3f65f7120bd0
测试开发
浏览量:70161
533896eb-dd7b-3cde-b4d3-cc1ce02c1c14
晨记
浏览量:0
社区版块
存档分类
最新评论

[Linux]Ubuntun与redhatService管理对比

阅读更多

Command Line Tools

Below is a table of example commands for managing services. The apache/httpd service is used as an example.

 

Task

Red Hat / Fedora

Ubuntu

Ubuntu 
(with sysv-rc-conf or sysvconfig)

Starting/stopping services immediately

service httpd start

invoke-rc.d apache start

service apache start

Enabling a service at boot

chkconfig httpd on

update-rc.d apache defaults

sysv-rc-conf apache on

Disabling a service at boot

chkconfig httpd off

update-rc.d apache purge

sysv-rc-conf apache off

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics