scnjwa
Last Updated: February 25, 2016
·
711
· garcha
1a31dce39f7c8279d8084005d5785749

Running a simple server on a mac

When you want to run a simple local server:

In terminal, navigate to the directory you want to run and type the following command:

python -m SimpleHTTPServer 8000

The 8000 is the port, it could be any open port like 3000, 4567, 8000

Say Thanks
Respond

1 Response
Add your response

14508
1a31dce39f7c8279d8084005d5785749

visit: 0.0.0.0:8000 to see the website <br/>
"Control C" in terminal to close the server.

over 1 year ago ·
Filed Under