第一步 需要安装erlang环境
yum install erlang
第二步 在rabbit官网上下载相应版本rpm包,并安装
http://www.rabbitmq.com/download.html
如果在安装过程中报错socat有问题,需要安装socat
yum install socat
第三步 设置配置文件
--复制示例配置文件到相应的目录,注意不同的版本路径需要修改
cp /usr/share/doc/rabbitmq-server-3.6.6/rabbitmq.config.example /etc/rabbitmq/
mv rabbitmq.config.example rabbitmq.config
第四步 更改配置文件,放开guest权限
vim /etc/rabbitmq/rabbitmq.config
更改内容如下:
%% Uncomment the following line if you want to allow access to the
%% guest user from anywhere on the network.
{loopback_users, []}
第五步 打开web管理插件,重启rabbitmq
rabbitmq-plugins enable rabbitmq_management
service rabbitmq-server restart
第六步 访问验证
访问http://xxxxx:15672,用户名密码均为guest