简体   繁体   English

pm2 commad 总是卡在 [PM2] Spawning PM2 daemon with pm2_home=/home/$USER/.pm2

[英]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:尖端:

  • I created 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.sockrpc.sock (例如touch pub.sock
  • But when I run 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
  • So create pub.sock and rpc.sock manually !所以手动创建pub.sockrpc.sock

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM