forever 命令
forever list 查看 forever 进程列表
[root@iZbp1a4d6crd1vy4245853Z cnwkw]# forever list info: Forever processes running data: uid command script forever pid id logfile uptime data: [0] ilZZ /root/.nvm/versions/node/v6.10.2/bin/node bin/www 16649 16659 /home/iclassroom/nodejs/cnwkw/logs/forever.log 0:0:0:3.299
forever stop id 注意 id 是哪个 (如上,16659是id,16649是forever pid)
[root@iZbp1a4d6crd1vy4245853Z cnwkw]# forever stop 16659 info: Forever stopped process: uid command script forever pid id logfile uptime [0] ilZZ /root/.nvm/versions/node/v6.10.2/bin/node bin/www 16649 16659 /home/iclassroom/nodejs/cnwkw/logs/forever.log 0:0:2:36.120 [root@iZbp1a4d6crd1vy4245853Z cnwkw]# forever list info: No forever processes running