The domain name resolution failure may occur during the first installation of Redis, as followsCopy the code

Solution: 1. Log in to root. Conf file. 3. Add nameserver 8.8.8.8 # Google nameserver 8.8.4.4 # Google DNS server to the end of the fileCopy the code
After the author encountered a small pit, the author's level is limited, maybe only I don't knowCopy the code

To connect to a local Redis server, fill in the SSH channel below and set the address as 127.0.0.1Copy the code
If you want to access your Redis from outside, you need to modify the Redis configuration fileCopy the code
Solutions: Conf file bind 127.0.0.1 protected-mode yes change to # bind 127.0.0.1 protected-mode no set password # requirepass foobared Requirepass yourpassword // Note that there is no space before the line and restart RedisCopy the code
If the server of Ali Cloud is used, there may be a problem that cannot be accessed from outsideCopy the code
Solution: Edit the security group in ali cloud server console and set Redis port to open stateCopy the code