Problem Description
[ERROR] Invalid service name. Please type NET HELPMSG 2185 for more help.
Reinstalled 10,000 times and reported the same error.
Even in the process of reinstalling, it was found that an error had been reported.
reason
Searched around and found nothing useful. Then give up and think for yourself.
Analyzed it:
- Due to the garbled characters, I considered that the software should have encoding incompatibility.
- Due to the need for the participation of erlang, there may be incompatibility issues of erlang.
eureka (a flash of inspiration)!
solution
- Completely uninstall erlang and rabbitmq and restart it again. If you understand the registry, clean the registry (only if you understand the operation, be careful not to boot).
- Find compatible versions of erlang and rabbitmq installation packages on the official website, refer to the version requirements of the official website of rabbitMQ here, and list which versions of erlang and rabbitMQ are compatible, https://www.rabbitmq.com/which-erlang.html , as shown below
For example, I use erlang 25.0 and rabbitMQ 3.10.7, both of which are the latest (2022.8.11). As shown below
3. Install erlang to a directory without spaces and Chinese, if not the default C:\Program Files\ directory
4. Configure the environment configuration of erlang and restart, and you can enter erl to start the erlang shell normally, as shown in Figure
5. Install rabbitmq to No spaces and Chinese directories, not the default C:\Program Files
6. Configure environment variables (doesn’t seem to be used? Just start the service - start menu in the picture below)
7. The startup is successful! ! ! ! ! ! ! !
! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
in conclusion
Don't read the blogs copied from each other, it's much more useful to think for yourself