当前位置:   article > 正文

redis 登陆命令_err wrong number of arguments for 'keys' command

err wrong number of arguments for 'keys' command
  1. [tdops@uriel-d-012236 bin]$ ./redis-cli -h 10.58.12.236 -p 6379
  2. 10.58.12.236:6379> SET runoobkey redis
  3. OK
  4. 10.58.12.236:6379> keys
  5. (error) ERR wrong number of arguments for 'keys' command
  6. 10.58.12.236:6379> help
  7. redis-cli 5.0.5
  8. To get help about Redis commands type:
  9. "help @<group>" to get a list of commands in <group>
  10. "help <command>" for help on <command>
  11. "help <tab>" to get a list of possible help topics
  12. "quit" to exit
  13. To set redis-cli preferences:
  14. ":set hints" enable online hints
  15. ":set nohints" disable online hints
  16. Set your preferences in ~/.redisclirc
  17. 10.58.12.236:6379> get runoobkey
  18. "redis"
  19. 10.58.12.236:6379> del runoobkey
  20. (integer) 1
  21. 10.58.12.236:6379> keys
  22. (error) ERR wrong number of arguments for 'keys' command
  23. 10.58.12.236:6379> keys *
  24. 1) "leader_send_message_last_alive_time"
  25. 2) "spring:session:sessions:5db381a7-d7e1-4472-9d49-3c4df77a9e4a"
  26. 3) "spring:session:sessions:cde0c481-c486-4710-96b0-ebe6ff710d69"
  27. 4) "spring:session:sessions:dea86912-e49b-454e-8a32-b6cbce1c1452"
  28. 5) "sys_config_ZHENGXIN_DOC"
  29. 6) "spring:session:sessions:0eafa225-1f2d-41d3-85d1-ddfdc668ec5d"
  30. 7) "sys_config_FILE_TYPE_NOTICE"
  31. 8) "spring:session:sessions:expires:268cdc40-f75e-4012-a4ce-06546b2adf9e"
  32. 9) "spring:session:expirations:1567587480000"
  33. 10) "spring:session:sessions:41da22a7-ff73-4fea-a633-580022929bc3"
  34. 11) "sys_config_HOT_POLICY_PRODUCT"
  35. 12) "spring:session:sessions:expires:5db381a7-d7e1-4472-9d49-3c4df77a9e4a"
  36. 13) "spring:session:expirations:1567585920000"
  37. 14) "spring:session:sessions:584550bc-da70-40af-a47b-bbabcfef12a9"
  38. 15) "spring:session:sessions:expires:cde0c481-c486-4710-96b0-ebe6ff710d69"
  39. 16) "spring:session:sessions:7dd7c251-734c-4111-97f3-e25f9fd6bdf7"
  40. 17) "spring:session:sessions:e867280e-a41e-40d7-aed6-f1bd4c035de5"
  41. 18) "spring:session:sessions:expires:9f0e6b51-596c-4ca0-9386-f32fee312db4"
  42. 19) "spring:session:sessions:387464e7-9fe8-4455-bfef-990553e06a2f"
  43. 20) "spring:session:sessions:9f0e6b51-596c-4ca0-9386-f32fee312db4"
  44. 21) "spring:session:sessions:311d9890-0d7d-4a5a-bbbc-6c8feee6e741"
  45. 22) "spring:session:sessions:54154892-98f3-483c-8a39-5d3181bd635c"
  46. 23) "casserver.registerCount"
  47. 24) "spring:session:sessions:268cdc40-f75e-4012-a4ce-06546b2adf9e"
  48. 25) "company_count_total"
  49. 26) "spring:session:sessions:31c52094-29d1-478d-bd70-bfdfb6a10c4e"
  50. 27) "sys_config_LOAN_FAIL_MESSAGE"
  51. 28) "spring:session:sessions:ab24cd84-5ef5-4271-af87-7fb0b5d99bc2"
  52. 29) "sys_config_REMINDER_MESSAGE"
  53. 30) "spring:session:sessions:b1321de2-a4f5-449f-945a-8c2e59b5efe9"
  54. 31) "spring:session:expirations:1567585980000"
  55. 32) "spring:session:sessions:expires:0eafa225-1f2d-41d3-85d1-ddfdc668ec5d"
  56. 33) "sys_config_CHECK_FAIL_MESSAGE"
  57. 34) "sys_config_CONTACT_US"
  58. 35) "spring:session:expirations:1567586100000"
  59. 36) "spring:session:expirations:1567586340000"
  60. 37) "sys_config_FILE_TYPE_NEED"
  61. 38) "sys_config_CHECK_SUCCESS_MESSAGE"
  62. 39) "sys_config_DEMAND_MESSAGE"
  63. 40) "company_count_total_last_alive_time"
  64. 41) "sys_config_HOT_PRODUCT"
  65. 42) "sys_config_GUARANT_FAIL_MESSAGE"
  66. 43) "sys_config_DOCX_CONTENT_TYPE"
  67. 44) "spring:session:sessions:0b713af5-aaaf-4da9-a5b6-82aa1c648bc6"
  68. 45) "sys_config_APPLY_MESSAGE"
  69. 46) "sys_config_GUARANT_SUCCESS_MESSAGE"
  70. 47) "sys_config_LOAN_SUCCESS_MESSAGE"
  71. 10.58.12.236:6379> sions:expires:0eafa225-1f2d-41d3-85d1-ddfdc668ec5d"
  72. Invalid argument(s)
  73. 10.58.12.236:6379> flushall
  74. OK
  75. 10.58.12.236:6379> keys *
  76. 1) "company_count_total"
  77. 10.58.12.236:6379>

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/空白诗007/article/detail/794090
推荐阅读
相关标签
  

闽ICP备14008679号