使用Wordpress ,用了服务器上面的Redis扩展,来提升访问速度。但出现一个严重的问题。
每次到一段时间,就会出现Redis错误。
Error establishing a Redis connection
Connection refusedThis 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扩展。我是在宝塔上面一键装的。
但问题我不知道他什么时候会出现这个错误。当我发现这个提示的时候,不知道网站有多久不能访问了。
这个是非常恼火的。
原因与解决
我在社区问过其他的朋友,得到的回答是。
低配服务器导致内存过载
也就是服务器内存太低了。换个大内存的可以解决。
另外,建议换成 memcached 来实现缓存效果。
【版权与免责声明】如发现内容存在版权问题,烦请提供相关信息发邮件至 lnkj@3173.top ,我们将及时沟通与处理。 本站内容除了3117站长服务平台( www.3117.cn )原创外,其它均为网友转载内容,涉及言论、版权与本站无关。