Quick http server

So you want to quickly test some static files from an http server ? Just cd to the folder where these files are and:

Using Python 2.x:

python -m SimpleHTTPServer 8000

Using Python 3.x:

python -m http.server 8000

Another option, if you have PHP installed is:

php -S localhost:8000

Leave a Reply

Your email address will not be published. Required fields are marked *