Article directory
- 1. Install Erlang
- 2. Upload the file to the home~ directory of the Linux system
- 3. Install erlang
- 4. Install RabbitMQ
- 5. Enable rabbitmq service
- 6. Testing service
- 7. Modify the firewall and add rules
- 8. Restart the firewall
- 9. Access
- 10. Modify the configuration file for remote access
- 11. Restart the rabbitmq service
- 12. Revisit
Linux environment installation
1. Install Erlang
Official website download : https://www.erlang-solutions.com/resources/download.htmlBaidu
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
4. Install RabbitMQ
yum -y install rabbitmq-server-3.8.5-1.el7.noarch.rpm
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
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