Set apache in Linux and start mysql at startup

Source: Internet
Author: User


In Linux, apache is set, mysql is started, and mysql is set to linux service www.2cto.com cp/usr/local/mysql5/share/mysql. server/etc/init. d/mysqldchkconfig -- add mysqldchkconfig -- level 2345 mysqld onchown mysql: mysql-R/usr/local/mysql5/service mysqld start apache is set to linux service cp/usr/local/apache2/bin/apachectl/etc/init. d/httpdvi/etc/init. d/httpd in #! /Bin/sh Add the following two lines to www.2cto.com # chkconfig: 345 85 15 # description: Start and stops the Apache HTTP Server. then chmod + x/etc/rc. d/init. d/httpdchkconfig -- add httpd and then you can run the setup command to enter the service settings and set it to start the second method at/etc/rc. d/rc. add the command to start apache in local, for example:/usr/local/httpd/bin/apachectl start
 

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.