我正在尝试在我的本地Windows笔记本电脑上启动RabbitMQ服务,但我一直收到此错误:
我首先从这里下载了erlang(OTP 19.0 Windows 64位二进制文件):http://www.erlang.org/downloads。 然后我从这里下载了RabbitMQ:https://www.rabbitmq.com/install-windows.html
Erlang似乎已正确安装 - 我没有在日志中看到任何错误。 RabbitMQ在安装日志中显示此消息:
Installing RabbitMQ service...
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
C:\Program Files\erl8.0\erts-8.0\bin\erlsrv: Service RabbitMQ added to system.
Error spawning C:\Program Files\erl8.0\erts-8.0\bin\epmd -daemon (error 0)
Starting RabbitMQ service...
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
C:\Program Files\erl8.0\erts-8.0\bin\erlsrv: Failed to start service RabbitMQ.
Error: The process terminated unexpectedly.
我卸载了两台,重新启动了我的笔记本电脑并重新安装但仍然无法正常工作。
我还添加了防火墙规则,但仍然没有运气。第二个防火墙规则是允许连接这些端口:4369,25672,5672,5671,15672,61613,61614,1883,8883
答案 0 :(得分:15)
我认为我遇到了同样的错误
文件名,目录名或卷标语法不正确。
...也许当安装了erlang时,由于某些原因将 HOMEDRIVE 设置为 u:或者是愚蠢的。
从命令行运行:
SET HOMEDRIVE=C:
然后尝试再次运行您的rabbitmq服务。您可能必须再次停止,删除,安装,启动。
rabbitmq-service stop
rabbitmq-service remove
rabbitmq-service install
rabbitmq-service start
请确保您已将 .erlang.cookie 从 c:\ Windows 复制到用户文件夹的根目录( C:\ Users \ {user} \ )
答案 1 :(得分:2)
Open the command prompt and run the following commands one by one:
c:\>cd\
c:\>cd Program Files
c:\Program Files>cd RabbitMQ Server
c:\Program Files\RabbitMQ Server>dir
c:\Program Files\RabbitMQ Server>cd rabbitmq_server-3.8.1
c:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.1>dir
c:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.1>cd sbin
c:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.1\sbin>dir
c:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.1\sbin>SET HOMEDRIVE=C:
c:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.1\sbin>rabbitmq-service enable
c:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.1\sbin>rabbitmq-plugins enable rabbitmq_management
,请确保已将.erlang.cookie从c:\ Windows复制到用户文件夹的根目录(C:\ Users {user} \)
答案 2 :(得分:0)
尝试
rabbitmq-service install
然后
rabbitmq-service start
再次
答案 3 :(得分:0)
请使用以下命令,这对我有用
rabbitmq-service remove
rabbitmq-service install
rabbitmq-service start