3 ms·
To specify the port number explicitly: python3 -m http.server 8080 (Listening on port 80 may require more privileges.)
by MaxBarraclough 6y ago
To specify the port number explicitly:
python3 -m http.server 8080
(Listening on port 80 may require more privileges.)
- vault 6y agoDefault is 8000
- catswithtail 6y agothe default one is port 8000 so permission should be no problem.
- otachack 6y agoCan also tack on an optional `-d directory_name` to be specific on where to serve from. It's my go to when developing my blog which consists of just HTML+CSS.