Total Pageviews

Tuesday, 17 November 2020

静态http服务器程序httpserver-by-txthinking

 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 $GOPATH
go 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