【发布时间】:2020-02-19 22:48:41
【问题描述】:
我是 windows 和 rabbit mq 的新手,我无法启动 web 管理插件。我按照here 列出的步骤操作,但收到了这条消息。
PS C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.0\sbin> .\rabbitmq-plugins.bat enable rabbitmq_management
The directory name is invalid.
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
Unsupported node name: hostname is invalid (possibly contains unsupported characters).
If using FQDN node names, use the -l / --longnames argument.
我还有ERLANG_HOME 变量,它是在安装过程中创建的。
请指教
【问题讨论】:
-
Unsupported node name: hostname is invalid (possibly contains unsupported characters).你没有分享你的用户名或主机名,所以我无法确认是不是这个原因。 -
在哪里可以找到正在使用的主机名?
-
hostname命令的输出是什么?在cmd.exeshell 中运行时,以下命令的输出是什么。如果erl.exe不在您的PATH 中,您必须先cd再到C:\Program Files\erl*\bin-erl.exe -A0 -noinput -boot start_clean -eval "net_kernel:start([list_to_atom(""rabbit-gethostname-"" ++ os:getpid()), shortnames]), [_, H] = string:tokens(atom_to_list(node()), ""@""), io:format(""~s~n"", [H]), init:stop()."