OPENWRT | 突发openwrt无法进入后台,空白一片,但是网络正常的解决方案

网站所有资源都有,可联系VX:kanyingvip

0

最近有很多朋友反应突然openwrt无法进入后台,空白一片,但是网络正常,这个问题主要是openwrt使用的主题存在某方面的BUG导致的。下面来看如何解决急救方法。

一、首先下载一个临时的主题使用

这里为大家提供的是material主题,BUG相对较少

二、把下载好的主题文件上传到openwrt的tmp临时文件目录。

这里电脑是苹果电脑直接使用终端,win电脑使用CMD命令调出终端。

scp /电脑所在的路径(直接把主题拖进来就会自动生成路径)/luci-theme-material_0.2.19-1_all.ipk root@10.10.10.252:/tmp #root@10.10.10.252:/tmp 这里面的IP地址更改为你的openwrt路由器的地址
scp /电脑所在的路径(直接把主题拖进来就会自动生成路径)/luci-theme-material_0.2.19-1_all.ipk root@10.10.10.252:/tmp        #root@10.10.10.252:/tmp 这里面的IP地址更改为你的openwrt路由器的地址
scp /电脑所在的路径(直接把主题拖进来就会自动生成路径)/luci-theme-material_0.2.19-1_all.ipk root@10.10.10.252:/tmp #root@10.10.10.252:/tmp 这里面的IP地址更改为你的openwrt路由器的地址
图片[1]-OPENWRT | 突发openwrt无法进入后台,空白一片,但是网络正常的解决方案-天时网

三、登录openwrt的ssh 去安装这个主题

opkg install /tmp/luci-theme-XXXX.ipk #xxxx的地方换为主题的名称,luci-theme-material_0.2.19-1_all.ipk
opkg install /tmp/luci-theme-XXXX.ipk        #xxxx的地方换为主题的名称,luci-theme-material_0.2.19-1_all.ipk
opkg install /tmp/luci-theme-XXXX.ipk #xxxx的地方换为主题的名称,luci-theme-material_0.2.19-1_all.ipk
图片[2]-OPENWRT | 突发openwrt无法进入后台,空白一片,但是网络正常的解决方案-天时网

四、选择新主题,由于进不了后台,所以也只能用命令来更换新主题

vi /etc/config/luci
vi /etc/config/luci
vi /etc/config/luci

找到里面这行内容

option mediaurlbase '/luci-static/argon' 替换为 option mediaurlbase '/luci-static/material' #material 就是新主题的名称
option mediaurlbase '/luci-static/argon'  替换为  option mediaurlbase '/luci-static/material'   #material 就是新主题的名称
option mediaurlbase '/luci-static/argon' 替换为 option mediaurlbase '/luci-static/material' #material 就是新主题的名称
图片[3]-OPENWRT | 突发openwrt无法进入后台,空白一片,但是网络正常的解决方案-天时网
图片[4]-OPENWRT | 突发openwrt无法进入后台,空白一片,但是网络正常的解决方案-天时网

替换完后无需从起 从新刷新openwrt的页面 就可以进入并看到替换的主题了

图片[5]-OPENWRT | 突发openwrt无法进入后台,空白一片,但是网络正常的解决方案-天时网

五、如果想卸载主题

1.查看已经安装的主题

opkg list-installed|grep luci-theme
opkg list-installed|grep luci-theme
opkg list-installed|grep luci-theme
图片[6]-OPENWRT | 突发openwrt无法进入后台,空白一片,但是网络正常的解决方案-天时网

这里查询安装了两个主题 一个 argon 一个material,现在我们卸载新主题material

opkg remove luci-theme-material #luci-theme-argon-material主题我们上面查询到的
opkg remove luci-theme-material     #luci-theme-argon-material主题我们上面查询到的
opkg remove luci-theme-material #luci-theme-argon-material主题我们上面查询到的
图片[7]-OPENWRT | 突发openwrt无法进入后台,空白一片,但是网络正常的解决方案-天时网

注意:卸载完后,后台图形界面还在会有该主题的名称选项

图片[8]-OPENWRT | 突发openwrt无法进入后台,空白一片,但是网络正常的解决方案-天时网
vi /etc/config/luci
vi /etc/config/luci
vi /etc/config/luci

在里面找到这个位置,把option Material ‘/luci-static/material’ 这行删除,无需从起

config internal 'themes' option Argon '/luci-static/argon' option Material '/luci-static/material'
config internal 'themes'         option Argon '/luci-static/argon'         option Material '/luci-static/material'
config internal 'themes' option Argon '/luci-static/argon' option Material '/luci-static/material'
图片[9]-OPENWRT | 突发openwrt无法进入后台,空白一片,但是网络正常的解决方案-天时网

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
It is during our darkest moments that we must focus to see the light.
越是在艰难困苦的时候,我们越是要看到希望
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片快捷回复

    暂无评论内容