Linux environment installation rabbitmq installation graphic detailed explanation


Linux environment installation

1. Install Erlang

Official website download : https://www.erlang-solutions.com/resources/download.htmlBaidu
insert image description here
network disk: download address
extraction code: yyds

2. Upload the file to the home~ directory of the Linux system

3. Install erlang

yum -y install esl-erlang_23.0.2-1_centos_7_amd64.rpm

detect-erlang
insert image description here

4. Install RabbitMQ

yum -y install rabbitmq-server-3.8.5-1.el7.noarch.rpm

insert image description here

5. Enable rabbitmq service

systemctl start rabbitmq-server.service

6. Testing service

systemctl status rabbitmq-server.service

7. Modify the firewall and add rules

-A INPUT -p tcp -m state --state NEW -m tcp --dport 15672 -j ACCEPT 
-A INPUT -p tcp -m state --state NEW -m tcp --dport 5672 -j ACCEPT

8. Restart the firewall

systemctl restart iptables.service

9. Access

systemctl restart iptables.service

The guest user can only access localhost (local machine) by default
insert image description here

10. Modify the configuration file for remote access

Create a rabbitmq.config file in the rabbitmq configuration file directory (default: /etc/rabbitmq). Add the following configuration to the file (please don't forget the "."):

[{
    
    rabbit, [{
    
    loopback_users, []}]}].

11. Restart the rabbitmq service

systemctl restart rabbitmq-server.service

12. Revisit

insert image description here

Guess you like

Origin blog.csdn.net/m0_49303490/article/details/125483557