Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Add apache and mysql to the system service and set boot up

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Add apache and mysql to the system service and set boot up

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

Thus, the addition method is summarized.

This article is from the blog http://xiangji.blog.51cto.com, so be sure to keep this source.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report