ubuntu16.04搭建uci测试环境说明
2021/11/23 7:12:46
本文主要是介绍ubuntu16.04搭建uci测试环境说明,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
说明
以下指令都是在root用户下执行
安装uci依赖库libubox
git下载libubox源码
git clone http://git.nbd.name/luci2/libubox.git
编译源码及安装
cd libubox.git cmake -DBUILD_LUA=off make make install
安装uci
git克隆uci源码
git clone git://git.openwrt.org/project/uci.git
编译及安装uci
cd uci cmake -DBUILD_LUA=off make make install
增加依赖库到ld.so.conf
echo /usr/local/lib >>/etc/ld.so.conf
执行ldconfig使依赖库路径生效
测试uci
root@virtual-machine:/home/# uci Usage: uci [<options>] <command> [<arguments>] Commands: batch export [<config>] import [<config>] changes [<config>] commit [<config>] add <config> <section-type> add_list <config>.<section>.<option>=<string> del_list <config>.<section>.<option>=<string> show [<config>[.<section>[.<option>]]] get <config>.<section>[.<option>] set <config>.<section>[.<option>]=<value> delete <config>[.<section>[[.<option>][=<id>]]] rename <config>.<section>[.<option>]=<name> revert <config>[.<section>[.<option>]] reorder <config>.<section>=<position> Options: -c <path> set the search path for config files (default: /etc/config) -d <str> set the delimiter for list values in uci show -f <file> use <file> as input instead of stdin -m when importing, merge data into an existing package -n name unnamed sections on export (default) -N don't name unnamed sections -p <path> add a search path for config change files -P <path> add a search path for config change files and use as default -t <path> set save path for config change files -q quiet mode (don't print error messages) -s force strict mode (stop on parser errors, default) -S disable strict mode -X do not use extended syntax on 'show'
这篇关于ubuntu16.04搭建uci测试环境说明的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-06-30uniAPP 实现全屏左右滚动滚动的效果-icode9专业技术文章分享
- 2024-06-30如何在本地使用授权或插件-icode9专业技术文章分享
- 2024-06-30伪静态规则配置方法汇总-icode9专业技术文章分享
- 2024-06-29易优CMS安装常见问题汇总-icode9专业技术文章分享
- 2024-06-28易优新手必读安装教程-icode9专业技术文章分享
- 2024-06-28忘记eyoucms后台密码怎么办?-icode9专业技术文章分享
- 2024-06-26终极指南:Scrum中如何设置需求优先级
- 2024-06-26AI大模型企业应用实战(25)-为Langchain Agent添加记忆功能
- 2024-06-26小白家庭 nas 搭建方案-icode9专业技术文章分享
- 2024-06-23AI大模型企业应用实战(14)-langchain的Embedding