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

$ python -m http.server



Assuming you have python installed on the system, yeah.


python 2 and not 3


`python -m http.server` is the one for Python3. Python 2 is `python -m SimpleHTTPServer`


or the node one:

$ npm install http-server

$ http-server .


or the go one:

$ go run github.com/eliben/static-server@latest




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

Search: