运行报caused by: redis.clients.jedis.exceptions.JedisConnectionException: Failed connecting to host错

table of Contents

0 Environment

  • System environment: centos8
  • Editor: xshell

1 exclude

For redis related issues, first determine whether the password and the like in redis.conf need to turn off the protection mode (set to no) and comment out the bind xxx in conjunction with ps -efGrep redis whether the port exists in redis-server *: 6379 similar to this no problem redis -cli command operation is no problem (look down if you haven't solved it after excluding it)

Turn off the firewall / vim / etc / sysconfig / iptables add whitelist in windows cmd test telnet host 6379

The ultimate move has been changed. I can't find the problem. It is not effective. Restart (shutdown -r now) I just found it and changed it. It is not effective. Restart and restart redis-server redis.conf.

Guess you like

Origin www.cnblogs.com/my-ordinary/p/12755414.html