redis-cli的命令选项

Usage: redis-cli [OPTIONS] [cmd [arg [arg ...]]] 
  -h <hostname>    Server hostname (default: 127.0.0.1) 
  -p <port>        Server port (default: 6379) 
  -s <socket>      Server socket (overrides hostname and port) 
  -a <password>    Password to use when connecting to the server 
  -r <repeat>      Execute specified command N times 
  -i <interval>    When -r is used, waits <interval> seconds per command. 
                   It is possible to specify sub-second times like -i 0.1. 
  -n <db>          Database number 
  -x               Read last argument from STDIN 
  -d <delimiter>   Multi-bulk delimiter in for raw formatting (default: \n) 
  --raw            Use raw formatting for replies (default when STDOUT is not a tty) 
  --latency        Enter a special mode continuously sampling latency. 
  --slave          Simulate a slave showing commands received from the master. 
  --pipe           Transfer raw Redis protocol from stdin to server. 
  --bigkeys        Sample Redis keys looking for big keys. 
  --help           Output this help and exit 

  --version        Output version and exit

猜你喜欢

转载自bsr1983.iteye.com/blog/2171102