# 准备
yum update
yum install epel-release
yum install gcc gcc-c++ glibc-devel make ncurses-devel openssl-devel autoconf java-1.8.0-openjdk-devel git wget wxBase.x86_64
# 安装erlang
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
yum install -y erlang
# 安装rabbitmq
wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.7.15/rabbitmq-server-3.7.15-1.el7.noarch.rpm
# 导入秘钥
rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
# 安装
yum install rabbitmq-server-3.7.15-1.el7.noarch.rpm
启动
rabbitmq
服务
systemctl start rabbitmq-server
# 设置开机启动
systemctl enable rabbitmq-server
rabbitmq默认的工作端口为25672
# 启用web管理界面
rabbitmq-plugins enable rabbitmq_management
# guest用户只能用于localhost访问
# 添加新用户及授权
rabbitmqctl add_user fort fort
rabbitmqctl set_user_tags fort administrator
rabbitmqctl set_permissions -p / fort '.*' '.*' '.*'
rabbitmqctl list_permissions
# 访问ip:15672即可进入管理界面