RabbitMQ fails to start

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-12 02:43:10

问题


The RabbitMQ windows service will not start:

C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.0.4\sbin>rabbitmq-service.bat start
C:\Program Files (x86)\erl5.10.1\erts-5.10.1\bin\erlsrv: Failed to start service RabbitMQ.
Error: The process terminated unexpectedly.

I can run rabbitmq-server.bat without any problems.

No log entries are made to %appdata%\RabbitMQ\log\ directory when trying to start the service.

Any suggestions to how I make it work? Please...


回答1:


I faced the same problem and was able to solve the problem following the steps mentioned below.

  1. Run the command prompt as Administrator
  2. Navigate to the sbin directory and uninstall the service. rabbitmq-service remove
  3. Reinstall the service rabbitmq-service install
  4. Enable the plugins. rabbitmq-plugins enable rabbitmq_management
  5. Start the service rabbitmq-service start
  6. Go to "http://localhost:15672/"



回答2:


Problem solved!

My IT department has mapped %appdata% to a network share and it seems that the RabbitMQ scripts can’t work with that.

I solved the problem this way: Set the environment variable “RABBITMQ_BASE” to “c:\rabbitmq”, uninstall the service (rabbitmq-service.bat remove) and install the service again (rabbitmq-service.bat install).




回答3:


In my case helped running console as an administrator




回答4:


I restarted my computer after install and things are running a lot smoother




回答5:


Deleting "AppData\Roaming\RabbitMQ" solved this problem for me




回答6:


How I solved the same issue... Reinstalled Erlang from x86 to x64. Also checked the option to install Microsoft distributed dlls. I don't know which one of two helped me but it helped at least.




回答7:


run the following command after installation rabbitmq-plugins enable rabbitmq_management on rabbit mq pathRabbitMQ Server\rabbitmq_server-3.6.9\sbin>rabbitmq-plugins enable rabbitmq_management




回答8:


I faced the same issue of 1067 errro in windows 10. turns out the rabbitmq config file in location C:\Users\IPS\AppData\Roaming\RabbitMQ\advanced.config was having some synatx error. It was changed from the default configuration. Also the rabbitmq.conf file at the saem location also had syntax error. I removed the rabbitmq.conf file and removed the changes from advanced.config file. After that ranbbitmq servcie started without any issues.




回答9:


My situation was caused by wrong Erlang version. I solved it by the following steps:

  1. Uninstall the older version Erlang
  2. Install the newly version Erlang accordding to https://www.rabbitmq.com/which-erlang.html
  3. Reinstall RabbitMQ
  4. Install RabbitMQ plugin by opening the Windows's cmd and switch to the sbin directory eg.Your-Path\rabbitmq_server-3.7.13\sbin and execute the command rabbitmq-plugins.bat enable rabbitmq_management
  5. Start RabbitMQ and visit http://localhost:15672/



回答10:


Deleting HKEY_LOCAL_MACHINE\SOFTWARE\Ericsson\Erlang\ErlSrv\1.1\RabbitMQ folder from Registry has solved the problem for me. I have to reinstall (uninstall and install) the RabbitMQ after deleting the registry.

Moreover, I have deleted C:\Users\<USERNAME>\AppData\Roaming\RabbitMQ earlier.

I have found the solution from a post of a google group.



来源:https://stackoverflow.com/questions/16001047/rabbitmq-fails-to-start

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!