一、下载rpm包
下载erlang和rabbitmq-server的rpm:
wget http://www.rabbitmq.com/releases/erlang/erlang-19.0.4-1.el7.centos.x86_64.rpm
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitmq-server-3.6.6-1.el7.noarch.rpm
二、安装rpm包
rpm -ivh erlang-19.0.4-1.el7.centos.x86_64.rpm
#这个包rabbitmq需要
yum install socat
rpm -ivh rabbitmq-server-3.6.6-1.el7.noarch.rpm
三、基本命令
service rabbitmq-server stop #关闭
service rabbitmq-server start #启动
service rabbitmq-server status #状态
四、基本插件使用
#web管理端插件
rabbitmq-plugins enable rabbitmq_management
#延时插件
下载地址:http://www.rabbitmq.com/community-plugins.html
#启动
rabbitmq-plugins enable rabbitmq_delayed_message_exchange
添加新用户
rabbitmqctl add_user username password
设置用户tag
rabbitmqctl set_user_tags username administrator
赋予用户默认vhost的全部操作权限
rabbitmqctl set_permissions -p / username ".*" ".*" ".*"
查看用户的权限
rabbitmqctl list_user_permissions username