安装erlang环境
wget http://erlang.org/download/otp_src_20.3.tar.gz
tar xf otp_src_20.3.tar.gz && cd otp_src_20.3/ && ./configure --prefix=/opt/erlang && make && make install
配置环境变量
ERLANG_HOME=/opt/erlang
export PATH=$PATH:$ERLANG_HOME/bin
export ERLANG_HOME
source /etc/profile
下载rabbitmq
wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.6.10/rabbitmq-server-generic-unix-3.6.10.tar.xz && tar xf rabbitmq-server-generic-unix-3.6.10.tar.xz -C /opt && mv rabbitmq_server-3.6.10/ rabbitmq
配置环境变量
export PATH=$PATH:/opt/rabbitmq/sbin
export RABBITMQ_HOME=/opt/rabbitmq
source /etc/profile
启动rabbitmq
rabbitmq-server -detached
创建用户名为root,密码为root
rabbitmqctl add_user root root
授予root用户在虚拟主机/上的所有权限
rabbitmqctl set_permissions -p / root ".*" ".*" ".*"
授予root用户为管理员角色
rabbitmqctl set_user_tags root administrator
启动web组件
rabbitmq-plugins enable rabbitmq_management