Skip to content

daggerok/rocketmq-example

Repository files navigation

RocketMQ getting started

start RocketMQ

./download-and-start-rocketmq.sh

netstat -aln|grep 9876

gradle

build and run producer

./gradlew -DmainClass=com.github.daggerok.ProducerV1Kt
mv -f ./build/install/rocketmq-example ./build/producer
bash ./build/producer/bin/rocketmq-example and 1 and 2 and 3 and four

build and run consumer

./gradlew -DmainClass=com.github.daggerok.ConsumerV1Kt
mv -f ./build/install/rocketmq-example ./build/consumer
bash ./build/consumer/bin/rocketmq-example &

maven

build and run producer

./mvnw exec:java -Dexec.mainClass=com.github.daggerok.ProducerV1Kt -Dexec.args="One and two and three and four"

build and run consumer

./mvnw exec:java -Dexec.mainClass=com.github.daggerok.ConsumerV1Kt

cleanup

killall -9 java

links

About

RocketMQ getting started

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published