• notice
  • Congratulations on the launch of the Sought Tech site

Ways to resolve JedisConnectionException

Use maven to connect to redis and report a JedisConnectionException error, as follows:

 

 solution:

Find the corresponding startup redis.conf file

1. Set the bind configuration, commented

2. Set the protected-mode configuration to no

3. Turn off the firewall of the machine

[root@localhost ~]# systemctl stop firewalld.service

 4. Execute the connection again successfully

 


Tags

Technical otaku

Sought technology together

Related Topic

0 Comments

Leave a Reply

+