Update README

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
main
Jianhui Zhao 2017-12-29 14:46:40 +08:00
parent 78ee11782b
commit 02f25bb0fd
2 changed files with 10 additions and 10 deletions

View File

@ -30,18 +30,18 @@ A very tiny and fast HTTP server library based on [libubox] and referenced from
## Configure
See which configuration are supported
~/libuhttp/build$ cmake .. -L
~/libuhttp/build$ cmake .. -LH
~/libuhttpd/build$ cmake .. -L
~/libuhttpd/build$ cmake .. -LH
## Run the Example
First generate the SSL certificate file
~/libuhttp/build$ cd ..
~/libuhttp$ ./gen_cert.sh
~/libuhttpd/build$ cd ..
~/libuhttpd$ ./gen_cert.sh
Run
~/libuhttp$ ./build/example/helloworld
~/libuhttpd$ ./build/example/helloworld
Then use the command curl or browser to test

View File

@ -30,18 +30,18 @@
## 配置
查看支持哪些配置选项
~/libuhttp/build$ cmake .. -L
~/libuhttp/build$ cmake .. -LH
~/libuhttpd/build$ cmake .. -L
~/libuhttpd/build$ cmake .. -LH
## 运行例子
首先生成SSL证书文件
~/libuhttp/build$ cd ..
~/libuhttp$ ./gen_cert.sh
~/libuhttpd/build$ cd ..
~/libuhttpd$ ./gen_cert.sh
运行
~/libuhttp$ ./build/example/helloworld
~/libuhttpd$ ./build/example/helloworld
然后使用命令curl或者浏览器进行测试