当前位置:网站首页>Docker deploy redis
Docker deploy redis
2022-06-23 23:51:00 【Align right--】
Simple implementation
# Pull redis
1. docker pull redis
# Background operation
2. docker run -d -p 6379:6379 redis:6.0.8
# Get into redis docker
3. docker exec -it redis /bin/bash1. Container volume mode implementation redis Deploy
1). You need to copy one on the host redis.conf And modify the configuration file
1. close bind 127.0.0.1
2. take daemonize yes Annotate or daemonize no Set up , Because this configuration and docker run in -d Parameter conflict , This will cause the container to fail to start all the time
3. protected-mode no2). Create a container
# function redis
docker run -d -p 6379:6379 --name=redis --privileged=true -v /data/server/docker_redis/redis.conf:/etc/redis/redis.conf -v /data/server/docker_redis/data:/data redis:6.2.1 redis-server /etc/redis/redis.conf
# Get into docker redis
docker exec -it redis /bin/bash
If startup fails View log information

notes : Create a container Use here --name Try to put it forward Avoid letting redis When the command is used And can't start redis

边栏推荐
- The input parameter is object, but it was passed as [object object] because it needs to be converted to JSON format
- 一个人竟然撸了一个网易云音乐云村
- 2.摄像机标定
- GBASE观察:扩展分析型数据库
- Postman return value Chinese garbled????
- Autofac details
- One person even broke up a Netease cloud music Cloud Village
- High imitation Book flag novel flutter edition, learn it
- log Network Execution Time
- 【HackTheBox】Fawn
猜你喜欢

牛客网:接雨水的双指针问题

MySQL导致索引失效的情况详解

完整开源项目之诗词吧 APP

泰勒公式及常用展开

Innovative lampblack supervision in the management measures for the prevention and control of lampblack pollution in Deyang catering service industry (Draft for comments)

VS QT VTK 左下角显示同步小坐标轴

The lower left corner of vs QT VTK displays the synchronized minor coordinate axis

List中subList的add造成的死循环

【HackTheBox】 meow

Web site SSL certificate
随机推荐
三维向量场中的通量
关于H5移动端用什么自动化测试
接私活必备的 6 个开源项目
日化用品行业集团采购管理系统改变传统采购模式,降低采购成本
List中subList的add造成的死循环
Several guesses about the design of Tencent conference number
Why do MySQL indexes use b+ trees at the bottom? After reading this article, you can easily handle the interview.
再见,2020,这碗毒鸡汤,我先干了
ORB_ Slam3 environment setup and demo demonstration
牛客网:接雨水的双指针问题
Postman return value Chinese garbled????
STM32 ------ external interrupt
数字物业管理成趋势,传统物业公司如何通过转型实现数字化蝶变?
为实现“双碳”目标,应如何实现节能、合理的照明管控
Classical Chinese can be programmed???
What is the same origin policy?
The input parameter is object, but it was passed as [object object] because it needs to be converted to JSON format
PMP考试相关计算公式汇总!考前必看
List<? Extensions T > and list <? Super T > difference
思考(八十七):协议加密与压缩