4 ms·
python -m SimpleHTTPServer 8080
by iriche 5y ago
python -m SimpleHTTPServer 8080
- nindalf 5y agoThat’s Python 2. In Python 3 it’s python -m http.server 8000
- speedgoose 5y agoOn MacOS, it seems that python 2 is still the default so the right command is : python3 -m http.server 8000
- astrange 5y agoIt's strange that this comment chain is trying to teach agys about how to use SimpleHTTPServer when their comment says they tried it and it didn't work for them.
- agys 5y agoThanks :) Both Python (v2 and v3) servers work more or less but they have an issue: the first page load takes about 30 seconds on my machine, usually. I never figured out why exactly and that’s why I started using the PHP server.