我这里以3.5.6为例
一:RabbitMQ的安装
首先,下载RabbitMQ
wget https://github.com/rabbitmq/rabbitmq-server/releases/download/rabbitmq_v3_5_6/rabbitmq-server-3.5.6-1.noarch.rpm
先安装epel-release,否则无法安装erlang
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm
然后,安装erlang
yum install erlang
最后,安装RabbitMQ
rpm -ivh rabbitmq-server-3.5.6-1.noarch.rpm
二:RabbitMQ的配置
1:新建用户 (用户名和密码是admin/admin)
rabbitmqctl add_user admin admin
2:设置tag
rabbitmqctl set_user_tags admin administrator
3:设置权限
rabbitmqctl set_permissions -p "/" admin ".*" ".*" ".*"
三:配置RabbitMQ web管理插件
rabbitmq-plugins enable rabbitmq_management
访问url
http://127.0.0.1:15672
四:RabbitMQ 的启动与关闭
/etc/init.d/rabbitmq-server stop
/etc/init.d/rabbitmq-server start
/etc/init.d/rabbitmq-server restart