docker rocketmq

 下周mq

https://dist.apache.org/repos/dist/release/rocketmq/5.1.1/rocketmq-all-5.1.1-bin-release.zip
https://dist.apache.org/repos/dist/release/rocketmq/5.1.1/

解压 

安装nameserver

docker run -d -p 10911:10911 -p 10909:10909 --restart=always -v /opt/java/rocketmq-all-5.1.1-bin-release:/opt/java/rocketmq-all-5.1.1-bin-release --name mqnamesrv adoptopenjdk/openjdk11-openj9 sh /opt/java/rocketmq-all-5.1.1-bin-release/bin/mqnamesrv -n localhost:9876 --enable-proxy

安装broker

docker run -d -p 9876:9876 --restart=always -v /opt/java/rocketmq-all-5.1.1-bin-release:/opt/java/rocketmq-all-5.1.1-bin-release --name mqbroker adoptopenjdk/openjdk11-openj9 sh /opt/java/rocketmq-all-5.1.1-bin-release/bin/mqbroker -n localhost:9876 --enable-proxy


你可能感兴趣的:(java,服务器,linux)