安装 RabbitMQ Message Broker Service
# yum install rabbitmq-server
配置 Message Broker Service
启动服务并设置开机自启
# systemctl enable rabbitmq-server.service
# systemctl start rabbitmq-server.service
修改默认用户 guest 的密码
# rabbitmqctl change_password guest <New_Password>
新建用户
创建一个 RabbitMQ 用户、一个虚拟主机,并且允许这个用户访问这个虚拟主机
rabbitmqctl add_user <username> <password>
rabbitmqctl add_vhost <vhost_name>
rabbitmqctl set_permissions -p <vhost_name> <username> ".*" ".*" ".*"
重启服务
# systemctl restart rabbitmq-server.service