admin管理员组文章数量:1327524
I have a bunch of processes started by PM2 on a server. pm2 list
shows this:
I'm sure that each of them is started with an ecosystem config file. What I want to know is that what pm2 ecosystem config file is used to start for example process with the id 62 and the ecosystem config file path.
So is there any pm2 mand for that?
I have a bunch of processes started by PM2 on a server. pm2 list
shows this:
I'm sure that each of them is started with an ecosystem config file. What I want to know is that what pm2 ecosystem config file is used to start for example process with the id 62 and the ecosystem config file path.
So is there any pm2 mand for that?
Share Improve this question asked Aug 30, 2021 at 8:06 AMDAMD 2033 silver badges11 bronze badges1 Answer
Reset to default 6Well, you can differ processes by app name (so you should set unique name in each ecosystem config file) or you can use a NODE_APP_INSTANCE variable to differ processes in cluster.
[EDIT]
There is no way how to find specific ecosystem file but you can use pm2 describe [processID/name]
to find directory where was pm2 start
executed (exec cwd
parameter). If there is more ecosystem files than 1 you can differ processes only by name.
本文标签: javascriptHow to find out which ecosystemjson file is used to start a process in pm2Stack Overflow
版权声明:本文标题:javascript - How to find out which ecosystem.json file is used to start a process in pm2 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742177988a2427936.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论