今天用一台新的服务器搭建了代理,计划替换掉家里路由器上的快到期的代理节点。结果发现小米路由器的Misstar tools无法访问了。
直接提示:
No page is registered at '/web/misstar/index' .
If this url belongs to an extension, make sure it is properly installed.
If the extension was recently installed, try removing the /tmp/luci-indexcache file.
通过查询发现有挺多同学也遇到类似的问题,以下为解决方案。
路由器型号和版本:
开发版本2.25.202
解决Misstar tools不能使用的具体方法:
一、ssh方root用户登录路由器后台;
二、执行命令:
vi /usr/lib/lua/luci/controller/web/index2.lua
三、加入如下内容:
module("luci.controller.web.index2", package.seeall)
function index()
local page = node("web","misstar")
page.target = firstchild()
page.title = ("")
page.order = 100
page.sysauth = "admin"
page.sysauth_authenticator = "jsonauth"
page.index = true
entry({"web", "misstar", "index"}, template("web/setting/misstar/index"), _("Tools"), 81)
entry({"web", "misstar", "add"}, template("web/setting/misstar/add"), _("Tools"), 82)
entry({"web", "misstar"}, alias("web","misstar","index"), _("Tools"), 80)
entry({"web", "misstar", "ss"}, template("web/setting/applications/ss/html/ss"), _("Tools"), 85)
entry({"web", "misstar","frp"}, template("web/setting/applications/frp/html/frp"), _("Tools"), 85)
entry({"web", "misstar","aliddns"}, template("web/setting/applications/aliddns/html/aliddns"), _("Tools"), 85)
entry({"web", "misstar","adm"}, template("web/setting/applications/adm/html/adm"), _("Tools"), 85)
entry({"web", "misstar","koolproxy"}, template("web/setting/applications/koolproxy/html/koolproxy"), _("Tools"), 85)
entry({"web", "misstar","rm"}, template("web/setting/applications/rm/html/rm"), _("Tools"), 85)
entry({"web", "misstar","aria2"}, template("web/setting/applications/aria2/html/aria2"), _("Tools"), 85)
entry({"web", "misstar","webshell"}, template("web/setting/applications/webshell/html/webshell"), _("Tools"), 85)
entry({"web", "misstar","pptpd"}, template("web/setting/applications/pptpd/html/pptpd"), _("Tools"), 85)
entry({"web", "misstar","ftp"}, template("web/setting/applications/ftp/html/ftp"), _("Tools"), 85)
entry({"web", "misstar","kms"}, template("web/setting/applications/kms/html/kms"), _("Tools"), 85)
end
四、推出vi编辑并保存
保存退出:ESC :x 或ESC :wq
五、执行清理缓存命令:
rm -rf /tmp/luci-indexcache
3 comments
余生不悲不喜
你好 我在安装时 提示 No space left on device 要怎么处理呢?
存储空间不足,是什么型号?另外我看这个插件作者好像已经不维护了