docker下安装redis


执行命令即可

1
2
3
4
5
docker 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参数

wenthywang wechat
if you have any problems, you can contact me by my public wechat account.
other,please leave your email address.
无论怎么样 我都会继续Share我的一点一滴!