Ubuntu Service Management

Source: Internet
Author: User

Uredhat provides chkconfig this command to manage system service on/off at different operating levels: Chkconfig ServiceName on/off and can view current development status with Chkconfig--list (two bars).

Without this command in Ubuntu, you can actually manage the system service without any commands, and you can manage the service by changing the startup script name under/ETC/RC*.D (* for values from 0 to 6 and s). For example, do not want to let KDM automatically start, you can: sudo find/etc/rc*-name *kdm*-exec rm {}/; That is, the KDM startup script is all erased.

Ubuntu also provides another simple command for managing. But first the service must already exist in the/ETC/INIT.D directory. Such as:

Add a service: sudo update-rc.d ServiceName defaults

Remove a service: sudo update-rc.d ServiceName remove

You can also install a more powerful tool: sudo apt-get install sysv-rc-conf sysvconfig

Start: sudo sysv-rc-conf It configures the startup situation of each service at all levels.

Whenever you want to start a service, you can: Sudo/etc/init.d/servicename start

For example I want to telnet, to use SSH service: SUDO/ETCINIT.D/SSH Start (other system may be sshd)

You can also do something else: start: Start the service stop: Stop service restart: Shut down the service, and then restart Reload: Do not restart the configuration file status: Provides the current state of the service Condrestart: If the service is locked, This to shut down the service, and then start again. The meaning of Linux runlevel: usually there are several runlevel:runlevel System state 0 halt the System 1 single user mode 2 BAS IC Multi User mode 3 Multi user mode 5 Multi user mode with GUI 6 reboot the system S a single user mode RunLevel command to view when Pre-run level. The init command changes the current run level.

============

In Ubuntu, there is no chkconfig command to manage the service RunLevel, although it cannot be managed with this command, but it can be used to view the service running state.

So you can still install it: sudo apt-get install chkconfig and then Chkconfig--list.

In Ubuntu there is a chkconfig in place of the command sysv-rc-conf, installation method: sudo apt-get install sysv-rc-conf. This command is used in the same way as Chkconfig.

A bit different, the specific use of Baidu or Google will know

There is also a graphical interface management tool for the service in Ubuntu boot-up Manager, abbreviated as: BUM. Installing the sudo apt-get Install bum use method is not much to do introduction

There are specific service content for each service

Http://www.ownlinux.cn/2009/06/13/bum.html

Ubuntu Service Management

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.