【RabbitMQ】[Error] The service name is invalid. Please type NET HELPMSG 2185 for more help.

Problem Description

[ERROR] Invalid service name. Please type NET HELPMSG 2185 for more help.
can't start service
Reinstalled 10,000 times and reported the same error.
Even in the process of reinstalling, it was found that an error had been reported.

insert image description here

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

  1. 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).
  2. 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
    insert image description here

For example, I use erlang 25.0 and rabbitMQ 3.10.7, both of which are the latest (2022.8.11). As shown belowinsert image description here

insert image description here
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 insert image description here
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) insert image description here
7. The startup is successful! ! ! ! ! ! ! !
! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
insert image description here

in conclusion

Don't read the blogs copied from each other, it's much more useful to think for yourself

Guess you like

Origin blog.csdn.net/gongfpp/article/details/126280727