python httpserver

Another way to do it is to start a local HTTP server on your directory. On Ubuntu and MacOs with Python installed, it's a one-liner.

Go to the directory containing your web files, and :

python -m SimpleHTTPServer

Then connect to http://localhost:8000/index.html with any web browser to test your page.

posted @ 2016-03-29 09:39  lianhuaren  阅读(97)  评论(0)    收藏  举报