时间:2021-05-19
LNMPA中Apache的/root/lnmpa status问题解决方法
高手请无视,小白可借鉴。
问题描述:
LNMP0.7升级到LNMPA后
运行命令
Apache的status一项会出现错误提示:
或者
解决方法:
出现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><</span><span>Location</span><span> </span><span>/</span><span>server</span><span>-</span><span>status</span><span>></span> </div><div id="crayon-500bf6505c39e-2" style=""><span> </span><span>SetHandler </span><span>server</span><span>-</span><span>status </span></div><div id="crayon-500bf6505c39e-3" style=""><span> </span><span>Order </span><span>deny</span><span>,</span><span>allow </span></div><div id="crayon-500bf6505c39e-4" style=""><span> </span><span>Deny </span><span>from </span><span>all </span></div><div id="crayon-500bf6505c39e-5" style=""><span> </span><span>Allow </span><span>from</span><span> </span><span>.example</span><span>.com</span> </div><div id="crayon-500bf6505c39e-6" style=""><span><</span><span>/</span><span>Location</span><span>></span></div>
改成
复制代码 代码如下:<div id="crayon-500bf6505c41d-1" style=""><span><</span><span>Location</span><span> </span><span>/</span><span>server</span><span>-</span><span>status</span><span>></span> </div><div id="crayon-500bf6505c41d-2" style=""><span> </span><span>SetHandler </span><span>server</span><span>-</span><span>status </span></div><div id="crayon-500bf6505c41d-3" style=""><span> </span><span>Order </span><span>deny</span><span>,</span><span>allow </span></div><div id="crayon-500bf6505c41d-4" style=""><span> </span><span>Deny </span><span>from </span><span>all </span></div><div id="crayon-500bf6505c41d-5" style=""><span> </span><span>Allow </span><span>from</span><span> </span><span>127.0.0.1</span> </div><div id="crayon-500bf6505c41d-6" style=""><span><</span><span>/</span><span>Location</span><span>></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查看
声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。
AndroidListView与getView调用卡顿问题解决办法解决办法1,设置ListView高度为固定值或者match_parent/ifll_paren
Androidstudioso库找不到问题解决办法问题:java.lang.UnsatisfiedLinkError:dalvik.system.PathCla
AndroidsetButtonDrawable()的兼容问题解决办法setButtonDrawable()的兼容问题API16实现/***Settheback
Android编译出错版本匹配问题解决办法解决问题的关键在于版本匹配,compileSdkVersioncompileSdkVersiontargetSdkVe
mysql4.1以上版本连接时出现Clientdoesnotsupportauthenticationprotocol问题解决办法shell>mysqlClie