RabbitMQ无法启用管理插件

问题描述 投票:0回答:1
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>
rabbitmq-plugins.bat enable rabbitmq-management


The directory name is invalid.
The filename, directory name, or volume label syntax is incorrect.
** (MatchError) no match of right hand side value: {:error, {:node_name, 
:hostname_not_allowed}}
    (rabbitmqctl) lib/rabbitmq/cli/core/helpers.ex:32: 
RabbitMQ.CLI.Core.Helpers.normalise_node/2
(rabbitmqctl) lib/rabbitmqctl.ex:232: RabbitMQCtl.merge_defaults_node/1
(rabbitmqctl) lib/rabbitmqctl.ex:225: RabbitMQCtl.merge_all_defaults/1
(rabbitmqctl) lib/rabbitmqctl.ex:103: RabbitMQCtl.exec_command/2
(rabbitmqctl) lib/rabbitmqctl.ex:45: RabbitMQCtl.main/1
(elixir) lib/kernel/cli.ex:105: anonymous fn/3 in Kernel.CLI.exec_fun/2

尝试启用管理时收到此错误。我试过重新安装rabbitmq和erlang。我尝试设置环境变量。似乎没有任何工作。它运行在Windows Server 2016,otp_win64_21.3和rabbitmq-server-3.7.14

更新:

我尝试将服务器重命名为全部大写,全部小写,并且没有破折号...这些都无济于事。这些服务器当前名为“ SQL01-Dev”和“ sql01-live”

更新2:

我已经使用节点名称运行了该命令,它没有任何作用。我确实注意到环境变量和hostname命令之间的主机名存在大小写差异。这是我的命令行输出:

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>rabbitmq- 
plugins.bat -n rabbit@SQL01-dev enable rabbitmq_management
The directory name is invalid.
The filename, directory name, or volume label syntax is incorrect.
** (MatchError) no match of right hand side value: {:error, {:node_name, 
:hostname_not_allowed}}
(rabbitmqctl) lib/rabbitmq/cli/core/helpers.ex:32: RabbitMQ.CLI.Core.Helpers.normalise_node/2
(rabbitmqctl) lib/rabbitmqctl.ex:232: RabbitMQCtl.merge_defaults_node/1
(rabbitmqctl) lib/rabbitmqctl.ex:225: RabbitMQCtl.merge_all_defaults/1
(rabbitmqctl) lib/rabbitmqctl.ex:103: RabbitMQCtl.exec_command/2
(rabbitmqctl) lib/rabbitmqctl.ex:45: RabbitMQCtl.main/1
(elixir) lib/kernel/cli.ex:105: anonymous fn/3 in Kernel.CLI.exec_fun/2

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>Hostname
SQL01-dev

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>echo %COMPUTERNAME%
SQL01-DEV

更新3

我已删除@Echo Off行。这是输出:

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>REM @echo off

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>REM  The 
contents of this file are subject to the Mozilla Public License

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>REM  Version 
1.1 (the "License"); you may not use this file except in

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>REM  compliance 
with the License. You may obtain a copy of the License

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>REM  at 
http://www.mozilla.org/MPL/

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>REM

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>REM  Software 
distributed under the License is distributed on an "AS IS"

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>REM  basis, 
WITHOUT WARRANTY OF ANY KIND, either express or implied. See

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>REM  the 
License for the specific language governing rights and

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>REM  
limitations under the License.

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>REM

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>REM  The 
Original Code is RabbitMQ.

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>REM

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>REM  The 
Initial Developer of the Original Code is GoPivotal, Inc.

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>REM  Copyright 
(c) 2007-2015 Pivotal Software, Inc.  All rights reserved.

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>REM

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>setlocal

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>rem Preserve values that might contain exclamation marks before

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>rem enabling delayed expansion

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>set TDP0=C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin\

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>set STAR=enable RabbitMQ-Management

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>setlocal enabledelayedexpansion

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>REM Get default settings with user overrides for (RABBITMQ_)<var_name>

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>REM Non-empty defaults should be set in rabbitmq-env

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>call 
"!TDP0!\rabbitmq-env.bat" rabbitmq-plugins
The directory name is invalid.
The filename, directory name, or volume label syntax is incorrect.
** (MatchError) no match of right hand side value: {:error, {:node_name, 
:hostname_not_allowed}}
    (rabbitmqctl) lib/rabbitmq/cli/core/helpers.ex:32: 
RabbitMQ.CLI.Core.Helpers.normalise_node/2
(rabbitmqctl) lib/rabbitmqctl.ex:232: RabbitMQCtl.merge_defaults_node/1
(rabbitmqctl) lib/rabbitmqctl.ex:225: RabbitMQCtl.merge_all_defaults/1
(rabbitmqctl) lib/rabbitmqctl.ex:103: RabbitMQCtl.exec_command/2
(rabbitmqctl) lib/rabbitmqctl.ex:45: RabbitMQCtl.main/1
(elixir) lib/kernel/cli.ex:105: anonymous fn/3 in Kernel.CLI.exec_fun/2

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin>

更新4:

如果我使用本地帐户登录,我可以启动和配置服务器。但是,启用Rabbitmq_management时,在端口15672上仍然没有任何监听。另外,我的开发机不在使用本地登录名,但对所有内容都很好用。我已经比较了这两个系统的Set命令的输出,唯一能看到的区别是我的dev机器对java之类的东西有一些额外的变量。我认为RabbitMQ不需要任何东西。我仍然没有看到工作环境与非工作环境之间的重大差异。我尚未测试我是否可以从本地帐户运行的情况下实际连接到MQ服务器,但是无论如何我们都需要能够使用域登录名来管理服务器...

rabbitmq
1个回答
0
投票

使用管理权限打开“ RabbitMQ命令提示符(sbin目录)”终端,运行:“得到无效路径之前的错误

请检查您的Window Defender防火墙应用或功能设置,如下所示:1.在窗口搜索中写下“窗口防御防火墙”2.单击“通过Windows Defender防火墙允许应用程序或功能”3.点击“更改设置”4.检查epdm和erl的设置,它应该是(Domain = true; private:true和public = true)5.点击“确定”

请运行以下命令:

set HOMEDRIVE=C: 
rabbitmq-service.bat stop
rabbitmq-service.bat uninstall
rabbitmq-service.bat install
rabbitmq-service.bat start
rabbitmq-plugins.bat enable rabbitmq_management
© www.soinside.com 2019 - 2024. All rights reserved.