CONFIG
Synopsis
YEDIS only supports the CONFIG
command to set the required password(s) for client authentication. All other CONFIG
requests would be accepted as valid command without further processing.
To enable authentication, one can set a password that would be required for connections to communicate with the redis server. This is done using the following command:CONFIG SET requirepass password[,password2]
Return value
Returns a status string.
Examples
$ CONFIG SET requirepass "yugapass"
"OK"
$ AUTH "yugapass"
"OK"
$ AUTH "bad"
"ERR: Bad Password."
$ CONFIG SET requirepass "yugapassA,yugapassB"
"OK"
$ AUTH "yugapassA"
"OK"
$ AUTH "yugapassB"
"OK"
$ AUTH "yugapassC"
"ERR: Bad Password."
See also
当前内容版权归 YugabyteDB 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 YugabyteDB .