一.注册Apache
- cp /usr/local/httpd/bin/apachectl /etc/rc.d/init.d/httpd
- vi httpd
- 找到:#!/bin/sh
- 另起一行,增加:
- # chkconfig: 35 70 30
- # description: Apache
- 保存退出
- chkconfig --add httpd
- chkconfig httpd on
- chkconfig --list httpd
二.注册mysql
- cp /usr/local/mysql5/share/mysql/mysql.server /etc/init.d/mysqld
- chkconfig --add mysqld
- chkconfig mysqld on
- chkconfig --list httpd
参考:http://blog.163.com/wxiuhui@126/blog/static/202023692010058177879/