docker下安装redis 发表于 2018-10-05 | 分类于 笔记 | | 阅读次数: 执行命令即可12345docker run -d --restart=always -p 6379:6379-v /docker/redis/conf/redis.conf:/etc/redis/redis.conf -v /docker/redis/data:/data--name redis redis:latest redis-server /etc/redis/redis.conf--appendonly yes --requirepass "12345678" 声明为需要密码访问的redis 配置requirepass参数 if you have any problems, you can contact me by my public wechat account. other,please leave your email address. 无论怎么样 我都会继续Share我的一点一滴! 打赏 微信支付 支付宝