rabbitmq installation steps under linux system

Step 1: Log in to the official website
Official website address: www.rabbitmq.com, click Get Started
Important information: RabbitMQ Tutorials manual, which describes the working mode
Step 2: Click Download + Installation to download
important information: rabbitmq is developed in erlang language, so The version of erlang should correspond to the version of rabbitmq.
There is a corresponding relationship in the Erlang Versions on the sidebar
insert image description here
Step 3: The software is transferred to Linux through ftp and
the rabbitmq software package is placed in the English folder. There should be no Chinese in the path to prevent
Linux from Alt+Pentering the ftp interface due to some garbled characters. . Or connect to the server directly with xftp.

put -r f:/setip/rabbitmq

Step 4: After uploading, enter the directory and install erlang environment, socat, rabbitmq respectively.
After uploading, enter the directory
and install erlang

rpm -ivh erlang-18.3-1.el7.centos.x86_64.rpm

install socat

rpm -ivh socat-1.7.3.2-5.el7.lux.x86_64.rpm

Install rabbitmq

rpm -ivh rabbitmq-server-3.6.5-1.noarch.rpm

The fifth step is to start the service, stop the service, and restart the service

service rabbitmq-server start # 启动服务

The sixth step, start the console

# 开启管理界面
rabbitmq-plugins enable rabbitmq_management
# 修改默认配置信息
vim /usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/ebin/rabbit.app 
# 比如修改密码、配置等等,例如:loopback_users 中的 <<"guest">>,只保留guest

Find tcp-listeners is the management console port, remember
to add 1 before the port of tcp-listeners when accessing the management console address
to find loopback_users, remove the comment of <<"guest">>, remember this is the user, i is the modification

The seventh step is to access the management console address
and close the firewall

service iptables stop

Restart the rabbitmq service

service rabbitmq-server restart # 重启服务

access port

http://ip地址:15672

The seventh step, stop the service

service rabbitmq-server stop # 停止服务

Guess you like

Origin blog.csdn.net/m0_49382941/article/details/129226015