Fix Connection to Redis Failed Error in Magento 2.2.6

localmagento2.2.6redis

I cannot open the site and can't run any commands. I'm getting the below error:

enter image description here

The thing is that I have configured our development site into local (Xampp). In the development site, we have used the redis cache. I think this is the reason why the error is throwing.

Can anyone please help me with this?

Best Answer

This may be temporary solution,

just give it try remove redis configuration from the development server

Go to app/etc/env.php

remove or command the redis configuration and run the command.

Hope this helps