This is a very simple http static server, sometimes we need it for testing
If you need a HTTP2 web server in production, try nico
Usage
$ httpserver
from https://github.com/txthinking/httpserver
------------------------
补充说明:
在linux vps,
安装go环境,然后,cd $GOPATHgo get -u -v github.com/txthinking/httpserver/这样就生成了可执行文件httpserver.cd ~httpserver -h 显示:Usage of httpserver:
-d string
web root dir (default ".")
-l string
listen address (default ":8080")
No comments:
Post a Comment