docker打开redis 配置

2021/9/11 19:05:04

本文主要是介绍docker打开redis 配置,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

 

docker ps   --罗列出所有的镜像
CONTAINER ID   IMAGE                 COMMAND                  CREATED       STATUS       PORTS                                                                  NAMES
05f28876c626   dockerfiles:dev       "bash"                   2 hours ago   Up 2 hours   90/tcp, 444/tcp                                                        charming_brahmagupta
ff97798e1a41   redis                 "docker-entrypoint.s…"   3 hours ago   Up 3 hours   0.0.0.0:3680->3680/tcp, :::3680->3680/tcp, 6379/tcp                    redis
c7875bd363f1   redis:latest          "docker-entrypoint.s…"   3 hours ago   Up 3 hours   6379/tcp                                                               trusting_brattain
3ec528d9aaa3   rabbitmq:management   "docker-entrypoint.s…"   3 hours ago   Up 3 hours   4369/tcp, 5671-5672/tcp, 15671-15672/tcp, 15691-15692/tcp, 25672/tcp   xenodochial_hypatia

docker exec -it ff97 bash   --进去到这这个文件夹里
root@ff97798e1a41:/data# ls
appendonly.aof

root@ff97798e1a41:/# ls    --查看这下root@ff97798e1a41:下都有神马文件
bin  boot  data  dev  etc  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var

 



这篇关于docker打开redis 配置的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程