客户的需求是第一位的,需要在win2003布署nodejs,最让我头疼的就是守护程序以前win下死活不行最后死了我的心,刚全网找了一下说PM2已经支持了windows,有人试过吗,还有PM2在win应下什么版本,怎么搞啊,指导一下吧。谢谢
pm2 装了,但问题来了,程序倒时运行了。但 pm2 list pm2 stop all monit 这些命令全部没效。一运行就卡住了。
C:\Documents and Settings\Administrator> pm2 start D:\mynode\test\app1.js [PM2] Starting D:\mynode\test\app1.js in fork_mode (1 instance) [PM2] Done. 程序倒是运行了
C:\Documents and Settings\Administrator>pm2 list 光标这里就闪一闪的
pm2 monit ⌬ PM2 monitoring (To go further check out https://app.keymetrics.io)
光标这里就闪一闪的
安装时就出了错有两个WARN,我估计可能是没有编译好。还是这东西本来就有问题
C:\Documents and Settings\Administrator> npm install pm2 -g npm WARN optional dep failed, continuing fsevents@1.0.12 npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue D:\nodejs\node_global\pm2-dev -> D:\nodejs\node_global\node_modules\pm2\bin\pm2- dev D:\nodejs\node_global\pm2 -> D:\nodejs\node_global\node_modules\pm2\bin\pm2 pm2@1.1.3 D:\nodejs\node_global\node_modules\pm2 ├── ikt@0.0.0 ├── eventemitter2@0.4.14 ├── async@1.5.2 ├── pidusage@1.0.1 ├── semver@5.1.1 ├── commander@2.9.0 (graceful-readlink@1.0.1) ├── debug@2.2.0 (ms@0.7.1) ├── pm2-deploy@0.2.1 (async@1.4.2, tv4@1.0.18) ├── coffee-script@1.10.0 ├── vizion@0.2.12 (async@0.9.0) ├── cli-table@0.3.1 (colors@1.0.3) ├── chalk@1.1.1 (escape-string-regexp@1.0.5, supports-color@2.0.0, ansi-style s@2.2.1, strip-ansi@3.0.1, has-ansi@2.0.0) ├── pm2-multimeter@0.1.2 (charm@0.1.2) ├── pmx@0.6.2 (json-stringify-safe@5.0.1) ├── pm2-axon@2.0.11 (amp-message@0.1.2, escape-regexp@0.0.1, amp@0.3.1, confi gurable@0.0.1) ├── shelljs@0.6.0 ├── pm2-axon-rpc@0.3.6 (json-stringify-safe@5.0.1, commander@1.0.5) ├── mkdirp@0.5.1 (minimist@0.0.8) ├── nssocket@0.6.0 (lazy@1.0.11) ├── cron@1.1.0 (moment-timezone@0.3.1) ├── source-map-support@0.4.0 (source-map@0.1.32) ├── yamljs@0.2.7 (glob@4.5.3, argparse@0.1.16) ├── chokidar@1.4.3 (path-is-absolute@1.0.0, inherits@2.0.1, glob-parent@2.0.0 , async-each@1.0.0, is-glob@2.0.1, is-binary-path@1.0.1, readdirp@2.0.1, anymatc h@1.3.0) └── moment@2.13.0