1. Since rabbitMq is written in Erlang, so you must install Erlang environment
Download Erlang: http: //www.rabbitmq.com/releases/erlang/erlang-19.0.4-1.el7.centos.x86_64.rpm
Download rabbitMq: installation package http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitmq-server-3.6.6-1.el7.noarch.rpm
2. Once downloaded, the installation package uploaded to the linux environment (using SecureFX software can also be used to upload other)
Installation package into the / usr / local directory, as shown:
3. Log linux terminal window:
1.cd / usr / local switch to the installation package directory
2. rpm -ivh erlang-19.0.4-1.el7.centos.x86_64.rpm mounted Erlang
3. rpm -ivh rabbitmq-server-3.6.6-1.el7.noarch.rpm installation rabbitMq will get an error, suggesting that relies socat
4.安装socat : yum install socat
5. After installation rabbitMq again: rpm -ivh rabbitmq-server-3.6.6-1.el7.noarch.rpm
4. Set the power-on reset: the chkconfig RabbitMQ Server- ON
5. Start: / sbin / RabbitMQ-Server-Service Start
6. Check the service status: / sbin / Service RabbitMQ-Server Status
7. 停止: /sbin/service rabbitmq-server stop
8. query all current users: rabbitmqctl list_users
9. Review the default guset user rights: rabbitmqctl list_user_permissions the Guest
10. Delete the default user: rabbitmqctl DELETE_USER the Guest
11. New User: rabbitmqctl add_user user name user password
12. Set the user is an administrator: rabbitmqctl set_user_tags user name administrator
13. give users full access to the default vhost: rabbitmqctl set_permissions -p / username . "*" "*." "*."
14. Open web management interface: RabbitMQ plugins- enable rabbitmq_management
15. Turn on the firewall:
firewall-cmd --permanent --zone=public --add-port=5672/tcp
firewall-cmd --permanent --zone=public --add-port=15672/tcp
firewall-cmd --reload
16. Log rabbitMq management interface using the public network ip address linux:
http://ip:15672/
17. Enter the user account and password provided
At this point the installation is complete rabbitMq