当前位置:网站首页>Redis docker installation

Redis docker installation

2022-04-23 16:54:00 Tassel 1990

1、 See   Docker Introduction to actual combat course ( 7、 ... and ) install Redis - cloud + Community - Tencent cloud

2、 Step on the pit :

2.1、 Create folder

mkdir -p /usr/local/src/redis/

And the corresponding redis.conf Put files here

docker Start command :

docker run -p 6379:6379 --name my_redis --restart=always -v /usr/local/docker/redis/redis.conf:/etc/redis/redis.conf -d redis redis-server /etc/redis/redis.conf --appendonly yes --requirepass qwer123455

requirepass  Need to be set to string . I set it to 332244 The of numbers has not been successful , I don't know why . Set the string type later OK

版权声明
本文为[Tassel 1990]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231359253313.html