用forever管理多个node服务时候,问什么forever stop 0 会终止所有的服务 forever list info: Forever processes running data: uid command script forever pid id logfile uptime data: [0] lSkB /usr/local/bin/node portal-service.js 4916 4918 /Users/root/.forever/lSkB.log 0:0:0:10.126 data: [1] dVWu /usr/local/bin/node logger-service.js 4919 4928 /Users/root/.forever/dVWu.log 0:0:0:9.593 data: [2] GsBf /usr/local/bin/node portal-service.js 4932 4934 /Users/root/.forever/GsBf.log 0:0:0:8.149 data: [3] 4Ctc /usr/local/bin/node logger-service.js 4935 4944 /Users/root/.forever/4Ctc.log 0:0:0:7.581 **forever stop 0 ** info: Forever stopped process: uid command script forever pid id logfile uptime [0] lSkB /usr/local/bin/node portal-service.js 4916 4918 /Users/root/.forever/lSkB.log 0:0:0:15.749 [1] dVWu /usr/local/bin/node logger-service.js 4919 4928 /Users/root/.forever/dVWu.log 0:0:0:15.215 [2] GsBf /usr/local/bin/node portal-service.js 4932 4934 /Users/root/.forever/GsBf.log 0:0:0:13.772 [3] 4Ctc /usr/local/bin/node logger-service.js 4935 4944 /Users/root/.forever/4Ctc.log 0:0:0:13.204
自己顶一下呗
执行 forever stop id 后 forever list 中的ID 会相应的重新排序,forever stop 0 相当于每次都stop 第一个进程 是一个循环 直到stopall为止,有木有其他的处理方法
forever stop lSkB