cacertdir to configure a trusted root certificate bundle or directory. You may enable SSL/TLS using the -tls option, along with -cacert or Option and the URI pattern $ redis-cli -u PINGīy default, redis-cli uses a plain TCP connection to connect to Redis. Some or all of this information can also be provided by using the -u Other than the default number zero by using the -n option: $ redis-cli FLUSHALL NOTE: For security reasons, provide the password to redis-cli automatically via theįinally, it's possible to send a command that operates on a database number Perform authentication saving the need of explicitly using the AUTH command: $ redis-cli -a myUnguessablePazzzzzword123 PING If your instance is password protected, the -a option will In order to set a different port, use -p. To specify a different host name or an IP address, use the -h option. You can change the port using several command line options. When you input strings that contain single or double quotes, as you might in passwords, for example, escape the string, like so: 127.0.0.1:6379> AUTH some_admin_user port, password, and databaseīy default, redis-cli connects to the server at the address 127.0.0.1 with port 6379. Single quotes assume the string is literal, and allow only the following escape sequences:įor example, to return Hello World on two lines: 127.0.0.1:6379> SET mykey "Hello\nWorld"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |