erlang Windows无法启动本地计算机上的RabbitMQ服务

pxy2qtax  于 2022-12-08  发布在  Erlang
关注(0)|答案(4)|浏览(399)

I am trying to start RabbitMQ service on my local Windows laptop but I keep getting this error:

I first downloaded erlang (OTP 19.0 Windows 64-bit Binary File) from here: http://www.erlang.org/downloads . Then I downloaded RabbitMQ from here: https://www.rabbitmq.com/install-windows.html
Erlang seems to have installed correctly - I don't see any errors in the logs. RabbitMQ shows this message in the installation logs:

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.

I uninstalled both, restarted my laptop and reinstalled but still doesn't work.
I also added Firewall Rules but still no luck. The 2nd firewall rule is for allowing connection for these ports: 4369, 25672, 5672, 5671, 15672, 61613, 61614, 1883, 8883

t3irkdon

t3irkdon1#

我想我也有同样的问题,就是错误
文件名、目录名或卷标语法不正确。
...并且可能在安装Erlang时,由于某种原因,它将HOMEDRIVE设置为 * u:* 或其他愚蠢的设置。
从命令行运行:

SET HOMEDRIVE=C:

然后尝试再次运行你的rabbitmq服务。你可能需要**停止,删除,安装,**再次启动它。

rabbitmq-service stop
rabbitmq-service remove
rabbitmq-service install
rabbitmq-service start

请确保已将**. erlang. cookiec:\Windows**复制到用户文件夹的根目录(**C:\Users{user}**)

tyu7yeag

tyu7yeag2#

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}\)

63lcw9qa

63lcw9qa3#

请使用下面的命令,这对我有用

rabbitmq-service remove

rabbitmq-service install

rabbitmq-service start
s8vozzvw

s8vozzvw4#

尝试
rabbitmq-service install
然后

rabbitmq-service start

再一次

相关问题