如何查看redis当前加载的哪个配置文件?

luckyFang 2021年11月02日 51次浏览

使用 info server 命令

redis-cli --raw
127.0.0.1:6379> info server
# Server
redis_version:6.2.6
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:c6f3693d1aced7d9
redis_mode:standalone
os:Darwin 20.6.0 x86_64
arch_bits:64
multiplexing_api:kqueue
atomicvar_api:c11-builtin
gcc_version:4.2.1
process_id:955
process_supervised:no
run_id:57fb96108d72bcf4d5ea0209f1a059188ecbc816
tcp_port:6379
server_time_usec:1635819858584538
uptime_in_seconds:10733
uptime_in_days:0
hz:10
configured_hz:10
lru_clock:8429906
executable:/usr/local/opt/redis/bin/redis-server
config_file:/usr/local/etc/redis.conf
io_threads_active:0