本文介绍了当我为rabbitmq-management创建用户时,发生了错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我为 rabbitmq 创建用户时

when i create a user for rabbitmq

[root@localhost ~]# rabbitmqctl add_user admin admin

发生错误,消息:

Creating user "admin"
Error: {undef,
           [{crypto,hash,[sha256,<<165,63,157,75,97,100,109,105,110>>],[]},
            {rabbit_password,hash,2,
                [{file,"src/rabbit_password.erl"},{line,34}]},
            {rabbit_auth_backend_internal,add_user_sans_validation,2,
                [{file,"src/rabbit_auth_backend_internal.erl"},{line,191}]},
            {rpc,'-handle_call_call/6-fun-0-',5,
                [{file,"rpc.erl"},{line,205}]}]}

我发现没有默认用户 [guest]

And I found there isn't default user [guest]

[root@localhost ~]# rabbitmqctl list_users
Listing users

推荐答案

{undef,[{crypto, 表示你的 Erlang 安装没有完成.缺少加密库.

{undef,[{crypto, means that your Erlang installation is not completed.The crypto library is missing.

如果你使用 Centos,我建议使用这个零依赖包:https://github.com/rabbitmq/erlang-rpm/releases/tag/v19.3.6.2

if you are using Centos I suggest using this Zero dependency package: https://github.com/rabbitmq/erlang-rpm/releases/tag/v19.3.6.2

或者尝试执行yum install erlang-crypto

如果您是 Debian,请尝试使用 apt-get install erlang-crypto

if you are Debian try with apt-get install erlang-crypto

这篇关于当我为rabbitmq-management创建用户时,发生了错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-07 05:36