安装

(Redhat/Fedora/Centos)
下载 erlang和 rabbit-mq 安装

wget http://www.rabbitmq.com/releases/erlang/erlang-18.3-1.el7.centos.x86_64.rpm
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.1/rabbitmq-server-3.6.1-1.noarch.rpm
wget https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
rpm --import rabbitmq-signing-key-public.asc

rpm -Uvh erlang-18.3-1.el7.centos.x86_64.rpm rabbitmq-server-3.6.1-1.noarch.rpm 

启动

设置RabbitMQ服务自启动,并启动RabbbitMQ服务
chkconfig rabbitmq-server on
service rabbitmq-server start

RabbitMQ管理

**启用RabbitMQ监控插件 (用web ui 必须运行)
**rabbitmq-plugins enable rabbitmq_management

添加用户(用户名root,密码 fffmo.com **)
**rabbitmqctl add_user admin fffmo.com

**设置用户角色(设置admin用户为管理员角色)
**rabbitmqctl set_user_tags admin administrator

设置用户权限(设置admin用户配置、写、读的权限)

 rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"

删除用户(删除guest用户)
rabbitmqctl delete_user guest
停止服务
service rabbitmq-server start

Web 管理UI(端口为15672):
http://172.10.1.65:15672/#

查看RabbitMQ状态

rabbitmqctl status

查看进程:

 ps aux | grep -v grep | grep rabbitmq-server

查看端口:

netstat -tnlp | grep 5672