读书人

[Linux]Ubuntun与redhatService治理对

发布时间: 2013-11-23 10:52:51 作者: rapoo

[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

读书人网 >UNIXLINUX

热点推荐