1、拉取Redis镜像
docker pull redis:6.2.6
2、启动Redis容器
docker run -di --name=redis -p 6379:6379 redis:6.2.6
3、测试redis是否启动成功,我们可以找一个本地redis,运行命令:
redis-cli -h 106.14.24.131
测试配置环境
redis.conf 配置
# Redis configuration file example. # # Note that in order to read the configuration file, Redis must be # started with the file path as first argument: # # ./redis-server /path/to/redis.conf # Note on units: when memory size is needed, it is possible to sp