Linux Setup Service three ways to boot _linux

Source: Internet
Author: User

Here is a introduction to Linux boot automatic startup of several methods, a total of 3 kinds, we can learn from! Experience with CentOS 5.3 System for example!

Method 1: Using the NTSYSV command to set up, using root login

Enter NTSYSV carriage return under the Terminal command, as shown below

In this interface, the operation can be a brief description of the operation:

Brackets (*) on behalf of the default boot boot, otherwise it will not start when the boot;

button function:

Up and down keys: can move between services

Space bar: Set to start or not start, * to set up

tab: Toggle between box, OK, cancle

F1: Help documentation, as shown below:

Method 2: Set using the command line chkconfig command

Briefly explain how to use the Chkconfig command

--list: Display the current service status bar

--level: Set a service to start or close at this level

To see whether a service is powered up by a single command:chkconfig--list Service name

command to open a service individually:chkconfig service name on

command to close a service individually:chkconfig service name off

To view the status of a service:/etc/intd.d/Service Name Status

Once setup is complete, restart

Method 3: User-defined Boot program (/etc/rc.d/rc.local)

Users can put their own written shellscript files into them, or the database automatically, was and so on

For example, let the database boot up:

Vi/etc/rc.local Add the following:

Su-oracle-c ' Lsnrctlstart '//Let the monitor start up

Su-oracle-c ' Dbstart '//Let the database start up

The above is for everyone to share the Linux set up service starting from three ways, I hope to learn some help, we can also combine an article before the study, there will be unexpected harvest.

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.