开启管理界面
rabbitmq-plugins enable rabbitmq_management
出现如下异常:
Error: Failed to initialize erlang distribution: {{shutdown,
{failed_to_start_child,
auth,
{"Error when reading ./.erlang.cookie: eacces",
[{auth,init_cookie,0,
[{file,"auth.erl"},
{line,286}]},
{auth,init,1,
[{file,"auth.erl"},
{line,140}]},
{gen_server,init_it,6,
[{file,
"gen_server.erl"},
{line,328}]},
{proc_lib,
init_p_do_apply,3,
[{file,"proc_lib.erl"},
{line,240}]}]}}},
{child,undefined,
net_sup_dynamic,
{erl_distribution,
start_link,
[['rabbitmq-cli-04',
shortnames]]},
permanent,1000,supervisor,
[erl_distribution]}}.
解决方案:
sudo rabbitmq-plugins enable rabbitmq_management