Redis Security
# Redis Security
We can set a password parameter in the Redis configuration file, so that clients connecting to the Redis service must pass password verification, making your Redis service more secure.
### Example
We can use the following command to check whether password verification is enabled:
127.0.0.1:6379> CONFIG get requirepass 1) "requirepass"2) ""
By default, the `requirepass` parameter is empty, which means you can connect to the Redis service without password verification.
You can modify this parameter using the following command:
127.0.0.1:6379> CONFIG set requirepass "" OK 127.0.0.1:6379> CONFIG get requirepass 1) "requirepass"2) ""
After setting a password, clients connecting to the Redis service must pass password verification; otherwise, they cannot execute commands.
### Syntax
The basic syntax of the **AUTH** command is as follows:
127.0.0.1:6379> AUTH password
### Example
127.0.0.1:6379> AUTH "" OK 127.0.0.1:6379> SET mykey "Test value" OK 127.0.0.1:6379> GET mykey "Test value"
AI is thinking...
[](#)(#)
(#)[](#)
[VolcEngine Coding Plan supports mainstream large models such as Doubao, GLM, DeepSeek, Kimi, MiniMax, etc., with official direct supply that is stable and reliable. Configuration Guide Β₯9.9/ month Activate Now](https://maas.xfyun.cn/modelSquare?ch=maas_lm_l2E)
YouTip