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.