1、進(jìn)入RabbitMQ安裝目錄/usr/local/Cellar
cd /usr/local/Cellar/rabbitmq/3.5.6/sbin
2生巡、執(zhí)行如下命令
sudo ./rabbitmq-server restart 或 sudo ./rabbitmq-server
3、新建終端進(jìn)入RabbitMQ安裝目錄/usr/local/Cellar,啟動(dòng)插件(只需首次啟動(dòng))
cd /usr/local/Cellar/rabbitmq/3.5.6/sbin
sudo ./rabbitmq-plugins enable rabbitmq_management
4、登陸管理界面http://localhost:15672/
賬號(hào):guest
密碼:guest
5颗管、新建項(xiàng)目中所用到的隊(duì)列
6、項(xiàng)目中配置文件application.properties的配置
spring.rabbitmq.host=127.0.0.1
spring.rabbitmq.port=5672
spring.rabbitmq.username=guest
spring.rabbitmq.password=guest