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: