今天就跟大家聊聊有关服务不支持chkconfig解决过程是怎样的,可能很多人都不太了解,为了让大家更加了解,小编给大家总结了以下内容,希望大家根据这篇文章可以有所收获。
用chkconfig将自编译设置为系统服务的时候,httpd 服务不支持chkconfig。
解决过程如下:
1.编辑/etc/init.d/httpd
#!/bin/bash
#chkconfig:345 61 61
#description:Apache httpd
(哈哈,复制粘贴好像有问题,手动输入)
2.配置
[root@localhost ~]# chkconfig –add httpd
[root@localhost ~]# chkconfig –list|grep httpd
httpd 0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:关闭 6:关闭
[root@localhost ~]# chkconfig –level 345 httpd on
[root@localhost ~]# chkconfig –list|grep httpd
httpd 0:关闭 1:关闭 2:关闭 3:启用 4:启用 5:启用 6:关闭
看完上述内容,你们对服务不支持chkconfig解决过程是怎样的有进一步的了解吗?如果还想了解更多知识或者相关内容,请关注云搜网行业资讯频道,感谢大家的支持。