找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 5972|回复: 3

openwrt下加速luci界面开启速度。

[复制链接]
本帖最后由 dxh8497 于 2012-12-8 14:55 编辑

OpenWrt使用专为Openwrt写的LuCI生成Web用户界面。每次打开,速度都不快,而dd-wrt却没有此问题,原因是默认情况下,uhttpd每次解释脚本时都会执行一次lua解释器并创建进程。同FastCGI一样,uhttpd支持类似进程化的lua,加速脚本的执行。
============================================================
LuCI with embedded Lua interpreter


You need to install uhttpd-mod-lua and luci-sgi-uhttpd to get it to work:
root@OpenWrt:~# opkg install uhttpd-mod-lua luci-sgi-uhttpd


Then uncomment the following lines in /etc/config/uhttpd (or add them if you don't have them):
        option lua_prefix       /luci
        option lua_handler      /usr/lib/lua/luci/sgi/uhttpd.lua



Then restart the server:
root@OpenWrt:~# /etc/init.d/uhttpd restart
==========================================================
http://wiki.openwrt.org/doc/uci/uhttpd
我的恩山、我的无线 The best wifi forum is right here.
经过测试,貌似要抽风、
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

这个加速如果不稳定的话就没必要了吧,还不如ssh来得快啊,当然,能做得稳定的话还是很有价值的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

配置完路由。。。习惯把uhttpd关掉。。。{:soso_e120:}
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-27 05:32

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表