Windows could not start the RabbitMQ Service on local Computer

后端 未结 3 2154
南方客
南方客 2021-02-20 03:48

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)

相关标签:
3条回答
  • 2021-02-20 04:34
    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
    

    and please make sure that you have copied the .erlang.cookie from c:\Windows to the root of your user folder ( C:\Users{user}\ )

    0 讨论(0)
  • 2021-02-20 04:36

    I think I had the same problem which lies in the error

    The filename, directory name, or volume label syntax is incorrect.

    ... and that maybe when erlang was installed it for some reason is sets the HOMEDRIVE to u: or something silly.

    From the command line run:

    SET HOMEDRIVE=C:
    

    Then try to run your rabbitmq-service again. You may have to stop, remove, install, start it again.

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

    and please make sure that you have copied the .erlang.cookie from c:\Windows to the root of your user folder ( C:\Users\{user}\ )

    0 讨论(0)
  • 2021-02-20 04:38

    Try

    rabbitmq-service install

    then

    rabbitmq-service start
    

    again

    0 讨论(0)
提交回复
热议问题