Redis configure remote access--Alibaba cloud server

1. Open security group port 6379

2. Open linux's iptables firewall to block port 6379

    (1), modify the /ect/sysconfig/iptables file

                  -A INPUT -p tcp -m tcp --dport 6379 -j ACCEPT 

    (2), /etc/init.d/iptables restart //iptable restart

3. Modify the redis.conf file

      (1), bind 127.0.0.1 ::1 //Comment out

   (2), bind 127.0.0.1 //Comment out

      (3), protected-mode yes //Change to no

      (4), daemonize no //Add this sentence

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325302445&siteId=291194637