How to run http server in Python

# Python 2

python -m SimpleHTTPServer

# Python 3

python3 -m http.server

The above command opens a server on the default port, which is 8000.
You can pass a custom port number as the last argument to the command above.
Post a Comment

Featured Post

Updated Coupons / promo codes for Google Apps for Work / Business

To redeem: 1. Sign up for Google Apps   2. Go to your billing settings  3. Choose your payment plan  4. Enter your promo code ...