一、安装
# 准备
yum -y 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
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
二、操作
systemctl start rabbitmq-server
# 设置开机启动
systemctl enable rabbitmq-server
三、管理
# 启用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即可进入管理界面
网友评论