Ubuntu and Redhat/fedora Service Management Command comparison table (with FEDORA16 new service management tool SYSTEMCTL)

Source: Internet
Author: User
Tags comparison table

Take APACHE/HTTPD service as an example

chkconfig httpd on

task

Red hat /  fedora

Ubuntu

< Strong>ubuntu  
(with sysv-rc-conf or sysvconfig)

start now/ Stop a service

service httpd start

invoke-rc.d Apache start

service Apache start

auto load at startup

update-rc.d Apache defaults

sysv-rc-conf Apache on

start without loading

chkconfig httpd off

update-rc.d Apache purge

sysv-rc-conf Apache off

Https://help.ubuntu.com/community/SwitchingToUbuntu/FromLinux/RedHatEnterpriseLinuxAndFedora

Installing sysv-rc-conf
$ sudo apt-get install sysv-rc-conf

Usage:
sysv-rc-conf--list [service name]
sysv-rc-conf [--level <runlevels>] <service name> <on|off>

Translator by: Starting from Fedora16, Redhat no longer recommends Ntsysv, Chkconfig, and service, but recommends using the new service Management tool Systemctl (seemingly powerful) , although the old instructions are also available.

Http://docs.fedoraproject.org/en-US/Fedora/16/html/System_Administrators_Guide/ch-Services_and_Daemons.html

Comparison table, taking apache/httpd as an example

Task Old instructions New directives
Enable a service to start automatically Chkconfig--level 3 httpd on
systemctl enable httpd.service
Make a service not start automatically Chkconfig--level 3 httpd off
systemctldisablehttpd.service
Check Service status Service httpd Status
systemctlstatushttpd.service (服务详细信息) 
systemctl is-active httpd.service (仅显示是否 Active)
Show all services that have been started (Who knows?) )
systemctl list-units --type=service           
Start a service Service httpd Start
systemctl start httpd.service
Stop a service Service httpd Stop
systemctl stop httpd.service
Restart a service Service httpd Restart
systemctl restart httpd.service

Ubuntu and Redhat/fedora Service Management Command comparison table (with FEDORA16 new service management tool SYSTEMCTL)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.