安装erlang
下载
wget https://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
rpm安装
rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
报错
执行后再次执行上一条
yum -y install epel-release
安装erlang
sudo yum install erlang
查看版本
erl -version
下载rabbitmq
在git上下载
wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.9/rabbitmq-server-3.8.9-1.el6.noarch.rpm
安装
yum install rabbitmq-server-3.8.9-1.el6.noarch.rpm
启动
systemctl start rabbitmq-server.service
开机自起
sudo chkconfig rabbitmq-server on
启动web管理页
sudo rabbitmq-plugins enable rabbitmq_management
创建用户
rabbitmqctl.bat add_user test test
设置权限
rabbitmqctl set_user_tags mq administrator
设置访问虚拟主机权限
rabbitmqctl set_permissions -p / test ".*" ".*" ".*"