Redis ERR未知命令'FLUSHDB' [英] Redis ERR unknown command 'FLUSHDB'
问题描述
我将laravel应用程序部署到AWS EC2中.Redis服务器已安装在另一台EC2服务器上.
I deployed a laravel application into AWS EC2. The redis server is installed on another EC2 server.
与redis服务器的连接已成功初始化.但是,每当我尝试清除缓存时,都会出现此错误:
The connection to the redis server is being initialized successfully. But, whenever I attempt to clear the cache, I get this error:
Predis \ Response \ ServerException:ERR未知命令"FLUSHDB",参数以以下开头:
如果我在应用程序服务器上本地安装Redis服务器,它可以正常工作.
If I install redis server locally on the application server, it works fine.
有什么想法要解决吗?
P.S:我尝试了两个版本的Redis:4.0.9和5.0.7(都给了我相同的错误)
P.S: I tried two versions of redis: 4.0.9 and 5.0.7 (both gave me the same error)
推荐答案
这意味着 FLUSHDB
已被禁用.这是一个危险的命令,因此许多管理员会通过在 redis.conf
中使用 rename-command
配置重命名该命令来禁用此命令.检查conf文件以获取有关命令重命名的详细信息.
That means FLUSHDB
has been disabled. This is a dangerous command, so many admin will disable this command by renaming the command with rename-command
configuration in redis.conf
. Check the conf file for detail on command renaming.
这篇关于Redis ERR未知命令'FLUSHDB'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!