Python HTTP Server Command
TODO: collapasable, copyable, download, etc
I executed this command python3 -m http.serer
but I got this error /usr/bin/python3: No module named http.serer
, what is the correct command I probably meant to execute?It seems that there is a typo in the command you executed. Instead of http.serer
, you probably meant to execute http.server
.
The correct command to start a simple HTTP server using Python 3 is:
python3 -m http.server
This will start a server on port 8000 by default, serving files from the current working directory. If you want to use a different port, you can specify it as a command-line argument, like this:
python3 -m http.server 8080
This will start the server on port 8080 instead of the default port 8000.
Python HTTP Server Command created at Tue Jan 20 1970 10:23:23 GMT+0000 (Coordinated Universal Time)Related Chats
Docker ENV Variables Not Set 0.321
Testing UDP Ports 0.308
ELB Headers Configuration 0.286
EC2 ELB Troubleshoot Setup 0.282
Configure SvelteKit for ELB 0.281
Curl with Origin Header 0.272
Deploying Docker Compose EC2 0.264
Python Server Streaming JSON 0.260
Nohup com env em shell 0.256