lnmp redis can not resolve external access

Local windows can not access lnmp of redis 

The first reason: redis where the listening port address of 127.0.0.1 lead to the external network can not connect 

       Solution: (1) commented redis.conf configuration file bind 127.0.0.1.
                         (2) modify the configuration file redis.conf bind 127.0.0.1, modified to bind 192.168.1.1 and other real ip.
 
The second reason: the external network port can not be accessed.
       Solution:
           LINUX can be opened to allow access to the external network port with the following command: 
          
         (1) open port 6379 
             /sbin/iptables -I INPUT -p tcp --dport 6379 -j ACCEPT 
         (2) to save the configuration 
           /etc/rc.d/init.d/iptables save 
          (3) to restart the service 
          /etc/rc.d/init.d/iptables restart
 
The two issues are generally 

Guess you like

Origin www.cnblogs.com/herocan/p/11258535.html