MySQL boot up

Source: Internet
Author: User

After installing MySQL, the default boot will not start automatically, you need to manually set up MySQL let it boot from boot.

First, with the Chkconfig command to see if MySQL is not in a manageable list, the command is:

Chkconfig--list

Messagebus 0:off 1:off 2:on 3:on 4:on 5:on 6:off
Mysqld 0:off 1:off 2:off 3:off 4:off 5:off 6:off
Netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off

If this is not mysqld in the list, you need to add this command first:

Chkconfig Add mysqld

Then use this command to set the boot up:

Chkconfig mysqld on

Messagebus 0:off 1:off 2:on 3:on 4:on 5:on 6:off
Mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off
Netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off

For Apache, the operation is as follows

Test environment:
1, Apache 2.2.9, installed under the/USR/LOCAL/APAHCE
2, Centos6.5
The first step:
CP/USR/LOCAL/APACHE/BIN/APACHECTL/ETC/RC.D/INIT.D/HTTPD//If there are other versions of Apache, you can also overwrite them directly.
Step Two:
Use the editor to open the httpd file and add two lines of text below the first line #!/bin/sh as follows
# chkconfig:35 70 30
# Description:apache
Then register the service
Chkconfig–add httpd

Everything OK, start the service
Service httpd Start

httpd 0:off 1:off 2:off 3:on 4:off 5:on 6:off
The first of the three numbers in the second row is the one that starts Apache at run level 3 and 5, and the second to third is about the priority configuration of start and stop, which doesn't matter

MySQL boot up

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.