Get the App
SLTechnology News&Howtos  ›  Database  › 

How to add apache and mysql to system Services and successfully set up Boot

Shulou Source: shulou.com Published: 2022-06-01 19:47:21 10月04日 Update

The following is followed by the author to understand how apache and mysql are added to the system service and successfully set up boot startup. I believe you will benefit a lot after reading it, and the text is not in the essence. I hope that apache and mysql how to add system services and successfully set up boot this short content is what you want.

Apache

1 cp / usr/local/apache/bin/apachectl / etc/init.d/httpd

2 chkconfig-add httpd

Error service httpd does not support chkconfig occurred

Open vi / etc/rc.d/init.d/httpd to add (#! / bin/sh below)

# chkconfig: 345 85 15

# description: Activates/Deactivates Apache Web Server

345 represents which Linux levels need to be started httpd. The startup sequence number is 85 and the shutdown sequence number is 15.

3 chkconfig httpd on

Mysql

1 cp / root/tools/mysql-5.1.72/support-files/mysql.server / etc/init.d/mysqld

1.1 chmod 700 / etc/init.d/mysqld

2 chkconfig-add mysqld

3 chkconfig mysqld on

After reading this article on how to add apache and mysql to system services and successfully set boot up, many readers will want to know more about it. For more industry information, you can follow our industry information section.

Tags: Success system service content serial number more industry affirmation benefit a lot representative message text friend column author article level reader information follow Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Linux Apple MariaDB Shulou Tech Info