非常简单,用一个命令行就能搞定:
python -m SimpleHTTPServer 9090
例如:
[xiaochu.yh@OceanBase~]$ python -m SimpleHTTPServer 9090
Serving HTTP on 0.0.0.0 port 9090 ...10.32.192.195 - - [12/Apr/2013 10:48:58] "GET / HTTP/1.1" 200 -
10.32.192.195 - - [12/Apr/2013 10:48:59] code 404, message File not found
10.32.192.195 - - [12/Apr/2013 10:48:59] "GET /favicon.ico HTTP/1.1" 404 -
10.32.192.195 - - [12/Apr/2013 10:49:01] "GET /041.tar.gz HTTP/1.1" 200 -