cd /home/v2ex
echo yellow > color.html
webserver run
curl http://127.0.0.1/color.html
1
ryd994 2015-07-09 10:44:36 +08:00 via Android
python -m SimpleHTTPServer
|
2
wesley 2015-07-09 10:50:23 +08:00
php -S 0.0.0.0:80
|
3
learnshare 2015-07-09 10:52:48 +08:00 1
Node.js/io.js anywhere https://www.npmjs.com/package/anywhere
|
4
imlonghao 2015-07-09 10:57:10 +08:00 via Android
python -m SimpleHTTPServer
python3 -m http.server |
5
azglze 2015-07-09 10:59:26 +08:00
For Python3:
" python3 -m http.server (--cgi) <port> " It can serve as a cgi server. |