Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to find the redis configuration file

2025-03-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

How can I find the redis configuration file? This problem may be often seen in our daily study or work. I hope you can gain a lot from this question. The following is the reference content that the editor brings to you, let's take a look at it!

The configuration file for Redis is located in the Redis installation directory and the file name is redis.conf (Windows name is redis.windows.conf).

You can view or set configuration items through the CONFIG command.

The Redis CONFIG command format is as follows:

Redis 127.0.0.1 6379 > CONFIG GET CONFIG_SETTING_NAME

Example:

Redis 127.0.0.1 loglevel 6379 > CONFIG GET loglevel1) "loglevel" 2) "notice"

Use the * sign to get all configuration items:

Redis 127.0.0.1 redis 6379 > CONFIG GET * "dbfilename", "dump.rdb", "requirepass", "" masterauth ","unixsocket", "" logfile ","pidfile"/ var/run/redis.pid", "maxmemory", "0", "maxmemory-samples", "timeout", "0", "tcp-keepalive", "0", "auto-aof-rewrite-percentage", "100th"auto-" Aof-rewrite-min-size "67108864", "hash-max-ziplist-entries", "hash-max-ziplist-value", "64", "list-max-ziplist-entries", "list-max-ziplist-value", "64", "set-max-intset-entries", "512", "zset-max-ziplist-entries", "128"," zset-max-ziplist-value "," 64 "" hll-sparse-max-bytes " "3000", "lua-time-limit", "5000", "slowlog-log-slower-than", "10000", "latency-monitor-threshold", "slowlog-max-len", "port", "6379", "tcp-backlog", "databases", "16", "repl-ping-slave-period", "10", "repl-timeout", "60", "repl-backlog-size", "1048576"repl-" Backlog-ttl "3600", "maxclients", "4064", "watchdog-period", "slave-priority", "min-slaves-to-write", "0", "min-slaves-max-lag", "hz", "10", "no-appendfsync-on-rewrite", "no", "slave-serve-stale-data", "yes", "slave-read-only", "yes"stop-writes-on-" Bgsave-error "yes", "daemonize", "no", "rdbcompression", "yes", "rdbchecksum", "yes", "activerehashing", "activerehashing", "yes", "no", "aof-rewrite-incremental-fsync", "yes", "appendonly", "no", "dir" / home/deepak/Downloads/redis-2.8.13/src "maxmemory-policy", "volatile-lru", "appendfsync"everysec" "save", "3600 1,300 100 60 10000", "loglevel", "notice", "client-output-buffer-limit", "normal 000 slave 268435456 67108864 60 pubsub 33554432 8388608 60", "unixsocketperm", "0", "slaveof", "" notify-keyspace-events "bind" Thank you for reading! After reading the above, do you have a general idea of how to find the redis configuration file? I hope the content of the article will be helpful to all of you. If you want to know more about the relevant articles, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report