rabbitmq创建用户失败,而且我一个用户也没有

$ sbin/rabbitmqctl add_user admin admin
Creating user "admin" ...
Error: {undef,
[{crypto,hash,[sha256,<>],[]},
{rabbit_password,hash,2,
[{file,"src/rabbit_password.erl"},{line,34}]},
{rabbit_auth_backend_internal,add_user,2,
[{file,"src/rabbit_auth_backend_internal.erl"},{line,175}]},
{rpc,'-handle_call_call/6-fun-0-',5,
[{file,"rpc.erl"},{line,205}]}]}

$ sbin/rabbitmqctl list_users
Listing users ...

然后就没了。。。
我为什么不能创建用户。这种情况是什么原因造成的,如何解决。
而且我启动服务之后http://localhost:15672也打不开。

我觉得安装是个很简单的过程啊。我是环境有问题吗?搞得这么费劲。

我打开日志
Creating user 'guest'
Unable to load crypto library. Failed with error:
"load_failed, Failed to load NIF library: 'dlopen(/Users/aa/documents/work/rabbitmq_server-3.6.5/erts-6.4/bin/../../lib/crypto-3.5/priv/lib/crypto.so, 2): Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
Referenced from: /Users/zhengzheng/Documents/work/rabbitmq_server-3.6.5/lib/crypto-3.5/priv/lib/crypto.so
Reason: image not found'"
OpenSSL might not be installed on this system.

需要先安装OpenSSL?

OPENSSL是系统自带的。
现在直接链接日志会报这个错误。

Error on AMQP connection (127.0.0.1:50056 -> 127.0.0.1:5672, state: starting):
PLAIN login refused: user 'guest' - invalid credentials。
控制台报错
Exception in thread "main" com.rabbitmq.client.AuthenticationFailureException: ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile.
at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:338)
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:824)
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:778)
at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:868)

          RabbitMQ 3.6.5. Copyright (C) 2007-2016 Pivotal Software, Inc.

## ## Licensed under the MPL. See http://www.rabbitmq.com/
## ##
########## Logs: /Users/zhengzheng/documents/work/rabbitmq_server-3.6.5/var/log/rabbitmq/rabbit@zhengzhengdeMacBook-Air.log
###### ## /Users/zhengzheng/documents/work/rabbitmq_server-3.6.5/var/log/rabbitmq/rabbit@zhengzhengdeMacBook-Air-sasl.log
##########
Starting broker...

BOOT FAILED

Error description:
{could_not_start,rabbit,
{{badmatch,
{error,
{{{badmatch,
{error,
{"/Users/zhengzheng/documents/work/rabbitmq_server-3.6.5/var/lib/rabbitmq/mnesia/rabbit@zhengzhengdeMacBook-Air/msg_store_transient/0.rdq",
eacces}}},
[{rabbit_msg_store,init,1,
[{file,"src/rabbit_msg_store.erl"},{line,726}]},
{gen_server2,init_it,6,
[{file,"src/gen_server2.erl"},{line,544}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,237}]}]},
{child,undefined,msg_store_transient,
{rabbit_msg_store,start_link,
[msg_store_transient,
"/Users/zhengzheng/documents/work/rabbitmq_server-3.6.5/var/lib/rabbitmq/mnesia/rabbit@zhengzhengdeMacBook-Air",
undefined,
{#Fun,ok}]},
transient,30000,worker,
[rabbit_msg_store]}}}},
[{rabbit_variable_queue,start_msg_store,2,
[{file,"src/rabbit_variable_queue.erl"},{line,451}]},
{rabbit_variable_queue,start,1,
[{file,"src/rabbit_variable_queue.erl"},{line,436}]},
{rabbit_priority_queue,start,1,
[{file,"src/rabbit_priority_queue.erl"},{line,92}]},
{rabbit_amqqueue,recover,0,
[{file,"src/rabbit_amqqueue.erl"},{line,239}]},
{rabbit,recover,0,[{file,"src/rabbit.erl"},{line,652}]},
{rabbit_boot_steps,'-run_step/2-lc$^1/1-1-',1,
[{file,"src/rabbit_boot_steps.erl"},{line,49}]},
{rabbit_boot_steps,run_step,2,
[{file,"src/rabbit_boot_steps.erl"},{line,49}]},
{rabbit_boot_steps,'-run_boot_steps/1-lc$^0/1-0-',1,
[{file,"src/rabbit_boot_steps.erl"},{line,26}]}]}}

Log files (may contain more information):
/Users/zhengzheng/documents/work/rabbitmq_server-3.6.5/var/log/rabbitmq/rabbit@zhengzhengdeMacBook-Air.log
/Users/zhengzheng/documents/work/rabbitmq_server-3.6.5/var/log/rabbitmq/rabbit@zhengzhengdeMacBook-Air-sasl.log

{"init terminating in do_boot",{could_not_start,rabbit,{{badmatch,{error,{{{badmatch,{error,{"/Users/zhengzheng/documents/work/rabbitmq_server-3.6.5/var/lib/rabbitmq/mnesia/rabbit@zhengzhengdeMacBook-Air/msg_store_transient/0.rdq",eacces}}},[{rabbit_msg_store,init,1,[{file,"src/rabbit_msg_store.erl"},{line,726}]},{gen_server2,init_it,6,[{file,"src/gen_server2.erl"},{line,544}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]},{child,undefined,msg_store_transient,{rabbit_msg_store,start_link,[msg_store_transient,"/Users/zhengzheng/documents/work/rabbitmq_server-3.6.5/var/lib/rabbitmq/mnesia/rabbit@zhengzhengdeMacBook-Air",undefined,{#Fun,ok}]},transient,30000,worker,[rabbit_msg_store]}}}},[{rabbit_variable_queue,start_msg_store,2,[{file,"src/rabbit_variable_queue.erl"},{line,451}]},{rabbit_variable_queue,start,1,[{file,"src/rabbit_variable_queue.erl"},{line,436}]},{rabbit_priority_queue,start,1,[{file,"src/rabbit_priority_queue.erl"},{line,92}]},{rabbit_amqqueue,recover,0,[{file,"src/rabbit_amqqueue.erl"},{line,239}]},{rabbit,recover,0,[{file,"src/rabbit.erl"},{line,652}]},{rabbit_boot_steps,'-run_step/2-lc$^1/1-1-',1,[{file,"src/rabbit_boot_steps.erl"},{line,49}]},{rabbit_boot_steps,run_step,2,[{file,"src/rabbit_boot_steps.erl"},{line,49}]},{rabbit_boot_steps,'-run_boot_steps/1-lc$^0/1-0-',1,[{file,"src/rabbit_boot_steps.erl"},{line,26}]}]}}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
启动也启动不了了。我还是重装吧。

也同样遇到 了这样的问题,求解呀