[英]pm2 commad always stuck at [PM2] Spawning PM2 daemon with pm2_home=/home/$USER/.pm2
I've been following this issue and till now my problem not solved, anyone can help?我一直在关注这个问题,直到现在我的问题还没有解决,有人可以帮忙吗? Any command of pm2 always returned
pm2的任何命令总是返回
[PM2] Spawning PM2 daemon with pm2_home=/home/$USER/.pm2
Thanks谢谢
I've been following this issue and till now my problem not solved, anyone can help?我一直在关注这个问题,直到现在我的问题还没有解决,有人可以帮忙吗? Any command of pm2 always returned
pm2的任何命令总是返回
[PM2] Spawning PM2 daemon with pm2_home=/home/$USER/.pm2
Thanks谢谢
I've been following this issue and till now my problem not solved, anyone can help?我一直在关注这个问题,直到现在我的问题还没有解决,有人可以帮忙吗? Any command of pm2 always returned
pm2的任何命令总是返回
[PM2] Spawning PM2 daemon with pm2_home=/home/$USER/.pm2
Thanks谢谢
我正在更新我的节点版本
I am having this issue on window 10 but can't solve problem by uninstall and reinstall pm2.我在 Windows 10 上遇到了这个问题,但无法通过卸载并重新安装 pm2 来解决问题。
Finally I found a solution.最后我找到了解决办法。
Run your command prompt (or) PowerShell as an Administrator
以管理员身份运行命令提示符(或)PowerShell
I experienced this when my disk was full.当我的磁盘已满时,我遇到过这种情况。
In my case, directory permission wasn't defined correctly for customized PM2_HOME
setting在我的例子中,目录权限没有为自定义的
PM2_HOME
设置正确定义
I changed pm2_home as follows:我改变了 pm2_home 如下:
# ~/.bashrc
export PM2_HOME="/var/www"
The problem was that the current user has no permission to write on /var/www
directory.问题是当前用户无权写入
/var/www
目录。 So I changed the directory permission in order to fix it.所以我更改了目录权限以修复它。
Tips:尖端:
pub.sock
and rpc.sock
(eg touch pub.sock
) manually when I see the error axon:sock Got error while trying to bind Error: listen EACCES: permission denied /var/www/pub.sock
from pm2.log
axon:sock Got error while trying to bind Error: listen EACCES: permission denied /var/www/pub.sock
from pm2.log
时,我手动创建了pub.sock
和rpc.sock
(例如touch pub.sock
)DEBUG=* pm2 ls
, it makes the CPU over 100% by writting pm2.log ( axon:sock Got error while trying to bind Error: listen EACCES: permission denied /var/www/pub.sock
)DEBUG=* pm2 ls
时,它通过写入 pm2.log 使 CPU 超过 100%( axon:sock Got error while trying to bind Error: listen EACCES: permission denied /var/www/pub.sock
)pub.sock
and rpc.sock
manually !pub.sock
和rpc.sock
!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.