Article From:https://www.cnblogs.com/orpheus89/p/9360790.html

1、wget https://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
2、rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
3、yum install epel-release
4、yum install erlang
5、wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitmq-server-3.6.6-1.el7.noarch.rpm
6、yum install rabbitmq-server-3.6.6-1.el7.noarch.rpm
Start the service after completion:
7、service rabbitmq-server start
You can view the service status:
8、service rabbitmq-server status
9、rabbitmq-plugins enable rabbitmq_management
10、curl http://localhost:15672
Open 15672 port
11、firewall-cmd –add-port=15672/tcp –permanent
Open 5672 port
12、firewall-cmd –add-port=5672/tcp –permanent

Or just close the firewall.

firewall-cmd –reload #Restart firewall
systemctl stop firewalld.service #Stop firewall
systemctl disable firewalld.service #Firewall boot is prohibited.
firewall-cmd –state #View default firewall status (display notrunning after closing, display running after opening)
1
2
3
4
13、Add user password

rabbitmqctl add_user root root
1
14、Assigning roles, the administrator can operate on the same functionality as the guest local user, and when you log in to rabbitmq_management, all the functionality is available.

Authorization, queue operation management authority. If it is not configured, then the client will have problems when connecting the message queue. -p is authorized, or the default virtual machine.

rabbitmqctl set_user_tags root administrator
rabbitmqctl set_permissions -p / root “.” “.” “.*”
1
2
List users

rabbitmqctl list_users
1
Using Web UI

rabbitmq-plugins enable rabbitmq_management
systemctl restart rabbitmq-server
1
2
Access Web console
http://192.168.0.80:15672/

15、cd /usr/lib/rabbitmq/lib/rabbitmq_server-3.6.6/plugins
16、wget https://dl.bintray.com/rabbitmq/community-plugins/rabbitmq_delayed_message_exchange-0.0.1.ez
17、rabbitmq-plugins enable rabbitmq_delayed_message_exchange

/*
rabbitmqOfficial network:
http://www.rabbitmq.com/install-rpm.html
erlangOfficial network:
https://www.erlang-solutions.com/resources/download.html
NetEase open source mirror station
http://mirrors.163.com/
centosMirror image use
http://mirrors.163.com/.help/centos.html
*/

Configure web page plugins

  First create directory, otherwise it may be wrong.

mkdir /etc/rabbitmq

  Then enable plug-ins:

./rabbitmq-plugins enable rabbitmq_management

  Configure Linux port 15672 webpage management 5672 AMQP port
  Then you can access http://localhost:15672.

  Default user guest password guest

Reference material

entOS7Lower RabbitMQ service installation configuration
http://blog.csdn.net/wh211212/article/details/53127078

win64According to the following
http://blog.csdn.net/u014308482/article/details/53994401

rabbitmqCommand Reference
https://www.cnblogs.com/mingaixin/p/4134920.html

Link of this Article: Centos7 install rabbitmq

Leave a Reply

Your email address will not be published. Required fields are marked *