apache 不支持 chkconfig 解决方法
来源:互联网 发布:2016网络知识竞赛平台 编辑:程序博客网 时间:2024/05/16 05:59
将apache添加为开机启动有两个方法:
1、在/etc/rc.d/rc.local内加入启动命令 /usr/local/apache2/bin/apachectl start
2、将http添加为系统服务
cp /usr/local/apache2/bin/apachectl /etc/rc.d/init.d/httpd
chmod +x /etc/rc.d/init.d/httpd
[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:关闭
如果出现[root@localhost ~]# chkconfig --add httpd
httpd 服务不支持 chkconfig
解决过程如下:
编辑/etc/rc.d/init.d/httpd
#!/bin/bash
#chkconfig:345 61 61 //此行的345参数表示,在哪些运行级别启动,启动序号(S61);关闭序号(K61)
#description:Apache httpd //此行必写,描述服务.
添加红色部分就可以拉!
再[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:关闭
- apache 不支持 chkconfig 解决方法
- 服务不支持chkconfig解决方法脚本
- 服务不支持 chkconfig 的解决方法
- 服务不支持chkconfig解决方法脚本
- 服务不支持 chkconfig 的解决方法
- 将apache添加为开机启动与编译的httpd不支持chkconfig的解决方法
- reids不支持chkconfig
- 服务不支持 chkconfig 的解决办法
- 服务不支持chkconfig的解决
- 服务不支持chkconfig的解决
- 关于服务不支持chkconfig的解决
- chkconfig --add httpd Error服务不支持
- chkconfig --add httpd Error服务不支持
- 服务不支持chkconfig解决过程介绍
- mac apache 不支持php
- 不支持select into解决方法
- json_encode不支持中文解决方法
- Firefox不支持event解决方法
- 尼康D610评测
- Gate
- SQL Case when 的使用方法
- 数据库启动报ORA-27154 ORA-27300 ORA-27301 ORA-27302错误
- poj 2127 Greatest Common Increasing Subsequence (最长公共递增子序列)
- apache 不支持 chkconfig 解决方法
- Unity3D中texture2D函数使用详解
- oracle 插入 读出 1989年12月21日 23时10分 类型的数据 (参考)
- Scrum培训之旅——参加ShineScrum CSM认证班的心得体会
- JAVA基础——API(基本数据类型对象包装类)
- Proving Equivalences 判断至少加几个边可以变成强联通图+很好的模板
- 使用get,post,httpclient三种方式向服务器提交文本数据
- AndroidManifest.xml文件详解(service)
- 《Win32多线程程序设计》(1)---WaitForSingleObject()