docker redis 快速启动

来源:互联网 发布:java游戏代码大全 编辑:程序博客网 时间:2024/06/18 04:20

启动命令

docker search redisdocker pull redisdocker run -p 6379:6379 -v /root/redis/redis.conf:/usr/local/etc/redis/redis.conf --name redis -d redis redis-server /usr/local/etc/redis/redis.conf

redis.conf

redis.conf查看地址

需要修改的地方

限制本地登录去除#bind 127.0.0.1使用密码requirepass 666666保护模式关闭protected-mode no