当前位置:网站首页>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边栏推荐
- I2C 子系统(二):I3C spec
- Kubernetes cluster log and efk architecture log scheme
- Summary of interview project technology stack
- What does "where 1=1" mean
- How do you adjust the scope of activerecord Association in rails 3- How do you scope ActiveRecord associations in Rails 3?
- Chart. JS multitooltip tag - chart js multiTooltip labels
- Pytest (6) -fixture (Firmware)
- Sous - système I2C (IV): débogage I2C
- [translation] modern application load balancing with centralized control plane
- "Analysis of 43 cases of MATLAB neural network": Chapter 43 efficient programming skills of neural network -- Discussion Based on the characteristics of the new version of MATLAB r2012b
猜你喜欢

vfork执行时出现Segmentation fault

Do you really understand relays?
![[principles of multithreading and high concurrency: 1_cpu multi-level cache model]](/img/7e/ad9ea78868126b149bd9f15f587e6c.jpg)
[principles of multithreading and high concurrency: 1_cpu multi-level cache model]

Classes and objects - initialization and cleanup of objects - constructor call rules

HW initial preparation

超好用的日志库 logzero

"Analysis of 43 cases of MATLAB neural network": Chapter 43 efficient programming skills of neural network -- Discussion Based on the characteristics of the new version of MATLAB r2012b

Random shuffle note

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

Yiwen takes you to know ZigBee
随机推荐
Segmentation fault occurs during VFORK execution
函数栈帧的创建与销毁
Distributed transaction
Kubernetes family container housekeeper pod online Q & A?
The base value is too large (the error is marked as "08") [duplicate] - value too great for base (error token is'08') [duplicate]
[C语言]给账号密码进行MD5加密
Sqlserver row to column pivot
How to select the minimum and maximum values of columns in the data table- How to select min and max values of a column in a datatable?
Didi programmers are despised by relatives: an annual salary of 800000 is not as good as two teachers
Do you really understand relays?
xiaodi-笔记
Process the dataset and use labelencoder to convert all IDs to start from 0
从C到Capable-----利用指针作为函数参数求字符串是否为回文字符
open file in 'w' mode: IOError: [Errno 2] No such file or directory
[fluent] listview list (map method description of list set | vertical list | horizontal list | code example)
[translation] flux is safe. Gain more confidence through fuzzy processing
Cancer biopsy instruments and kits - market status and future development trends
销毁Session和清空指定的属性
一文带你了解 ZigBee
左连接,内连接