注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

有情况

学会慢生活,拥有平常心……

 
 
 

日志

 
 

apachectl: line 94: lynx: command not found  

2011-11-03 16:17:22|  分类: 网络技术 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
一.  # /usr/local/apache2/bin/apachectl status
/usr/local/apache2/bin/apachectl: line 94: lynx: command not found

报这种错误

解决:

#yum install lynx -y 即可

二.  再次执行#/usr/local/apache2/bin/apachectl status

                                   Forbidden

   You don't have permission to access /server-status on this server.
     _________________________________________________________________


    Apache/2.2.9 (Unix) mod_jk2/2.0.4 Server at localhost Port 80

解决方法:

   确保selinux为disable

   #vi  /usr/local/apache2/conf/extra/httpd-info.conf 改为如下

#
# Get information about the requests being processed by the server
# and the configuration of the server.
#
# Required modules: mod_status (for the server-status handler),
# mod_info (for the server-info handler)

#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.

<Location /server-status>
SetHandler server-status
# Order deny,allow
# Deny from all
# Allow from
</Location>

#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
ExtendedStatus On

#
# Allow remote server configuration reports, with the URL of
# http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".example.com" to match your domain to enable.
#
<Location /server-info>
SetHandler server-info
# Order deny,allow
# Deny from all
# Allow from
</Location>

  评论这张
 
阅读(842)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2016