文章目录
- [1、info server](#1、info server)
- [2、redis-cli -v](#2、redis-cli -v)
1、info server
sh
复制代码
[root@localhost ~]# docker exec -it spzx-redis redis-cli
127.0.0.1:6379> auth 123456
OK
127.0.0.1:6379> info server
# Server
redis_version:6.2.6
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:b61f37314a089f19
redis_mode:standalone
os:Linux 3.10.0-693.el7.x86_64 x86_64
arch_bits:64
multiplexing_api:epoll
atomicvar_api:atomic-builtin
gcc_version:10.2.1
process_id:1
process_supervised:no
run_id:7aaccd1451234f0a25e4f2af9e9afb42c5fb6b33
tcp_port:6379
server_time_usec:1727242105826007
uptime_in_seconds:2239
uptime_in_days:0
hz:10
configured_hz:10
lru_clock:15966073
executable:/data/redis-server
config_file:/etc/redis/config/redis.conf
io_threads_active:0
2、redis-cli -v
sh
复制代码
[root@localhost ~]# docker exec -it spzx-redis /bin/bash
root@c14772057ab8:/data# redis-cli -v
redis-cli 6.2.6