可以将pm2与自定义c程序一起使用吗?如果是这样,这是如何完成的?它运作良好吗?您是否已经将pm2用于node.js应用程序,也可以将其用于ac程序吗?
为了运行预编译的可执行文件或二进制文件,您需要在JSON文件中添加"exec_interpreter": "none"和"exec_mode" : "fork_mode"。
{
"apps" : [{
"name" : "binary",
"script" : "./binary",
"exec_interpreter": "none",
"exec_mode" : "fork_mode"
}]
}
Run Code Online (Sandbox Code Playgroud)
来源:http : //pm2.keymetrics.io/docs/usage/process-management/#start-any-process-type 和https://github.com/Unitech/pm2/issues/1776#issuecomment-157560622