gb7esa
Last Updated: February 25, 2016
·
7.416K
· mvmaasakkers
222470 10150226231436554 660746553 8682207 6981886 n normal

A quick and simple webserver in Mac OS X

To start a simple webserver on Mac OS X simply start terminal, go to the directory you want to start the webserver from (which will be the document root) and use the following command:

python -m SimpleHTTPServer 8080

That directory will be available in the browser at http://localhost:8080

Say Thanks
Respond

2 Responses
Add your response

13203
5f240a11dcf3b5dfc90c24b357100ee4

Same can be done with PHP:
php -S localhost:8080

over 1 year ago ·
15213
Avatar

in Ruby: ruby -run -e httpd . -p 8000

Here is a list actually https://gist.github.com/willurd/5720255

over 1 year ago ·