然后在此文件(/usr/local/apache/bin/apachectl)总添加以下几行(大概在文件顶部,约第二行的地方): # chkconfig: 2345 10 90 (10 和 90是代表的意思我还不太清楚,请高手指教) # description: Activates/Deactivates Apache Web Server (上面的#不能省去) 最后,运行chkconfig把Apache添加到系统的启动服务组里面:
# /sbin/chkconfig --del httpd # /sbin/chkconfig --add httpd # /sbin/chkconfig httpd on # /sbin/chkconfig httpd off ------------------------------------------------------------------------ Mysql自动启动设置 # /sbin/chkconfig --add mysql # /sbin/chkconfig mysql on # /sbin/chkconfig mysql off