From fe2a2f46c9b218d107fe4dbe26ee60191d8d1a8d Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Thu, 9 Nov 2017 13:29:10 +0800 Subject: [PATCH] Update README Signed-off-by: Jianhui Zhao --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) mode change 100644 => 100755 README.md diff --git a/README.md b/README.md old mode 100644 new mode 100755 index bdfdf6a..fdfe6a2 --- a/README.md +++ b/README.md @@ -4,3 +4,20 @@ A very tiny and fast HTTP library based on [libev](http://software.schmorp.de/pkg/libev.html) and [http-parser](https://github.com/nodejs/http-parser) for Embedded Linux. + +# How To Compile on Ubuntu +## Install dependency Tools and Libraries + sudo apt install cmake libev-dev libhttp-parser-dev + +## Compile libuhttp + git clone https://github.com/zhaojh329/libuhttp.git + cd libuhttp + mkdir build + cd build + cmake ../ + make && sudo make install + +## Test + $ ./example/helloworld + + Then use the command curl or browser to access http://127.0.0.1:8000/test \ No newline at end of file