vi /etc/init.d/httpd !/bin/shi下面加入 !/bin/shi #chkconfig:2345 10 90 #description:Apache httpd chkconfig --add httpd