加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Python > 正文

python – “错误:无法初始化erlang发行版:”试图运行“rabbit

发布时间:2020-12-20 12:33:47 所属栏目:Python 来源:网络整理
导读:之前已经问过这个问题( RabbitMQ Failed to initialize erlang distribution),但我还没有找到如何从现有答案中解决它.在 https://www.rabbitmq.com/man/rabbitmqctl.1.man.html之后,我想运行rabbitmqctl status命令来显示有关RabbitMQ代理的信息.但是,我收到
之前已经问过这个问题( RabbitMQ Failed to initialize erlang distribution),但我还没有找到如何从现有答案中解决它.在 https://www.rabbitmq.com/man/rabbitmqctl.1.man.html之后,我想运行rabbitmqctl status命令来显示有关RabbitMQ代理的信息.但是,我收到一条错误消息:

kurt@kurt-ThinkPad:~$rabbitmqctl status

Error: Failed to initialize erlang distribution: {{shutdown,
{failed_to_start_child,
net_kernel,
{‘EXIT’,nodistribution}}},
{child,undefined,
net_sup_dynamic,
{erl_distribution,
start_link,
[[‘rabbitmq-cli-13’,
shortnames]]},
permanent,1000,supervisor,
[erl_distribution]}}.

Only root or rabbitmq should run rabbitmqctl

如果我用sudo运行命令,我仍然会收到一条错误消息:

kurt@kurt-ThinkPad:~$sudo rabbitmqctl status

Error: Failed to initialize erlang distribution: {{shutdown,
[[‘rabbitmq-cli-69’,
[erl_distribution]}}.

我怎样才能解决这个问题?

解决方法

尝试启用rabbitmq管理插件时,我也遇到了类似的错误,
$rabbitmq-plugins启用rabbitmq_management

错误:无法初始化erlang分发:{{shutdown,
???????????????????????????????????????????????????{failed_to_start_child,
????????????????????????????????????????????????????AUTH,
????????????????????????????????????????????????????{“读取时出错./.erlang.cookie:eacces”,…}}.

当我和** sudo一起跑时,它解决了.**

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读