RabbitMQ installation tutorial in Linux environment

content

1. Download

2. Install Erlang environment

2.1 Download rpm file

2.2 Execute the commands in sequence:

3. Install RabbitMQ

3.1 Installation:

3.2 Setting the configuration file

3.3 Start, stop

3.4 Open the web interface management tool

3.5 Set boot up

3.6 Firewall opens port 15672

4. Management interface

4.1. Homepage overview


1. Download

Official website address: Downloading and Installing RabbitMQ — RabbitMQ http://www.rabbitmq.com/download.html

GIt address: https://github.com/rabbitmq/rabbitmq-server/releases https://github.com/rabbitmq/rabbitmq-server/releases


2. Install Erlang environment

2.1 Download rpm file

Baidu cloud resource address (recommended self-test can be successfully installed):

Link: https://pan.baidu.com/s/1mWsbW391qPQkw0QV1kSYNQ Extraction code: ck74 After copying this content, open the Baidu SkyDrive mobile app, the operation is more convenient

Or use yum to download

yum install esl-erlang_17.3-1~centos~6_amd64.rpm

yum install esl-erlang_17.3-1.x86_64.rpm

yum install esl-erlang-compat-R14B-1.el6.noarch.rpm

2.2 Execute the commands in sequence:

1)rpm -ivh esl-erlang-17.3-1.x86_64.rpm --force --nodeps

2)rpm -ivh esl-erlang_17.3-1centos6_amd64.rpm --force --nodeps

3) rpm -ivh esl-erlang-compat-R14B-1.el6.noarch.rpm --force --nodeps


3. Install RabbitMQ

First (Baidu cloud has RabbitMQ installation file) download address

3.1 Installation:

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

3.2 Setting the configuration file

cp /usr/share/doc/rabbitmq-server-3.4.1/rabbitmq.config.example /etc/rabbitmq/rabbitmq.config

Enable user remote access

vi /etc/rabbitmq/rabbitmq.config

Unpack the comment, taking care to remove the trailing comma.

3.3 Start, stop

service rabbitmq-server start  ##启动

service rabbitmq-server stop  ##停止

service rabbitmq-server restar  ##重启

3.4 Open the web interface management tool

rabbitmq-plugins enable rabbitmq_management ##开启管理页面

service rabbitmq-server restart  #重启

3.5 Set boot up

chkconfig rabbitmq-server on  #开机自启

3.6 Firewall opens port 15672

/sbin/iptables -I INPUT -p tcp --dport 15672 -j ACCEPT

/etc/rc.d/init.d/iptables save

4. Management interface

4.1. Homepage overview

connections: Both producers and consumers need to establish a connection with RabbitMQ before completing the production and consumption of messages. Here you can view the connection status

channels: channel. After the connection is established, a channel will be formed, and the delivery of messages will depend on the channel.

Exchanges: exchanges, the way to implement messages

Queues: Queues, that is, message queues, messages are stored in the queue, waiting to be consumed, and then removed from the queue after consumption.

If this blog is helpful to you, please remember to leave a message + like + favorite .  

Guess you like

Origin blog.csdn.net/promsing/article/details/123253282