[Linux]Ubuntun與redhatService管理對比

大搜車-自娛發表於2013-11-14

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

相關文章