随笔 - 120  文章 - 0  评论 - 22  阅读 - 56万

docker 安装 redis

docker pull redis
mkdir -p /mydata/redis/data
docker run  -p 6379:6379 --name redis --restart=always \
     -v /mydata/redis/redis.conf:/etc/redis/redis.conf \
     -v /mydata/redis/data:/data \
     -d redis redis-server /etc/redis/redis.conf \
     --appendonly yes   \
     --requirepass 123456

 

posted on   欢跳的心  阅读(11)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 张高兴的大模型开发实战:(一)使用 Selenium 进行网页爬虫
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
历史上的今天:
2015-10-23 switch()出现警告warning:enumeration value ‘xxx’ not handled in switch
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示