Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision Next revisionBoth sides next revision | ||
| zh-cn:doc:howto:luci.essentials [2015/05/10 05:18] – ysh815 | zh-cn:doc:howto:luci.essentials [2019/04/04 07:14] – links updated vgaetera | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== LuCI 要点 ====== | ||
| + | // | ||
| + | 这是安装Web用户界面LuCI的要点。运行" | ||
| + | |||
| + | | {{: | ||
| + | |||
| + | ===== 安装 ===== | ||
| + | - 在软件库中检索可用软件包的最新列表: | ||
| + | <code bash> | ||
| + | opkg update | ||
| + | </ | ||
| + | * 完整安装一个// | ||
| + | <code bash> | ||
| + | opkg install luci</ | ||
| + | * 完整安装一个// | ||
| + | <code bash> | ||
| + | opkg install luci-ssl | ||
| + | </ | ||
| + | OPKG 安装 luci | ||
| + | |||
| + | ==== 本地语言支持 ==== | ||
| + | 基本的LuCI Web用户界面是英文的。但是,志愿者们正积极的把它翻译成许多语言。参见[[http:// | ||
| + | <code bash> | ||
| + | opkg list | grep luci-i18n- | ||
| + | </ | ||
| + | |||
| + | 您会看到一个可用语言包的列表。要安装你的母语,例如运行 | ||
| + | <code bash> | ||
| + | opkg install luci-i18n-chinese | ||
| + | </ | ||
| + | 您还可以通过网页界面安装语言包,你可以同时安装多个LuCI语言包, | ||
| + | |||
| + | ==== 开始使用Web服务器(uHTTPd) ==== | ||
| + | Web服务器[[http.uhttpd|uHTTPd]]是LuCI安装包的一个依赖软件,它会在你安装LuCI时自动安装。 | ||
| + | 安装后,Web服务器是**未运行的!**你需要手动开启它。你还应该// | ||
| + | 下面的第一个命令启动Web服务器,第二个使它在重启时启动。 | ||
| + | <code bash> | ||
| + | / | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | 现在,你应该能够连接到Web服务器 [[http:// | ||
| + | |||
| + | ==== 详细资料 ==== | ||
| + | LuCI做为“元包”安装,它同时安装了其他几个被定义为依赖关系的包。 | ||
| + | 尤其是,它安装了[[docs: | ||
| + | 安装的依赖包如下(更多信息参见[[docs: | ||
| + | |||
| + | * | ||
| + | * | ||
| + | * | ||
| + | * | ||
| + | * | ||
| + | * | ||
| + | * | ||
| + | * | ||
| + | |||
| + | 要使用uHTTPd做Web界面, | ||
| + | 默认配置如下。默认情况下''/ | ||
| + | 因此,通过请求该文档根目录(在浏览器中输入设备IP地址)可以找到一个如'' | ||
| + | 配备的''/ | ||
| + | 这是LuCI的默认CGI通道。这仅是一个脚本,它主要是在''/ | ||
| + | uHTTPd默认配置为用CGI加载''/ | ||
| + | |||
| + | 另外,也可以把Lua作为嵌入式进程来运行LuCI。uHTTPd支持这一点; | ||
| + | 可以参考[[docs: | ||
| + | |||
| + | ===== 配置 ===== | ||
| + | 默认Web服务器uhttpd的配置文件为'' | ||
| + | 该LuCI的Web界面配置文件为'' | ||
| + | |||
| + | |||
| + | ===== LuCI运行在其他WEB服务器上 ===== | ||
| + | -> | ||
| + | |||
| + | ==== LuCI 运行在 lighttpd 上 ==== | ||
| + | -> | ||
| + | |||
| + | ==== LuCI 运行在 nginx 上 ==== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ==== LuCI 运行在 ... ==== | ||
| + | |||
| + | |||
| + | ===== 简易离线安装 ===== | ||
| + | 下载并传输(如用SCP)以下列表中的软件包到你的OpenWrt路由器上, | ||
| + | < | ||
| + | |||
| + | * liblua | ||
| + | * lua | ||
| + | * libuci-lua | ||
| + | * libubus-lua | ||
| + | * uhttpd | ||
| + | * luci-lib-ipkg | ||
| + | * luci-i18n-english | ||
| + | * luci-sgi-cgi | ||
| + | * luci-lib-core | ||
| + | * luci-lib-nixio | ||
| + | * luci-lib-sys | ||
| + | * luci-lib-web | ||
| + | * luci-proto-core | ||
| + | * luci-theme-base | ||
| + | * luci-theme-openwrt | ||
| + | * luci-mod-admin-core | ||
| + | * luci-mod-admin-full | ||
| + | |||
| + | 并用下面命令安装: | ||
| + | |||
| + | <code bash>for pkg in liblua lua libuci-lua libubus-lua uhttpd luci-lib-ipkg luci-i18n-english luci-sgi-cgi luci-lib-core luci-lib-nixio luci-lib-sys luci-lib-web luci-proto-core luci-theme-base luci-theme-openwrt luci-mod-admin-core luci-mod-admin-full; | ||
| + | |||
| + | 此外,基本的无线配置还需要以下包:libiw, | ||
| + | |||
| + | ===== 杂项 ===== | ||
| + | |||
| + | === 安全访问luci网络服务器 === | ||
| + | |||
| + | 如果你想配置Luci网页服务器安全访问, | ||
| + | |||
| + | ===== 故障排除 ===== | ||
| + | * LuCI 开发网站在 Github: | ||
| + | * 请提交LuCI特殊bugs到 [[https:// | ||
| + | * LuCIs 旧的网站 [[http:// | ||
| + | |||
| + | |||
| + | ===== 注意事项 ===== | ||
| + | [[docs: | ||