1.安装Erlang
yum install erlang
2.安装RabbitMQ
yum install rabbitmq-server
3.配置开机自启动
chkconfig rabbitmq-server on
4.启动RabbitMQ
service rabbitmq-server start
5.查询RabbitMQ路径
whereis rabbitmq
6.进入目录
7.开启RabbitMQ的Web管理界面
./rabbitmq-plugins enable rabbitmq_management
8.添加管理员
rabbitmqctl add_user admin
9.设置用户组
rabbitmqctl set_user_tags admin administrator
10.设置默认vhost(“/”)访问权限
rabbitmqctl set_permissions -p "/" admin "." "." ".*"
11.关闭防火墙
service iptables stop
12.浏览器访问:http://IP:15672
13.用户名admin,密码123456进行登录