Last Updated: May 06, 2022
·
2.386K
· bengo

Web server one-liner

Instantly serve the current directory on port 8888:

python -m SimpleHTTPServer 8888

4 Responses
Add your response

you don't need to specify the port, the default is 8000

over 1 year ago ·

Like :D full python

over 1 year ago ·

PHP has an nested server too.

over 1 year ago ·

For python3: python -m http.server

over 1 year ago ·