我本地的redis是安装路径在/usr/local/redis
1、利用”redis-server --version”命令或“redis-server -v”,redis-server在redis安装目录中的bin目录下:[[email protected] ~]# cd /usr/local/redis/
[[email protected] redis]# ls
bin etc
[[email protected] redis]# cd bin/
[[email protected] bin]# ls
dump.rdb mkreleasehdr.sh redis-benchmark redis-check-aof redis-check-dump redis-cli redis-server
[[email protected] bin]# ./redis-server --version
Redis server v=3.0.7 sha=00000000:0 malloc=jemalloc-3.6.0 bits=64 build=b3571dfe0401e0ac
[[email protected] bin]# ./redis-server -v
Redis server v=3.0.7 sha=00000000:0 malloc=jemalloc-3.6.0 bits=64 build=b3571dfe0401e0ac
2、利用“redis-cli --version”命令或“redis-cli -v,redis-cli 在redis安装目录中的bin目录下:[[email protected] bin]# ./redis-cli --version
redis-cli 3.0.7
[[email protected] bin]# ./redis-cli -v
redis-cli 3.0.7