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><</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查看
Apache,status
更新日志
- 小骆驼-《草原狼2(蓝光CD)》[原抓WAV+CUE]
- 群星《欢迎来到我身边 电影原声专辑》[320K/MP3][105.02MB]
- 群星《欢迎来到我身边 电影原声专辑》[FLAC/分轨][480.9MB]
- 雷婷《梦里蓝天HQⅡ》 2023头版限量编号低速原抓[WAV+CUE][463M]
- 群星《2024好听新歌42》AI调整音效【WAV分轨】
- 王思雨-《思念陪着鸿雁飞》WAV
- 王思雨《喜马拉雅HQ》头版限量编号[WAV+CUE]
- 李健《无时无刻》[WAV+CUE][590M]
- 陈奕迅《酝酿》[WAV分轨][502M]
- 卓依婷《化蝶》2CD[WAV+CUE][1.1G]
- 群星《吉他王(黑胶CD)》[WAV+CUE]
- 齐秦《穿乐(穿越)》[WAV+CUE]
- 发烧珍品《数位CD音响测试-动向效果(九)》【WAV+CUE】
- 邝美云《邝美云精装歌集》[DSF][1.6G]
- 吕方《爱一回伤一回》[WAV+CUE][454M]