CentOS auto-start service settings

Source: Internet
Author: User
Standard method:/sbin/chkconfiglist to view the list of services that can be started/sbin/chkconfighttpdon to enable auto-start. if the service cannot be found, you can try to use the rc. local file. 1. edit the rc. local file # vi/etc/rc. d/rc. local2 and add the following startup command/usr/sbin/apachectlsta.

Standard method:

/Sbin/chkconfig list view the list of services that can be started/sbin/chkconfig httpd on enable auto-start

If you cannot find the file in the service, try to use the rc. local file.

1. edit the rc. local file

#vi /etc/rc.d/rc.local

2. add the following startup command:

/usr/sbin/apachectl start/etc/rc.d/init.d/mysqld start/etc/rc.d/init.d/smb start/usr/local/subversion/bin/svnserve -d


3, note: my path is yum installation of these services to obtain the path, fill in according to their own installation path, can not find the help of whereis command (usage see http://hi.baidu.com/linglongwunv/blog/item/92641add86cb3da8cc42464b.html ), it mainly finds the three startup files apachectl, mysqld, and smb.

4. note: svn is not installed by yum. find svnserve in the bin directory in your installation directory.

Reprinted from www. webmaster. me


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.