Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

cd /some/dir && python -m http.server 8080


python3 -m http.server -d /path/to/dir


Don’t forget 8080. http.server binds on port 8000 by default :].


Why is 8080 more likely to be available than 8000?


Don’t worry, it’s a misunderstanding.


    mini_httpd -p 8080   # and no need to install a whole python interpreter


most people will have python installed already, but not mini_httpd.


docker pull nginx




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: