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
0 Comments