Http-Server
安装
npm install http-server -g
启动
cd ~/Public/
http-server
默认是 8080端口,./public文件夹
文件上传
./public
文件下载
wget http://172.16.25.70:8080/prometheus.yml
pm2开机启动
github`
bash
pm2 delete http-local
which http-server
pm2 start /usr/local/bin/http-server –name http-local – -p 8080
pm2 save
pm2 startup