问题
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.
- Run the command prompt as Administrator
- Navigate to the sbin directory and uninstall the service. rabbitmq-service remove
- Reinstall the service rabbitmq-service install
- Enable the plugins. rabbitmq-plugins enable rabbitmq_management
- Start the service rabbitmq-service start
- 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:
- Uninstall the older version Erlang
- Install the newly version Erlang accordding to https://www.rabbitmq.com/which-erlang.html
- Reinstall RabbitMQ
- Install RabbitMQ plugin by opening the Windows's cmd and switch to the sbin directory eg.
Your-Path\rabbitmq_server-3.7.13\sbinand execute the commandrabbitmq-plugins.bat enable rabbitmq_management - 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