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 命令 ...