在xshell中将pm2安装到服务器上在项目目录下,运行pm2 start node ./bin/www (此时你的启动项是node ./bin/www)或者pm2 start app.js此时表示进程已经开启,可以关掉xshell在项目目录下,运行pm2 kill 此时你的项目就不能在网页上浏览了