redis输入密码去除提示Warning: Using a password redis输入密码去除提示Warning: Using a password...
时间: 2024-03-23 10:44:05 浏览: 86
要去除 Redis 登录时输入密码后出现的 "Warning: Using a password" 提示,可以在 Redis 的配置文件 redis.conf 中找到以下内容:
```
# Specify if requiring clients to issue AUTH <PASSWORD> before processing
# any other commands, and whether to broadcast this requirement to all clients.
#
# This is useful if you have a number of clients with passwords against
# a single Redis server. You can just issue the AUTH command once instead
# of authenticating every individual connection.
#
# Note that if you have turned on "requirepass" below, client passwords are
# not optional and so this option has no effect.
#
# requirepass foobared
# requirepass ""
```
取消 requirepass 前面的注释,并将密码改为空,如下所示:
```
# Specify if requiring clients to issue AUTH <PASSWORD> before processing
# any other commands, and whether to broadcast this requirement to all clients.
#
# This is useful if you have a number of clients with passwords against
# a single Redis server. You can just issue the AUTH command once instead
# of authenticating every individual connection.
#
# Note that if you have turned on "requirepass" below, client passwords are
# not optional and so this option has no effect.
#
requirepass ""
```
然后重启 Redis 服务即可。
阅读全文