Last Updated: February 25, 2016
· garcha

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

1 Response
Add your response


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

over 1 year ago ·