Skip to content

Instantly share code, notes, and snippets.

View sidtheprince's full-sized avatar
😔
Tired

son sidtheprince

😔
Tired
  • Earth
View GitHub Profile
@sidtheprince
sidtheprince / gist:6184031
Created August 8, 2013 12:03 — forked from rosickytong/python http server
python -m SimpleHTTPServer
http://blog.sina.com.cn/s/blog_62e7fe670101c4v5.html
python -m SimpleHTTPServer 8000
使用上面的命令可以把当前目录发布到8000端口。
但是这条命令是当前运行的,不是后台运行的,也就是说如果Ctrl + C,则该端口就会关闭。
在上述命令的最后加一个 & ,则该命令产生的进程在后台运行,不会影响当前终端的使用(我们在只有一个bash的环境下)。