1. Comment out the bound IP in the configuration file redis.conf
# 2. Change protected-mode to no in the configuration file redis.conf
#3. Set requirepass in the configuration file redis.conf to set the redis access authorization password (just set it yourself). You can also log in to the redis client and use the command to set it: as follows : ./redis-cli config set requirepass 123 //123 is the password
After the above three steps, it is basically enough, but there are special circumstances, the access port No. 6379 may be blocked by the firewall. You need to turn off the system's firewall or cancel the blocking of port 6379. I will not go into details here.
For more Redis-related technical articles, please visit the
Redis Getting Started Tutorialcolumn to learn!
The above is the detailed content of How to enter the redis database. For more information, please follow other related articles on the PHP Chinese website!