cool-2018-04-08-centos6.x installation RABBITMQ

Source: Internet
Author: User
Tags iptables rabbitmq

First step: Install Erlang locales

Upload related files

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

esl-erlang-compat-r14b-1.el6.noarch.rpm

rabbitmq-server-3.4.1-1.noarch.rpm

RABBITMQ Resource Bundle

Step Two: Install Erlang

Yum Install esl-erlang_17.3-1~centos~6_amd64.rpm

Yum Install esl-erlang-compat-r14b-1.el6.noarch.rpm

Step Three: Install RABBITMQ

rabbitmq-server-3.4.1-1.noarch.rpm to upload to the/usr/local/src/rabbitmq/directory.

MV rabbitmq-server-3.4.1-1.noarch.rpm/usr/local/src/rabbitmq/

mkdir/usr/local/src/rabbitmq/

cd/usr/local/src/rabbitmq/

RPM-IVH rabbitmq-server-3.4.1-1.noarch.rpm

The following message appears stating that the installation was successful


Fourth Step: RABBITMQ operation

Perform service Rabbitmq-server Status this operation, if it has been stuck, indicating that RABBITMQ is looking for the host address (hostname), so you need to add a row in/etc/hosts

Vi/etc/hosts

127.0.0.1 Node2


: Wq Save Exit

RABBITMQ-related operations

Service Rabbitmq-server Start


Service Rabbitmq-server Stop

Service Rabbitmq-server Status


Service Rabbitmq-server Restart

Step Fifth: Start the RABBITMQ management tool

Rabbitmq-plugins Enable Rabbitmq_management


Service Rabbitmq-server Restart

Open ports enable remote logins,

Vi/etc/sysconfig/iptables

-A input-m state--state new-m tcp-p TCP--dport 15672-j ACCEPT

-A input-m state--state new-m tcp-p TCP--dport 5672-j ACCEPT

Service Iptables Restart

Sixth step:

RABBITMQ By default, guest does not have Telnet permission, so configure Telnet permissions

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

cd/etc/rabbitmq/

MV Rabbitmq.config.example Rabbitmq.config

Vi/rabbitmq.config


: Wq Save, restart MQ

Service Rabbitmq-server Restart

Implementing Remote Logins

192.168.25.112:15672

Username/password:guest


Create a user


Create Virtual Hosts

Do authorization



Exit to log on as Coolshop:coolshop

The operation interface carries on the sequence with the switch the binding, only then performs this step operation to be effective, after the binding does not affect the internal program the normal operation


Seventh step: Set boot up

Chkconfig Rabbitmq-server on

Add permissions

Rabbitmqctl set_permissions-p "/" Coolshop ". *" ". *" ". *"

Add permissions for Coolshop users, or Springboot integration will appear as the following error caused by:com.rabbitmq.client.ShutdownSignalException:connection Error Protocol method:


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.