Start an apache server in any directory from command line

后端 未结 7 1342
故里飘歌
故里飘歌 2020-12-25 12:26

I want to be able to start an apache server from the command line, typing something like apache site-folder or apache . --port=2000

This sh

7条回答
  •  情深已故
    2020-12-25 13:25

    http-server is a much better simple http server than pache, it's what I use currently! :)

    Use [pache][1]

    Install with npm - which comes with node here: http://nodejs.org/

    sudo npm install pache -g
    

    Run on current dir, port 3000:

    pache
    

    Or specify directory and port:

    pache site-directory 2000
    

    [1]: https://github.com/devinrhode2/pache

提交回复
热议问题