用chkconfig将自编译设置为系统服务的时候,httpd 服务不支持chkconfig。解决过程如下:
1.编辑/etc/init.d/httpd
#!/bin/bash
#chkconfig:345 61 61
#description:Apache httpd
建议手动输入以上脚本
配置
httpd 0:关 1:关 2:开 3:开 4:开 5:开 6:关
chkconfig --add httpd
chkconfig httpd on
chkconfig --list
引用文章http://os.51cto.com/art/201006/207663.htm