RocketMQ
2025-09-07
1 min read
seal
Start RocketMQ
untar bineary package, and cd
to /[Your RocketMQ content]/bin
content
in this content, mqnamesrv
and mqbroker
is key, use &
and nohup
to start them without front desk service
P.S. here you need to set
-n [Your mq ip]:[Your mq port]
to mqbroker
nohup sh mqnamesrv > mqnamesrv.logs 1>&2 &
nohup sh mqbroker -n localhost:9876 > mqbroker.logs 1>&2 &
check netstat
to confirm whether mq has been started
Use Rocket in Spring Boot
dependency
<dependency>
<groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-spring-boot-starter</artifactId>
<version>2.2.1</version>
</dependency>
config
RocketMQ needs config module