My question is the same as How to use pm2 startup command on Debian platform? but i need to make it start on Mac OS (darwin)
I only found a very bref documentation $ pm2 startup <ubuntu|centos|gentoo|systemd>
What can I do?
My question is the same as How to use pm2 startup command on Debian platform? but i need to make it start on Mac OS (darwin)
I only found a very bref documentation $ pm2 startup <ubuntu|centos|gentoo|systemd>
What can I do?
PM2 现在有 darwin 启动选项,所以运行:
pm2 startup darwin
应该管用。
还要检查这个提交:1. 使平台自动检测。2.支持darwin启动脚本。所以现在,你可以打电话:
pm2 startup
该脚本将识别您的操作系统。
注意:我目前在优胜美地遇到问题,因为 launchd 给了我一个错误。您可以在此处找到更多信息(以及适用于我的解决方案):darwin startup script fix on yosemite #989
此外,如果您可以在您的环境中对其进行测试并支持此拉取请求,那就太好了:)