1.
The best way to network is to bridge. I used "Network address translation (NAT)", resulting in the virtual machine with the command ifconfig to get the IP is 10.0.2.15, a strange feeling, and then on the real machine has not been connected. Some say with the real machine on the network Sharing center of the virtual machine IP, I found the 192.168.56.1, can ping the pass, but even dead. Oh, I've had a big day.
2.
The configuration of bind in redis.conf,
Change bind 127.0.0.1 to bind 0.0.0.0 that all addresses can be connected
3.
Some netizens said it might be a server firewall problem, he shut down the firewall to try
Systemctl Stop Firewalld.service Firewall off
The Netizen's virtual machine is centos7 default firewall, 7 The following default is Iptables, re-test, OK, connected.
Reason analysis of Redis in virtual machine and virtual machine network configuration are not connected to host