$ pm2 start [app.js|script.sh]macos
-i [num] // 启动num个实例,自动负载均衡 --name // 启动名称 --watch // 当文本变化会从新启动ubuntu
$ pm2 scale [app-name] [num] // 扩展实例centos
$ pm2 reset [app-name] // 重置重启数量oracle
$ pm2 ls // 查看启用程序app
$ pm2 // 显示cpu和内存状况负载均衡
$ pm2 show [app-name] // 显示信息rest
$ pm2 logs ?[app-name] // 查看日志日志
$ pm2 stop [all | [id]] // 停用ip
$ pm2 restart all // 重启全部应用内存
$ pm2 reload all // 重启cluster mode下的全部应用
$ pm2 delete [all | [id]]
$ pm2 startup [ubuntu | ubuntu14 | ubuntu12 | centos | centos6 | arch | oracle | amazon | macos | darwin | freebsd | systemd | systemv | upstart | launchd | rcd | openrc] // 建立开机自启动命令(能够指定os)
$ pm2 save // 保存当前应用列表
$ pm2 resurrect // 从新加载保存的应用列表