由于RabbitMQ3.6.x系列需要erlangR16-3B以上,而centos65上用yum安装erlang只有R14.所以只能安装rabbit3.5系列,所以我们选择RabbitMQ3.5.6
yum install erlang
wgethttp://www.rabbitmq.com/releases/rabbitmq-server/v3.5.6/rabbitmq-server-3.5.6-1.noarch.rpm
rpm -ivh rabbitmq-server-3.5.6-1.noarch.rpm
chkconfig rabbitmq-server on 添加开机自动启动
service rabbitmq-server start/stop/status 启动服务
rabbitmq-plugins enable rabbitmq_management 开启插件管理页
rabbitmqctl add_user rabbitadmin 123456 添加用户
rabbitmqctl set_user_tags rabbitadmin administrator 给定角色
测试页:
http://192.168.26.61:15672/#/