大旗谷资源网 Design By www.zqyou.com

LNMPA中Apache的/root/lnmpa status问题解决方法

高手请无视,小白可借鉴。

问题描述:

LNMP0.7升级到LNMPA后
运行命令

/root/lnmpa status

Apache的status一项会出现错误提示:

/etc/init.d/httpd: line 112: lynx: command not found

或者

Error 403 Access forbidden!

解决方法:
出现lynx: command not found错误提示的需要完成Step1&Step2
出现Error 403 Access forbidden!错误提示的只需要完成Step2

Step1
安装lynx

复制代码 代码如下:<p><span style="background-color: rgb(192, 192, 192);">yum install lynx -y</span><br /></p>


Step2
运行命令
复制代码 代码如下:<p><span>vi</span><span> </span><span>/</span><span>usr</span><span>/</span><span>local</span><span>/</span><span>apache</span><span>/</span><span>conf</span><span>/</span><span>extra</span><span>/</span><span>httpd</span><span>-</span><span>info</span><span>.conf</span></p>



复制代码 代码如下:<div id="crayon-500bf6505c39e-1" style=""><span>&lt;</span><span>Location</span><span> </span><span>/</span><span>server</span><span>-</span><span>status</span><span>&gt;</span> </div><div id="crayon-500bf6505c39e-2" style=""><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span>SetHandler </span><span>server</span><span>-</span><span>status </span></div><div id="crayon-500bf6505c39e-3" style=""><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span>Order </span><span>deny</span><span>,</span><span>allow </span></div><div id="crayon-500bf6505c39e-4" style=""><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span>Deny </span><span>from </span><span>all </span></div><div id="crayon-500bf6505c39e-5" style=""><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span>Allow </span><span>from</span><span> </span><span>.example</span><span>.com</span> </div><div id="crayon-500bf6505c39e-6" style=""><span>&lt;</span><span>/</span><span>Location</span><span>&gt;</span></div>


改成
复制代码 代码如下:<div id="crayon-500bf6505c41d-1" style=""><span>&lt;</span><span>Location</span><span> </span><span>/</span><span>server</span><span>-</span><span>status</span><span>&gt;</span> </div><div id="crayon-500bf6505c41d-2" style=""><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span>SetHandler </span><span>server</span><span>-</span><span>status </span></div><div id="crayon-500bf6505c41d-3" style=""><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span>Order </span><span>deny</span><span>,</span><span>allow </span></div><div id="crayon-500bf6505c41d-4" style=""><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span>Deny </span><span>from </span><span>all </span></div><div id="crayon-500bf6505c41d-5" style=""><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span>Allow </span><span>from</span><span> </span><span>127.0.0.1</span> </div><div id="crayon-500bf6505c41d-6" style=""><span>&lt;</span><span>/</span><span>Location</span><span>&gt;</span></div>


重启Apache
复制代码 代码如下:<p><span>service </span><span>httpd </span><span>restart</span></p>


再用复制代码 代码如下:/root/lnmpa status或者复制代码 代码如下:service httpd status查看Apache状态就是正常的了
还可以用http://youripordomain/server-status访问通过Web查看

标签:
Apache,status

大旗谷资源网 Design By www.zqyou.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
大旗谷资源网 Design By www.zqyou.com

评论“Apache的status相关问题解决办法”

暂无Apache的status相关问题解决办法的评论...

P70系列延期,华为新旗舰将在下月发布

3月20日消息,近期博主@数码闲聊站 透露,原定三月份发布的华为新旗舰P70系列延期发布,预计4月份上市。

而博主@定焦数码 爆料,华为的P70系列在定位上已经超过了Mate60,成为了重要的旗舰系列之一。它肩负着重返影像领域顶尖的使命。那么这次P70会带来哪些令人惊艳的创新呢?

根据目前爆料的消息来看,华为P70系列将推出三个版本,其中P70和P70 Pro采用了三角形的摄像头模组设计,而P70 Art则采用了与上一代P60 Art相似的不规则形状设计。这样的外观是否好看见仁见智,但辨识度绝对拉满。