Note: This is a personal blog in his spare time learning summary for subsequent review review, we hope to be able to help you.
This article shows that the installation of the centOS7, pro-test centOS6 a problem. Installation windows in the reference: https://blog.csdn.net/spl545056/article/details/81392015
centOS7 installation rabbitMQ:
Step One: Download erlang and rabbitmq-server of rpm :( note version match )
http://www.rabbitmq.com/releases/erlang/erlang-19.0.4-1.el7.centos.x86_64.rpm
http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitmq-server-3.6.6-1.el7.noarch.rpm
Note: If the browser downloads slow, I can refer to Baidu network disk: Link: https://pan.baidu.com/s/118EHtDh1CIEhs6IsF0Q2oQ Password: 7v1z
Step 2: Install erlang locale:
Using the root user to download to the above two rpm package uploaded to the linux. Enter rpm package directory execute: rpm -ivh erlang-19.0.4-1.el7.centos.x86_64.rpm
After the implementation of the test environment is successfully installed erlang
Step 3: Install rabbitMQ:
Since rabbitMQ socat dependent, it is proposed to install the dependent components socat
yum install socat
Installation rabbitMQ
rpm -ivh rabbitmq-server-3.6.6-1.el7.noarch.rpm
Modify the configuration rabbitMQ
Modify mark as {loopback_users, [guest]},
(let rabbitMQ default guest user can log in)
Step Four: Start rabbitMQ:
Turn off the firewall: systemctl stop firewalld.service
start rabbitMQ Services: rabbitmq-server start &
To test whether the port is on two ways :()
1. lsof -i:5672
2. curl 127.0.0.1:5672
Step 5: Install management plug-ins:
1. Install the plug-in management, prompted to press 'y' to continue
执行:rabbitmq-plugins enable rabbitmq_management
2. Test whether the installation is successful
Can be accessed in the browser address: http: // ip address: 15672 User password:guest/guest
in case不可以,可尝试先关掉rabbitMQ,再重启
Step Six: rabbitMQ start and stop commands:
RabbitMQ-Server Service STOP # close
service rabbitmq-server start # start
service rabbitmq-server status # status