安装
yum -y install wget
# 下载
wget http://www.rabbitmq.com/releases/erlang/erlang-19.0.4-1.el7.centos.x86_64.rpm
# 安装
rpm -ivh erlang-19.0.4-1.el7.centos.x86_64.rpm
# 测试安装是否成功
erl
- RabbitMQ安装
重装需要删除/var/lib/rabbitmq目录和/etc/rabbitmq目录
yum -y install socat
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.10/rabbitmq-server-3.6.10-1.el7.noarch.rpm
rpm -ivh rabbitmq-server-3.6.10-1.el7.noarch.rpm
运行
# 启动
systemctl start rabbitmq-server
# 关闭
rabbitmqctl stop
# 查看状态
rabbitmqctl status
添加网页插件
rabbitmq-plugins enable rabbitmq_management
用户
# 添加用户
rabbitmqctl add_user 用户名 密码
# 为用户添加/这个虚拟机的所有权限
rabbitmqctl set_permissions -p / 用户名 ".*" ".*" ".*"
# 修改用户角色
rabbitmqctl set_user_tags 用户名 administrator