idea not connect redis solution

The client can successfully connect to the redis server, you need to check the following three configurations:

1. remote Linux firewall has been closed to CentOS7 I have here, for example, turn off the firewall command

systemctl stop firewalld.service

Also can fix knife

systemctl disable firewalld.service

It represents disable the firewall boot.

2. Close redis protected mode, redis.conf file, modify protected is no, as follows:

protected-mode no

3. Comment out the redis ip address binding, or in redis.conf in a bind: 127.0.0.1 commented as follows:

# bind:127.0.0.1

Above 4.5.0 redis need to set a password in redis.conf

requirepass  123

This was confirmed after a few steps, restart linux open redis-server can validate the configuration of remote connection redis.

 

Guess you like

Origin www.cnblogs.com/whymoney1000/p/11140909.html