Python - SimpleHTTPServer and CGIHTTPServer
In Terminal (SimpleHTTPServer):
cd ~ python -m SimpleHTTPServer 8080 #不指定端口默认为8000
In Terminal (CGIHTTPServer):
cd ~ python -m CGIHTTPServer #默认端口为8000
Reference:
http://coolshell.cn/articles/1480.html
http://blog.licess.org/simplehttpserver/