redis 安装
docker pull hub.c.163.com/library/redis
docker run -p 6379:6379 -v $PWD/data:/data -v /root/redis/conf/redis.conf:/usr/local/redis/redis.conf -d --name redis d4f259423416 redis-server /usr/local/redis/redis.conf
docker stats $(docker ps --format={{.Names}})
来自gitee的redis.conf
wleureka
docker pull hub.c.163.com/housan993/centos7_jdk8
docker run -d -p 9010:9010 -v /root/code/wleureka.jar:/root/code/wleureka.jar --name wleureka 0f793ba5281b java -jar /root/code/wleureka.jar
rocketmq(基于Docker镜像搭建单机版)
docker pull registry.cn-qingdao.aliyuncs.com/timyao/rocketmq_broker
docker pull registry.cn-qingdao.aliyuncs.com/timyao/rocketmq_namesrv
docker images
mkdir -p /opt/rocketmq/namesrv/logs /opt/rocketmq/namesrv/store
docker run --name rmq-namesrv -p 9876:9876 -v /opt/rocketmq/namesrv/logs:/opt/logs -v /opt/rocketmq/namesrv/store:/opt/store -d 8f3fa112ec26
mkdir -p /opt/rocketmq/broker/logs /opt/rocketmq/broker/store /opt/rocketmq/broker/conf
cd /opt/rocketmq/broker/conf && vi broker.properties
#配置文件内容
brokerClusterName=DefaultCluster
brokerName=broker-a
brokerId=0
deleteWhen=04
fileReservedTime=48
brokerRole=ASYNC_MASTER
flushDiskType=ASYNC_FLUSH
brokerIP1=192.168.56.101
namesrvAddr=192.168.56.101:29876
docker run --name rmq-broker -p 10911:10911 -p 10909:10909 -p 10912:10912 -v /opt/rocketmq/broker/logs:/opt/logs -v /opt/rocketmq/broker/store:/opt/store -v /opt/rocketmq/broker/conf/broker.properties:/opt/broker.properties -d 843080d334c9 sh ./bin/mqbroker -c /opt/broker.properties
docker logs -f rmq-broker
docker logs -f rmq-namesrv
free -m
ps -ef|grep rocketmq