http-server <path> -a 127.0.0.1 -p <端口号> 启动后按ctrl + c键可结束进程 pm2 启动 http-server 服务器 如果想要用pm2来守护http-server服务器的进程,可运行以下命令 pm2 start /usr/bin/http-server --name<任务名>-- -p<端口号>-d false 其中,/usr/bin/http-server为http-server包的安装目录,...