前提:事先开通ssh服务并能正常连接。
事件起因:机房断电,恢复供电后WebGui无法打开。
解决方法:
登录ssh重启lighttpd
cd /etc/rc.d && service lighttpd onerestart
或者/etc/rc.initial 打开终端按提示重启
重新打开web页面看是否出现报错信息。如仍未出现报错信息,登录ssh 重启机器init 6 并到机房连接显示器记录报错信息。
如我的报错信息为:
require_once(config.inc): failed to open stream: No such file or directory in <b>/etc/rc.d.php/postinit</b> on line <b>41</b>
require_once(): failed to open required 'config.inc (include_path = ',:/usr/local/share/pear')
起初以为缺失了单个inc文件所致,find查找到config.inc在/etc/inc/下,把文件复制到/usr/local/share/pear下又提示缺失其他文件。于是
ln -sv /etc/inc /usr/local/share/pear 至此问题得以解决。
转载于:https://blog.51cto.com/arm2012/2299036