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/

 

 

 

 

posted @ 2013-09-26 09:46  makemelike  阅读(416)  评论(0编辑  收藏  举报