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
答案 0 :(得分: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