Solve the problem of not being able to access the RabbitMQ management page in the Linux server

Because a certain function of my project needs to send messages to rabbitmq in the server, I installed rabbitmq in the linux server today. First install the erlang environment with yum, then install the rabbitmq service through rpm, and then configure the environment.

systemctl start rabbitmq-server

Start rabbitmq, access ip:15672, and find that the server has denied access.

At first I suspected it was a firewall problem, so I checked the Linux firewall and Alibaba Cloud firewall, and found that port 15672 was open. So I started to troubleshoot the problem. In the server, I wget http://localhost:15762 and found that I couldn’t access it, so it was not a firewall problem, so I searched for the rabbitmq process through the command.

ps -ef | grep rabbitmq

It was found that there was content output, which proved that rabbitmq started successfully. Next, I checked the port number of rabbitmq and found that there was only port number 4369, not 15672. So I tried to modify the configuration file and other operations to modify the port number, but found that it had no effect. , after some Baidu, I found that I did not install the web plug-in, so I installed the web plug-in through the command

rabbitmq-plugins enable rabbitmq_management

After the installation is successful, I visit the management page and find that it still doesn’t work. Finally, I found that the plug-in startup location is by default under etc/rabbitmq, not under my rabbitmq installation location. Through the cd command, enter usr/lib/rabbitmq/bin

Install the plugin in it and restart the rabbitmq service to solve it

cd /usr/lib/rabbitmq/bin
rabbitmq-plugins enable  rabbitmq_management
rabbitmqctl stop
rabbitmq-server detached

Guess you like

Origin blog.csdn.net/qq_28174545/article/details/122167580