Download
https://dist.apache.org/repos/dist/release/rocketmq/5.3.1/rocketmq-all-5.3.1-bin-release.zip
Locate to Root Directory
cd rocketmq-all-5.3.1-source-release
Start Name Service
nohup sh bin/mqnamesrv
Start Broker Service
nohup sh bin/mqbroker -n localhost:9876 --enable-proxy
Shutdown Service
sh bin/mqshutdown broker & sh bin/mqshutdown namesrv
Send and Receive Messsage
add environment variables to system
export NAMESRV_ADDR=localhost:9876
send message
sh bin/tools.sh org.apache.rocketmq.example.quickstart.Producer
receive message
sh bin/tools.sh org.apache.rocketmq.example.quickstart.Consumer