redis 登陆命令

[tdops@uriel-d-012236 bin]$ ./redis-cli -h 10.58.12.236 -p 6379 
10.58.12.236:6379> SET runoobkey redis
OK
10.58.12.236:6379> keys
(error) ERR wrong number of arguments for 'keys' command
10.58.12.236:6379> help
redis-cli 5.0.5
To get help about Redis commands type:
      "help @" to get a list of commands in 
      "help " for help on 
      "help " to get a list of possible help topics
      "quit" to exit

To set redis-cli preferences:
      ":set hints" enable online hints
      ":set nohints" disable online hints
Set your preferences in ~/.redisclirc
10.58.12.236:6379> get runoobkey
"redis"
10.58.12.236:6379> del runoobkey
(integer) 1
10.58.12.236:6379> keys
(error) ERR wrong number of arguments for 'keys' command
10.58.12.236:6379> keys *
 1) "leader_send_message_last_alive_time"
 2) "spring:session:sessions:5db381a7-d7e1-4472-9d49-3c4df77a9e4a"
 3) "spring:session:sessions:cde0c481-c486-4710-96b0-ebe6ff710d69"
 4) "spring:session:sessions:dea86912-e49b-454e-8a32-b6cbce1c1452"
 5) "sys_config_ZHENGXIN_DOC"
 6) "spring:session:sessions:0eafa225-1f2d-41d3-85d1-ddfdc668ec5d"
 7) "sys_config_FILE_TYPE_NOTICE"
 8) "spring:session:sessions:expires:268cdc40-f75e-4012-a4ce-06546b2adf9e"
 9) "spring:session:expirations:1567587480000"
10) "spring:session:sessions:41da22a7-ff73-4fea-a633-580022929bc3"
11) "sys_config_HOT_POLICY_PRODUCT"
12) "spring:session:sessions:expires:5db381a7-d7e1-4472-9d49-3c4df77a9e4a"
13) "spring:session:expirations:1567585920000"
14) "spring:session:sessions:584550bc-da70-40af-a47b-bbabcfef12a9"
15) "spring:session:sessions:expires:cde0c481-c486-4710-96b0-ebe6ff710d69"
16) "spring:session:sessions:7dd7c251-734c-4111-97f3-e25f9fd6bdf7"
17) "spring:session:sessions:e867280e-a41e-40d7-aed6-f1bd4c035de5"
18) "spring:session:sessions:expires:9f0e6b51-596c-4ca0-9386-f32fee312db4"
19) "spring:session:sessions:387464e7-9fe8-4455-bfef-990553e06a2f"
20) "spring:session:sessions:9f0e6b51-596c-4ca0-9386-f32fee312db4"
21) "spring:session:sessions:311d9890-0d7d-4a5a-bbbc-6c8feee6e741"
22) "spring:session:sessions:54154892-98f3-483c-8a39-5d3181bd635c"
23) "casserver.registerCount"
24) "spring:session:sessions:268cdc40-f75e-4012-a4ce-06546b2adf9e"
25) "company_count_total"
26) "spring:session:sessions:31c52094-29d1-478d-bd70-bfdfb6a10c4e"
27) "sys_config_LOAN_FAIL_MESSAGE"
28) "spring:session:sessions:ab24cd84-5ef5-4271-af87-7fb0b5d99bc2"
29) "sys_config_REMINDER_MESSAGE"
30) "spring:session:sessions:b1321de2-a4f5-449f-945a-8c2e59b5efe9"
31) "spring:session:expirations:1567585980000"
32) "spring:session:sessions:expires:0eafa225-1f2d-41d3-85d1-ddfdc668ec5d"
33) "sys_config_CHECK_FAIL_MESSAGE"
34) "sys_config_CONTACT_US"
35) "spring:session:expirations:1567586100000"
36) "spring:session:expirations:1567586340000"
37) "sys_config_FILE_TYPE_NEED"
38) "sys_config_CHECK_SUCCESS_MESSAGE"
39) "sys_config_DEMAND_MESSAGE"
40) "company_count_total_last_alive_time"
41) "sys_config_HOT_PRODUCT"
42) "sys_config_GUARANT_FAIL_MESSAGE"
43) "sys_config_DOCX_CONTENT_TYPE"
44) "spring:session:sessions:0b713af5-aaaf-4da9-a5b6-82aa1c648bc6"
45) "sys_config_APPLY_MESSAGE"
46) "sys_config_GUARANT_SUCCESS_MESSAGE"
47) "sys_config_LOAN_SUCCESS_MESSAGE"
10.58.12.236:6379> sions:expires:0eafa225-1f2d-41d3-85d1-ddfdc668ec5d"
Invalid argument(s)
10.58.12.236:6379> flushall
OK
10.58.12.236:6379> keys *
1) "company_count_total"
10.58.12.236:6379> 

 

你可能感兴趣的:(redis 登陆命令)