1.无法启动 刚开始无法启动,发现docker中的rabbitmq占用了端口,关闭后就可以启动了 端口占用?关闭占用程序
2.页面访问问题,可能需要给一些目录权限,然后重启 页面底部显示:Management API returned status code 500 -
[root@localhost rabbitmq]# rabbitmq-plugins enable rabbitmq_management
Enabling plugins on node rabbit@localhost:
rabbitmq_management
The following plugins have been configured:
rabbitmq_management
rabbitmq_management_agent
rabbitmq_web_dispatch
Applying plugin configuration to rabbit@localhost...
Stack trace:
** (CaseClauseError) no case clause matching: {:error, {:cannot_read_enabled_plugins_file, '/etc/rabbitmq/enabled_plugins', :eacces}}
(rabbitmqctl 3.8.0-dev) lib/rabbitmq/cli/plugins/plugins_helpers.ex:107: RabbitMQ.CLI.Plugins.Helpers.update_enabled_plugins/4
(rabbitmqctl 3.8.0-dev) lib/rabbitmq/cli/plugins/commands/enable_command.ex:121: anonymous fn/6 in RabbitMQ.CLI.Plugins.Commands.EnableCommand.do_run/2
(elixir 1.10.4) lib/stream.ex:1325: anonymous fn/2 in Stream.iterate/2
(elixir 1.10.4) lib/stream.ex:1538: Stream.do_unfold/4
(elixir 1.10.4) lib/stream.ex:1609: Enumerable.Stream.do_each/4
(elixir 1.10.4) lib/stream.ex:956: Stream.do_enum_transform/7
(elixir 1.10.4) lib/stream.ex:1609: Enumerable.Stream.do_each/4
(elixir 1.10.4) lib/enum.ex:2161: Enum.reduce_while/3
{:case_clause, {:error, {:cannot_read_enabled_plugins_file, '/etc/rabbitmq/enabled_plugins', :eacces}}}
您在 /var/spool/mail/root 中有邮件
[root@localhost rabbitmq]# history
1097 2021-07-14 13:46:50 tail -f rabbit@localhost.log
1098 2021-07-14 13:54:03 rabbitmq-plugins enable rabbitmq_management
1099 2021-07-14 13:55:34 chown -R rabbitmq:rabbitmq /etc/rabbitmq/
1100 2021-07-14 13:55:35 rabbitmq-plugins enable rabbitmq_management
1101 2021-07-14 13:55:45 chown -R rabbitmq:rabbitmq /etc/rabbitmq/enabled_plugins
1102 2021-07-14 13:55:47 rabbitmq-plugins enable rabbitmq_management
1103 2021-07-14 14:00:48 chown -R rabbitmq:rabbitmq /etc/rabbitmq/enabled_plugins
1104 2021-07-14 14:01:30 chown -R rabbitmq:rabbitmq /etc/rabbitmq/enabled_plugins
1105 2021-07-14 14:01:39 chown -R rabbitmq:rabbitmq /etc/rabbitmq
1106 2021-07-14 14:01:56 systemctl stop rabbitmq-server.service
1107 2021-07-14 14:02:06 systemctl daemon-reload
1108 2021-07-14 14:02:08 systemctl daemon-reload
1109 2021-07-14 14:02:10 systemctl stop rabbitmq-server.service
1110 2021-07-14 14:02:18 systemctl start rabbitmq-server.service
我的情况是,给权限后启动之后就好了
|