需要安装 erlang,socat,rabbitmq
可以选择下载完上传到虚拟机,这边我采用在线下载
安装erlang
下载:
wget http://www.rabbitmq.com/releases/erlang/erlang-18.3-1.el7.centos.x86_64.rpm安装:
rpm -ivh erlang-18.3-1.el7.centos.x86_64.rpm安装socat
下载:
wget http://repo.iotti.biz/CentOS/7/x86_64/socat-1.7.3.2-5.el7.lux.x86_64.rpm安装:
rpm -ivh socat-1.7.3.2-5.el7.lux.x86_64.rpm安装rabbitmq
下载:
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.5/rabbitmq-server-3.6.5-1.noarch.rpm安装:
rpm -ivh rabbitmq-server-3.6.5-1.noarch.rpm安装成功后 启动rabbitmq服务
service rabbitmq-server start
启动成功后,安装可视化界面
rabbitmq-plugins enable rabbitmq_management安装成功后需要开启用户远程访问
创建账号
rabbitmqctl add_user admin admin设置用户角色
rabbitmqctl set_user_tags admin administrator
设置用户权限
rabbitmqctl set_permissions -p "/" admin ".*" ".*" ".*"
查询用户
rabbitmqctl list_users
然后重启mq
service rabbitmq-server restart
最后拿创建好的用户直接登陆就好了