1. 将资源以到服务器上,除大文件 2. npm 安装依赖包 npm install 3. 打包 npm run build 4.运行 pm2 start --name agv npm -- start 5. 查看 ...
安装pm pm 启动项目 npm run xx,就可以写成:pm start npm run xx pm 停止项目 更多参考 https: www.cnblogs.com lxg p .html ...
2021-07-27 21:16 0 161 推荐指数:
1. 将资源以到服务器上,除大文件 2. npm 安装依赖包 npm install 3. 打包 npm run build 4.运行 pm2 start --name agv npm -- start 5. 查看 ...
1.在服务器上安装PM2 2.对PM2进行更新 3.进入服务器中egg项目更目录,并新建server.js文件,并在其中写入以下代码 4.在egg项目根目录输入以下命令 5.通过以下命令保存进程 ...
1.启动eggjs pm2 start npm --name eggjs -- run dev 修改代码,无需重启 ...
M2 是带有内置负载平衡器的 Node.js 应用程序的生产过程管理器。可以利用它来简化很多 Node 应用管理的繁琐任务,如性能监控、自动重启、负载均衡等。 安装部署 1、我们一般会把 pm2 安装到全局: npm install pm2 -g 2、安装windows自启动包: npm ...
保存之后自动重启指令,起到自动监听 参考地址:http://www.cnblogs.com/liusixin/p/7007340.html 1.进入目录下: 2.l打开命令窗口 3.启动指令 pm2 start server.js --name jaunsoo --watch ...
...
一、官方文档: 官方相关文档:http://pm2.keymetrics.io/docs/usage/startup/#generating-a-startup-script 二、具体操作过程如下: 1、生成开机启动 pm2 服务的配置文件 运行:pm2 startup 命令 ...