服务不支持chkconfig解决过程介绍

来源:互联网 发布:兰州理工大学 软件学院 编辑:程序博客网 时间:2024/05/16 01:51

用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


原创粉丝点击