当前位置:论坛首页 > Linux面板 > 求助

【待反馈】为Redis设置密码后网站报错

发表在 Linux面板2024-3-29 16:46 [复制链接] 1 117

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:
系统版本:
问题描述:为Redis设置密码后网站报错
相关截图(日志、错误):

Error establishing a Redis connection
NOAUTH Authentication required.
WordPress is unable to establish a connection to Redis. This means that the connection information in your wp-config.php file are incorrect, or that the Redis server is not reachable.
  • Is the correct Redis host and port set?
  • Is the Redis server running?
If you need help, please read the installation instructions.
To disable Redis, delete the object-cache.php file in the /wp-content/ directory.
使用道具 举报 只看该作者 回复
发表于 2024-3-29 17:29:03 | 显示全部楼层
您好,这个报错是说WordPress在连接redis的时候有问题,可以尝试下面几个方向去排查一下:
1、更新wp-config.php:
在WordPress的根目录下的wp-config.php文件中,找到与Redis相关的配置行。确保你添加了正确的Redis主机、端口和密码,修改之后需要重启web才能生效,代码如下:
define('REDIS_HOST', 'localhost');  
define('REDIS_PORT', 6379);  
define('REDIS_AUTH', 'your_redis_password'); // 如果设置了密码,请添加此行并替换your_redis_password  
define('REDIS_SCHEME', 'tcp');

2、防火墙和安全组:
确保你的服务器防火墙或云服务提供商的安全组设置允许从你的WordPress服务器到Redis服务器的连接。
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表