[Spring] RabbitMQ 설치개발/Spring2023. 8. 25. 15:48
Table of Contents
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
'개발 > Spring' 카테고리의 다른 글
[Java] Generic과 wild card (0) | 2023.10.14 |
---|---|
[JAVA] Stream (0) | 2023.10.12 |
세션에서 getAttribute를 통해 해당 유저의 정보를 얻어올 수 있는 이유 (0) | 2023.08.10 |
[JPA] Dirty check, @Transactional, Auditing (0) | 2023.07.28 |
[JPA] ORM, JPA, Hibernate (0) | 2023.07.28 |
@뽀글뽀글 개발자 :: 뽀글뽀글 개발 일지
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!