parent
4fbac91d35
commit
cefd7505c0
|
@ -0,0 +1,13 @@
|
|||
Update feeds
|
||||
|
||||
./scripts/feeds update -a
|
||||
./scripts/feeds install -a
|
||||
|
||||
Select libuhttpd in menuconfig and compile new image.
|
||||
|
||||
Libraries --->
|
||||
Networking --->
|
||||
<*> libuhttpd-mbedtls.................................... libuhttpd (mbedtls)
|
||||
< > libuhttpd-nossl....................................... libuhttpd (NO SSL)
|
||||
< > libuhttpd-openssl.................................... libuhttpd (openssl)
|
||||
< > libuhttpd-wolfssl.................................... libuhttpd (wolfssl)
|
|
@ -0,0 +1,13 @@
|
|||
更新feeds
|
||||
|
||||
./scripts/feeds update -a
|
||||
./scripts/feeds install -a
|
||||
|
||||
在menuconfig选中libuhttpd,然后重新编译固件。
|
||||
|
||||
Libraries --->
|
||||
Networking --->
|
||||
<*> libuhttpd-mbedtls.................................... libuhttpd (mbedtls)
|
||||
< > libuhttpd-nossl....................................... libuhttpd (NO SSL)
|
||||
< > libuhttpd-openssl.................................... libuhttpd (openssl)
|
||||
< > libuhttpd-wolfssl.................................... libuhttpd (wolfssl)
|
22
README.md
22
README.md
|
@ -67,25 +67,13 @@ Run
|
|||
Then use the command curl or browser to test
|
||||
|
||||
$ curl -k 'https://127.0.0.1:8000/hello?name=test' -d '{"name":"libuhttpd"}' -v
|
||||
|
||||
# How to use on OpenWRT
|
||||
add new feed into "feeds.conf.default":
|
||||
|
||||
src-git libuhttpd https://github.com/zhaojh329/libuhttpd-feed.git
|
||||
# Install on OpenWrt
|
||||
opkg update
|
||||
opkg list | grep libuhttpd
|
||||
opkg install libuhttpd-nossl
|
||||
|
||||
Install libuhttpd packages:
|
||||
|
||||
./scripts/feeds update libuhttpd
|
||||
./scripts/feeds install -a -p libuhttpd
|
||||
|
||||
Select package libuhttpd in menuconfig and compile new image.
|
||||
|
||||
Libraries --->
|
||||
Networking --->
|
||||
<*> libuhttpd-mbedtls.................................... libuhttpd (mbedtls)
|
||||
< > libuhttpd-nossl....................................... libuhttpd (NO SSL)
|
||||
< > libuhttpd-openssl.................................... libuhttpd (openssl)
|
||||
< > libuhttpd-wolfssl.................................... libuhttpd (wolfssl)
|
||||
If the install command fails, you can [compile it yourself](/BUILDOPENWRT.md).
|
||||
|
||||
# Example
|
||||
```
|
||||
|
|
22
README_ZH.md
22
README_ZH.md
|
@ -67,24 +67,12 @@
|
|||
|
||||
$ curl -k 'https://127.0.0.1:8000/hello?name=test' -d '{"name":"libuhttpd"}' -v
|
||||
|
||||
# 如何在OpenWRT中使用
|
||||
Add new feed into "feeds.conf.default":
|
||||
# 安装到OpenWRT
|
||||
opkg update
|
||||
opkg list | grep libuhttpd
|
||||
opkg install libuhttpd-nossl
|
||||
|
||||
src-git libuhttpd https://github.com/zhaojh329/libuhttpd-feed.git
|
||||
|
||||
Install libuhttpd packages:
|
||||
|
||||
./scripts/feeds update libuhttpd
|
||||
./scripts/feeds install -a -p libuhttpd
|
||||
|
||||
Select package libuhttpd in menuconfig and compile new image.
|
||||
|
||||
Libraries --->
|
||||
Networking --->
|
||||
<*> libuhttpd-mbedtls.................................... libuhttpd (mbedtls)
|
||||
< > libuhttpd-nossl....................................... libuhttpd (NO SSL)
|
||||
< > libuhttpd-openssl.................................... libuhttpd (openssl)
|
||||
< > libuhttpd-wolfssl.................................... libuhttpd (wolfssl)
|
||||
如果安装失败,你可以[自己编译](/BUILDOPENWRT_ZH.md)。
|
||||
|
||||
# 示例程序
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue