[Solved] jedis Connect redis Error: connect timed out

1. First check whether we are in redis.Conf or not and enter redis.conf if not.

(1) Find bind 127.0.0.1 under network and comment out this line.

(2) Find protected mode yes under network and change yes to No.

2. If this modification has not been solved, check the firewall.

systemctl status firewalld

If it’s like this, we can turn off the firewall

systemctl stop firewalld

Then we’ll test it again

After running, Pong solves the problem.

Read More: