第一步:cp /usr/local/apache2/bin/apachectl /etc/init.d/httpd第二步:vim /etc/init.d/httpd在第一行#!/bin/sh下增加两行文字# chkconfig: 35 70 30# description: Apache第三步:保存退出chkconfig --level 35 httpd on