linux-minds
Thursday, December 15, 2011
One line Python Web server
if you have python installed, go to your terminal. Go to the directory you want to serve HTML files from, then type one of the following, depending on your python version:
Python 2.x:
python -m SimpleHTTPServer
Python 3.x:
python -m http.server 8000
No comments:
Post a Comment
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment