我只是在Ubuntu服務器11.04.3 LTS安裝的Redis 3.0.4Redis的(錯誤)錯誤未知的命令 '設置' 上的Redis 3.0.4
我運行Redis的-CLI但是當我鍵入
127.0.0.1:6379> set myKey hello
或
127.0.0.1:6379> set myKey 'hello'
或
127.0.0.1:6379> set myKey "hello"
它顯示
(error) ERR unknown command 'set'
如果我鍵入
127.0.0.1:6379> help set
它顯示
SET key value [EX seconds] [PX milliseconds] [NX|XX]
summary: Set the string value of a key
since: 1.0.0
group: string
我離開這裏的信息是Redis的給了我更多的幫助
127.0.0.1:6379> info
# Server
redis_version:3.0.4
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:ca8b1c102698f8cb
redis_mode:sentinel
os:Linux 3.19.0-25-generic x86_64
arch_bits:64
multiplexing_api:epoll
gcc_version:4.8.4
process_id:1196
run_id:28b1360b9c9c17d2c4645a0b541a080c6c35a263
tcp_port:6379
uptime_in_seconds:3212
uptime_in_days:0
hz:18
lru_clock:1675551
config_file:/etc/redis.conf
感謝任何幫助
你'redis_mode'表明你沒有運行,你有什麼權利要求你正在運行 –