当前位置:网站首页>Docker install redis
Docker install redis
2022-07-03 02:57:00 【Play code】
1. Download the official website image
docker pull redis2. establish redis Contents and conf file
cd /mydata/
mkdir redis
mkdir redis/conf
touch /mydata/redis/conf/redis.conf3. edit redis.conf file
vi redis.conf
# Add the following
# bind 192.168.1.100 10.0.0.1
# bind 127.0.0.1 ::1
#bind 127.0.0.1
protected-mode no
port 6379
tcp-backlog 511
requirepass 000415
timeout 0
tcp-keepalive 300
daemonize no
supervised no
pidfile /var/run/redis_6379.pid
loglevel notice
logfile ""
databases 30
always-show-logo yes
save 900 1
save 300 10
save 60 10000
stop-writes-on-bgsave-error yes
rdbcompression yes
rdbchecksum yes
dbfilename dump.rdb
dir ./
replica-serve-stale-data yes
replica-read-only yes
repl-diskless-sync no
repl-disable-tcp-nodelay no
replica-priority 100
lazyfree-lazy-eviction no
lazyfree-lazy-expire no
lazyfree-lazy-server-del no
replica-lazy-flush no
appendonly yes
appendfilename "appendonly.aof"
no-appendfsync-on-rewrite no
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 64mb
aof-load-truncated yes
aof-use-rdb-preamble yes
lua-time-limit 5000
slowlog-max-len 128
notify-keyspace-events ""
hash-max-ziplist-entries 512
hash-max-ziplist-value 64
list-max-ziplist-size -2
list-compress-depth 0
set-max-intset-entries 512
zset-max-ziplist-entries 128
zset-max-ziplist-value 64
hll-sparse-max-bytes 3000
stream-node-max-bytes 4096
stream-node-max-entries 100
activerehashing yes
hz 10
dynamic-hz yes
aof-rewrite-incremental-fsync yes
rdb-save-incremental-fsync yes
4. start-up redis
docker run -p 6379:6379 --name redis -v /mydata/redis/data:/data -v /mydata/redis/conf/redis.conf:/etc/redis/redis.conf -d redis redis-server /etc/redis/redis.conf5. see redis
docker ps
6. Get into redis client
docker exec -it redis redis-cli边栏推荐
- [fluent] listview list (map method description of list set | vertical list | horizontal list | code example)
- random shuffle注意
- How to limit the size of the dictionary- How to limit the size of a dictionary?
- C语言初阶-指针详解-庖丁解牛篇
- The left value and the right finger explain better
- I2C 子系统(四):I2C debug
- How to use asp Net MVC identity 2 change password authentication- How To Change Password Validation in ASP. Net MVC Identity 2?
- HTB-Devel
- Summary of interview project technology stack
- Le processus de connexion mysql avec docker
猜你喜欢

Random Shuffle attention

一文带你了解 ZigBee

Add some hard dishes to the interview: how to improve throughput and timeliness in delayed task scenarios!

从C到Capable-----利用指针作为函数参数求字符串是否为回文字符

基于can总线的A2L文件解析(2)
![[shutter] monitor the transparency gradient of the scrolling action control component (remove the blank of the top status bar | frame layout component | transparency component | monitor the scrolling](/img/c3/b9a614001f80345a5c1cb3c68ab27c.jpg)
[shutter] monitor the transparency gradient of the scrolling action control component (remove the blank of the top status bar | frame layout component | transparency component | monitor the scrolling

I2C subsystem (II): I3C spec
![ASP. Net core 6 framework unveiling example demonstration [02]: application development based on routing, MVC and grpc](/img/cb/145937a27ef08050a370d5a255215a.jpg)
ASP. Net core 6 framework unveiling example demonstration [02]: application development based on routing, MVC and grpc

Error invalid bound statement (not found): com ruoyi. stock. mapper. StockDetailMapper. XXXX solution

Summary of interview project technology stack
随机推荐
Practice of traffic recording and playback in vivo
Left connection, inner connection
Choose it when you decide
Global and Chinese ammonium dimolybdate market in-depth analysis and prospect risk prediction report 2022 Edition
Yiwen takes you to know ZigBee
Can netstat still play like this?
二维格式数组格式索引下标连续问题导致 返回json 格式问题
Classes and objects - initialization and cleanup of objects - constructor call rules
Check log4j problems using stain analysis
[shutter] banner carousel component (shutter_wiper plug-in | swiper component)
函数栈帧的创建与销毁
Baidu map - surrounding search
I2C 子系统(三):I2C Driver
[C语言]给账号密码进行MD5加密
Xiaodi notes
复选框的使用:全选,全不选,选一部分
ASP. Net core 6 framework unveiling example demonstration [02]: application development based on routing, MVC and grpc
Kubernetes family container housekeeper pod online Q & A?
左值右指解释的比较好的
random shuffle注意