rabbitMQ环境搭建

windows环境(单节点)

操作比较简单
1)先安装erlang工具:otp_win64_21.1.exe
2)安装rabbitMQ:rabbitmq-server-3.7.15.exe
3) 网页版http://localhost:15672输入账户(guest,guest)即可访问

CentOS环境(单节点)

依次执行以下步骤:

yum -y install docker
systemctl restart docker
vi /etc/docker/daemon.json
   {"registry-mirrors": ["https://r0mghv81.mirror.aliyuncs.com"]}
systemctl daemon-reload
systemctl restart docker

docker run -d --hostname localhost --name myrabbit -p 15672:15672 -p 5672:5672 rabbitmq:3.6.15-management

网页版http://ipAddress:15672输入账户(guest,guest)即可访问

Application.properties配置

spring.rabbitmq.host=localhost
spring.rabbitmq.port=5672
spring.rabbitmq.username=guest
spring.rabbitmq.password=guest

Windows单机版的集群

可以参考: https://blog.csdn.net/u010887744/article/details/78377634

你可能感兴趣的:(rabbitMQ环境搭建)