개발/Spring
[Spring] RabbitMQ 설치
뽀글뽀글 개발자
2023. 8. 25. 15:48
1. RabbitMQ 다운로드
brew update
brew install rabbitmq
2. 환경 변수 설정
vim ~/.zshrc
//아래 내용 추가
export PATH=$PATH:/opt/homebrew/sbin
source ~/.zshrc
3. RabbitMQ 실행
rabbitmq-server
또는 brew start 로 실행
brew services start rabbitmq
4. RabbitMQ 접속
http://localhost:15672
Default ID, PW = guest
Spring Dependency 추가
implementation "org.springframework.boot:spring-boot-starter-actuator"
implementation "org.springframework.cloud:spring-cloud-starter-bus-amqp"
implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap'
application.yml 설정
spring:
rabbitmq:
host: 127.0.0.1
port: 15672
username: quest
password: quest
management:
endpoints:
web:
exposure:
include: refresh, health, beans, busrefresh
Referense