安装 docker
https://segmentfault.com/a/1190000038753220
docker 安装 zookeeper
https://cloud.tencent.com/developer/article/1555214
docker安装 redis
docker search redis
查看docker images,可以看到redis
docker run -d --name myredis -p 6379:6379 redis --requirepass "mypassword"
docker exec -it ea6cc5896a472c23a09b8c789c96862c0a3e941eda278ba14e5346a92eb2e6f9 redis-cli
docker exec :在运行的容器中执行命令
# 语法
docker exec [OPTIONS] CONTAINER COMMAND [ARG...]
# OPTIONS说明:
-d :分离模式: 在后台运行
-i :即使没有附加也保持STDIN 打开
-t :分配一个伪终端————————————————
版权声明:本文为CSDN博主「is.lizhichao」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/sinat_41258771/article/details/104423106
rabbitmq
https://www.cnblogs.com/hapgaoyi/p/13449463.html
docker pull rabbitmq
docker pull rabbitmq:management #(镜像配有控制台)
docker run --name rabbitmq -d -p 15672:15672 -p 5672:5672 rabbitmq:management
docker exec -it rabbitmq /bin/bash
查看队列:rabbitmqctl list_queues
安装 redis
https://wangxin1248.github.io/linux/2018/07/ubuntu18.04-install-redis.html
sudo apt update
sudo apt install redis-server
sudo vi /etc/redis/redis.conf
sudo service redis restart
redis-cli
安装 rabbitmq
https://www.jianshu.com/p/5c8c4495827f
https://www.cnblogs.com/sui776265233/p/10954324.html
https://yonglun.me/install-rabbitmq-on-ubuntu/(按这个配置完全部:下载+远程 web)