linux可用
git clone https://gitee.com/chenxuan520/server-for-static-web.git
./install.sh
填入端口等信息
服务器运行
填入绑定的端口(如5200)
填入网页默认的html文件名(index.html)
填入是否运行在后台 (true or false)
填入是否使用守护进程 (true or false)
windows和linux都可
git clone https://gitee.com/chenxuan520/server-for-static-web.git
make (windows下make -f makefile.win)
如果有https证书也可以make ssl
修改config.json,介绍
./main
不运行在后台的话shell结束会一起结束
守护进程可以保证宕机快速重启
直接修改config.json
./main --reload
等待大约半分钟