openwrt基于luci的web管理界面配置方法

openwrt基于luci的web管理界面配置方法

概述

openwrt系统中已经具有uhttpd服务,因此采用openwrt的嵌入式设备通过web界面进行配置管理将十分方便,安装luci后即可实现web配置管理功能,但是查询网上安装luci的方法会有问题,因此将自己亲测的基于luci的web管理界面配置方法整理如下。

尝试

百度查找到luci安装方法,但是均安装失败;
方法一:
1、Add the following line to your OpenWrt feeds.conf:
src-svn luci http://svn.luci.subsignal.org/luci/trunk/contrib/package
2、Run ./scripts/feeds update
3、Run ./scripts/feeds install -a -p luci
方法二:
opkg update
opkg install luci
opkg install luci-i18n-chinese
/etc/init.d/uhttpd start
/etc/init.d/uhttpd enable

亲测

以上安装失败后,尝试下载luci源码,并编译到openwrt中。步骤如下:

步骤1

在gitee中搜索下载luci源码,下载地址如下:
https://search.gitee.com/?skin=rec&type=repository&q=luci

步骤2

将下载的luci源码拷贝到./package/和./feeds/下

步骤3

make menuconfig就会在首页看到luci选型,选择默认重新编译下载openwrt后,登录IP地址即可看到web配置管理界面了。

总结

在重新编译下载openwrt时,出现插曲,更新openwrt一直失败,应该是编译生成的openwrt文件较大所致,去掉openwrt中一些不用配置项后,重新编译下载成功。

猜你喜欢

转载自blog.csdn.net/weixin_39789553/article/details/115468318