VPS侦探论坛

 找回密码
 注册
查看: 2150|回复: 4

军哥,请教redis方面的问题

[复制链接]
发表于 2023-8-8 16:52:59 | 显示全部楼层 |阅读模式

军哥,我是wordpress程序,用了redis,昨天访问的时候打开页面报出Error establishing a Redis connection To disable Redis, delete...,重启redis才解决,重启redis的时候也很慢大概花了10多秒,
回顾之前用某面板的时候,也是装了php-redis扩展和客户端,版本都是7,但没遇到过这方面的错误和重启redis太慢的情况,这您有经验吗?求您指教



美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2023-8-8 20:06:28 | 显示全部楼层


这个不太确定,具体完整的错误消息是什么?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2023-8-10 03:01:30 | 显示全部楼层

刷新缓存的时候显示如下错误



这是后台的


Error establishing a Redis connectionread error on connection to 127.0.0.1:6379
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.

这是前台的
Error establishing a Redis connectionTo disable Redis, delete the object-cache.php file in the /wp-content/ directory.

等个1分钟-2分钟这样,redis重启完毕就正常,问题是重启redis不应该要那么久啊,以前用某面板的时候重启时也没遇到过这样的错误





美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2023-8-11 08:06:04 | 显示全部楼层



清风笑 发表于 2023-8-10 03:01
刷新缓存的时候显示如下错误

看一下系统日志,是不是有OOM、kill之类的信息
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2023-8-12 11:30:52 | 显示全部楼层

我装了两台都遇到了,服务器重启后 redis 服务没有启动的问题。systemctl enable redis 试下。

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-5-17 14:27 , Processed in 0.026954 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表