service httpd does not support chkconfig
2017-07-28 15:33
246 查看
apache 作为linux启动就运行服务程序
cp /usr/local/apache2/bin/apachectl /etc/rc.d/init.d/httpd
但是在执行:
chkconfig --add httpd
chkconfig
httpd on
的时候出现错误:service
httpd does not support chkconfig
解决办法:
打开 vi /etc/rc.d/init.d/httpd
添加(#!/bin/sh下面)
#chkconfig: 2345 10 90
#description: Activates/Deactivates Apache Web Server
加上上面这两行就可以,#必须有
其中:2345是设为要启动的运行级别,10是启动优先级,90是杀死进程的优先级,谁优先谁先挂的意思。
cp /usr/local/apache2/bin/apachectl /etc/rc.d/init.d/httpd
但是在执行:
chkconfig --add httpd
chkconfig
httpd on
的时候出现错误:service
httpd does not support chkconfig
解决办法:
打开 vi /etc/rc.d/init.d/httpd
添加(#!/bin/sh下面)
#chkconfig: 2345 10 90
#description: Activates/Deactivates Apache Web Server
加上上面这两行就可以,#必须有
其中:2345是设为要启动的运行级别,10是启动优先级,90是杀死进程的优先级,谁优先谁先挂的意思。
相关文章推荐
- service httpd does not support chkconfig
- service httpd does not support chkconfig
- service httpd does not support chkconfig的问题
- service httpd does not support chkconfig
- chkconfig无法启动服务service httpd does not support chkconfig
- service httpd does not support chkconfig linux
- service httpd does not support chkconfig的问题
- service redis does not support chkconfig的解决办法
- service redis does not support chkconfig的解决办法
- service XXX does not support chkconfig
- service xxxx does not support chkconfig
- service XXX does not support chkconfig
- service XXX does not support chkconfig
- service X does not support chkconfig
- service zookeeper does not support chkconfig解决办法
- service zabbix does not support chkconfig
- service redis does not support chkconfig的解决办法
- Service redis does not support chkconfig的解决办法
- service xxx does not support chkconfig
- service php-fpm does not support chkconfig