将apache添加为开机启动与编译的httpd不支持chkconfig的解决方法
来源:互联网 发布:淘宝十大cos店铺 编辑:程序博客网 时间:2024/06/04 19:13
将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添加为开机启动与编译的httpd不支持chkconfig的解决方法
- Linux下将自己安装的Apache(httpd)新增为系统服务,开机自启动
- apache 不支持 chkconfig 解决方法
- 服务不支持 chkconfig 的解决方法
- 服务不支持 chkconfig 的解决方法
- Linux下将Apache(httpd)新增为系统服务及开机自启动
- Linux下将Apache(httpd)新增为系统服务及开机自启动
- 启动apache的httpd服务
- linux 开机启动 httpd 或 mysql命令 及 chkconfig 介绍
- chkconfig命令和添加开机启动服务
- sentos6.5关于启动HTTPD的问题与解决方法
- 服务不支持 chkconfig 的解决办法
- 服务不支持chkconfig的解决
- 服务不支持chkconfig的解决
- linux服务的开机启动和运行级别(chkconfig)
- linux下chkConfig的用法,mysqld开机自启动
- RedHat 将Apache添加为Linux的系统服务 实现自启动
- systemctl 与 chkconfig 开机自启动命令
- 断舍离的难处-less is more
- 魔术子弹系统启动;的联盟营销谁了大失望的叙事
- Quaternion 学习与应用
- Exchange、Domino、MDaemon、winmail、Postfix等使用邮件中继反复进入CBL,XBL黑名单问题
- 如何创建滑出式导航面板
- 将apache添加为开机启动与编译的httpd不支持chkconfig的解决方法
- cocos2d-x中添加Enter键和方向键按键响应
- C语言 用来清空输入缓存,以便不影响后面输入的东西
- ReportStudio入门教程(六十一) - JS-清空多选框
- 利用过滤器解决jsp中的乱码问题
- vim安装插件
- linux常用命令大全
- JavaScript内存优化
- Kaggle[2] - Predict the click through rate (KDD12 trackl2)