In Linux, add the self-installed Apache (httpd) as the system service and start it on startup.

Source: Internet
Author: User
In Linux, add the self-installed Apache (httpd) as the system service and start it on startup. 1 & gt; check/etc/init. d/whether the httpd service www.2cto exists. comls/etc/init. d/| grephttpd if the next step 2 & gt; is not executed...
In Linux, add the self-installed Apache (httpd) as the system service and start it on startup. 1> check/etc/init. d/whether the httpd service www.2cto.com ls/etc/init. d/| grep httpd if the next step is not executed 2> Copy the apachect1 in the installation directory to the directory and change it to httpd cp/home/houqingdong/http-exe/bin/apachect1/etc /init. d/httpd note: red indicates your installation directory. 3> execute chkconfig -- add httpd to add the specified system service, but the following warning is displayed: the httpd service does not support chkconfig and supports vi/etc/init. d/httpd #! Add these two sentences under/bin/sh: www.2cto.com # chkconfig: 345 85 15 # description: Start and stop the Apache HTTP Server. the final result is: 4> execution: chkconfig -- add httpd chkconfig httpd on to add successfully. 5> check whether the chkconfig -- list httpd is added successfully.


The solution to this problem reference link: http://www.2cto.com/database/201211/169753.html

Note: The link also shows how to set mysql as a self-starting system service.
 

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.