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

运维 系统运维
写了脚本,想用命令chkconfig加载自启动.提示"**服务不支持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:关闭

来源:(http://blog.sina.com.cn/s/blog_53b45c4d0100k3ji.html) - 编译的httpd不支持chkconfig的解决方法_天南地北_新浪博客

责任编辑:chenqingxiang 来源: 新浪博客
相关推荐

2010-06-24 17:37:59

服务不支持chkcon

2011-12-09 20:28:50

2020-07-02 10:30:52

iPhone苹果北斗

2011-08-09 09:03:15

SQL Server数服务器组件

2020-07-22 08:01:41

Python开发运算符

2021-10-27 07:15:36

Go 循环引用

2021-04-20 19:23:07

语法switch-casePython

2020-10-09 06:48:19

Pythonswitch语句

2009-11-10 15:19:35

Exchange 10Exchange201

2022-04-26 10:13:00

哈希索引MySQLInnoDB

2020-10-20 07:13:44

Web动态化CSS

2021-12-15 07:49:22

Go语言设计

2021-12-09 10:51:47

Go继承

2010-12-20 14:22:27

Nvidia英特尔Sandy Bridg

2022-09-13 12:03:39

cri-dockerKubernetesdockershim

2021-02-01 13:53:53

StringlongJava

2011-12-13 20:53:45

Flash

2012-02-01 10:20:19

Firefox 10发布

2009-02-23 09:19:33

windows 7启动画面

2010-01-27 09:10:06

Windows 7混合硬盘技术
点赞
收藏

51CTO技术栈公众号