Linux sets the service as a summary of the boot-up method

Source: Internet
Author: User
Tags rsync

Summary of several methods of Linux setup for boot

Like Windows, Linux can also set some services to boot, which avoids the hassle of opening a service every time you boot up! Linux boot the service is set to boot from a few ways:

Ntsysv Graphical interface settings

NTSYSV-NeWT + SysV, which is the SysV-style runlevel Configuration tool using the NeWT Library, Red hat follows the GPL-developed program and has an interactive interface that allows you to turn on and off the operating system with easy access to the arrow keys and SPACEBAR. In each execution level, set up the various services of the system.

Enter the Stsync command, will pop up a list of graphical interface, there will be a list of services can be loaded, the front of the service * To remove the indication is I only for the boot, otherwise not for power-on self-boot. Finally, with tab see Switch to OK, press the ENTER key to keep!

If the system does not have its own NTSYSV installed, use Yum to install it, the installation command is:

[Email protected] ~]# yum-y install NTSYSV

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/A4/83/wKioL1ms8reiR6mGAABcc177QMc810.png "title=" 231. PNG "alt=" Wkiol1ms8reir6mgaabcc177qmc810.png "/>


Second, the start command to join the service in/etc/rc.local

If Rsync is powered on, you can join the command to open rsync directly in/etc/rc.local, with the following commands:

[Email protected] ~]# echo "/usr/bin/rsync--deamon" >>/etc/re.local

[Email protected] ~]# tail-1/etc/rc.local

Third, use the Chkconfig command to add the service to boot from

Use the Chkconfig command to add the service to boot, adding the following methods:

[Email protected] ~]# chkconfig--level 2,3,4,5, on mysqld

This article from "Doublelinux" blog, declined reprint!

Linux sets the service as a summary of the boot-up method

Related Article

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.