After redis CenOS the default installation is not turned on remotely connected, only the machine is connected. To enable remote connections need to do the following steps:
First, open the Start, point to redis configuration file, the default is redis.conf file, make the following changes
bind 127.0.0.1
改成
#bind 127.0.0.1
protected-mode yes
改成
protected-mode no
Then turn off the firewall or firewall to open port 6379 limit
Method one: turn off the firewall
systemctl stop firewalld
At this time, the firewall is closed, can be used to view systemctl status firewalld firewall status, firewall off after connect.
Method Two: firewall to open port 6379
To open firewall port, do not turn off the firewall, the port will be automatically released 6379, as follows:
firewall-cmd --zone=public --add-port=6379/tcp --permanent
When the show success that is successful, then reboot the firewall or the firewall configuration can be reloaded
systemctl restart firewalld #重启防火墙
firewall-cmd --reload #重新加载配置
(以上任意一个均可)
Then you have set up permanent port 6379 is not blocked firewall, then you can redis pictures of remote connection remote connection is successful, and paste