- 安装EPEL
yum install epel-release
yum install yum-priorities
- 安装Erlang
wget https://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
rpm --import https://packages.erlang-solutions.com/rpm/erlang_solutions.asc
//修改/etc/yum.repos.d/erlang_solutions.repo
[erlang-solutions]
name=Centos $releasever - $basearch - Erlang Solutions
baseurl=https://packages.erlang-solutions.com/rpm/centos/$releasever/$basearch
gpgcheck=1
gpgkey=https://packages.erlang-solutions.com/rpm/erlang_solutions.asc
enabled=1
yum install erlang
yum install esl-erlang
- 安装Rabbitmq
下载rpm[http://www.rabbitmq.com/install-rpm.html]
rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
yum install rabbitmq-server-3.6.9-1.noarch.rpm(下载的文件)
- 配置
启动服务:systemctl start rabbitmq-server.service
启用RabbitMQ监控插件:rabbitmq-plugins enable rabbitmq_management
添加用户:rabbitmqctl add_user admin admin
设置用户角色: rabbitmqctl set_user_tags admin administrator
设置用户权限:rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"
删除用户:rabbitmqctl delete_user guest