> 原创 > Redis Object Cache插件导致链接出错,怎么办?

Redis Object Cache插件导致链接出错,怎么办?

今天忽然发现登录不了后台,提示Redis连接错误。登录不了后台,我索性把服务器上的Redis卸载了,也把插件从后台删除了。但是还是提示Error establishing a Redis connection。

错误如下:

Error establishing a Redis connection

Predis library not found. Re-install Redis Cache plugin or delete the object-cache.php.

This means that the connection information in your wp-config.php file are incorrect or that the Redis server is unreachable.

  • Are you sure you have the correct Redis host and port?
  • Are you sure Redis server is running?

If you need help, please read the installation instructions.

Redis Object Cache插件导致链接出错,怎么办?

最后解决办法:

  1. 去宝塔或者服务器卸载掉Redis。
  2. 卸载掉PHP版本对应的Redis。
  3. 再插件管理删除Redis Object Cache插件。
  4. 删除掉文件夹/wp-content/object-cache.php 文件。

这个时候你就可以彻底关闭Redis了。不过我用这个插件很多年了,一直没问题,偶尔一次我原谅他,所以咱们再重新去启动它吧

重新安装:

  1. 重新安装Redis。
  2. 重新安装PHP版本对应的Redis。
  3. 插件库重新安装Redis Object Cache插件。
  4. 安装方法可以参考:
  5. WordPress网站前后台加载慢卡顿,利用Redis和opcache速度飙升!
  6. 再次到后台插件启动,发现启动成功!

典型的夜猫子,失眠者。爱好LOL、徒步、旅行、拍照、音乐、小球。E-mail:[email protected]

Redis Object Cache插件导致链接出错,怎么办?:等您坐沙发呢!

发表评论

表情
还能输入210个字

了解 李英杰害虫 的更多信息

立即订阅以继续阅读并访问完整档案。

Continue reading