[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