报错显示:
Redis is unreachable: `SELECT` failed: NOAUTH Authentication required. [tcp://127.0.0.1:6379]
解决:
这是你Redis设置了密码导致wordpress无法连接Redis
进入目录 /wp-content/plugins/redis-cache/includes
选择:object-cache.php 打开编辑
约628下面添加:’password’ => ‘www.vpsche.com’,
再到网站根目录wp-config.php内添加:
define(‘WP_CACHE’, true); // 启用缓存
define(‘WP_REDIS_HOST’, ‘127.0.0.1’); // Redis服务器地址
define(‘WP_REDIS_PORT’, 6379); // Redis服务器端口
define(‘WP_REDIS_PASSWORD’, ‘www.vpsche.com’); // 如果设置了密码,填入密码
完美解决