Installation: NPM Install-g PM2 Common methods:
Startup program: PM2 start <app_name|id|all>
Enumerating Processes: PM2 list
Exit Program: PM2 Stop <app_name|id|all>
Restart Application: PM2 restart
Program information: PM2 describe Id|all
Monitoring: PM2 Monit
Real-time Centralized log processing: PM2 logs
API:PM2 Web (port: 9615)
Problems encountered in use: PM2 I installed in the C-disk directory, but in the E: Disk this directory is not!
fs.js:747 return binding.mkdir(pathModule._makeLong(path), ^Error: ENOENT, no such file or directory ‘E:\Users\dustin\.pm2‘ at Error (native) at Object.fs.mkdirSync (fs.js:747:18) at Object.CLI.pm2Init (C:\Users\dustin\AppData\Roaming\npm\node_modules\pm2\lib\CLI.js:37:8) at Object.<anonymous> (C:\Users\dustin\AppData\Roaming\npm\node_modules\pm2\bin\pm2:20:5) at Module._compile (module.js:460:26) at Object.Module._extensions..js (module.js:478:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Function.Module.runMain (module.js:501:10) at startup (node.js:129:16)
我愚笨的解决方法:
在E盘下建文件夹:
\users\dustin
PM2 problems encountered after installation and deployment