目录
下载 erlang-22.3-1.el7.x86_64.rpm
运行 rpm -ivh erlang-solutions-2.0-1.noarch.rpm
执行yum install erlang
下载 rabbitmq-server-3.8.2-1.el7.noarch.rpm
依次运行:
yum -y install epel-release
yum -y install socat
rpm -ivh rabbitmq-server-3.6.6-1.el7.noarch.rpm
启动:
# 启动 关闭 重启 命令
service rabbitmq-server start
service rabbitmq-server stop
service rabbitmq-server restart
#加到开机自启
chkconfig rabbitmq-server on
开启管理界面
rabbitmq-plugins enable rabbitmq_management
用户操作
查看:rabbitmqctl list_users
新增:rabbitmqctl add_user admin 12345
授权:rabbitmqctl set_user_tags admin administrator
重启:service rabbitmq-server restart
卸载erlang
yum list | grep erlang
yum -y remove erlang-*
rm -rf /usr/lib64/erlang
卸载rabbit
yum list | grep rabbitmq
yum -y remove rabbitmq-server.noarch
find / -name rabbit*
rm -rf 依次删除