“Ad-hoc webserver” for static files on UNIX/MacOSX?

前端 未结 4 1601
你的背包
你的背包 2021-01-31 14:32

Is there such a thing as a tiny little webserver that I can invoke from the command line that just fetches files from the local filesystem and serves them via HTTP on specific p

4条回答
  •  孤街浪徒
    2021-01-31 15:20

    If you have python installed:

    $ python -m SimpleHTTPServer
    Serving HTTP on 0.0.0.0 port 8000 ...
    

提交回复
热议问题