When Ubuntu connects to redis, you can specify ip, port, and password.

       After switching to game server development, I basically wrote game logic, and there are ready-made interfaces for redis operations. I submitted the code today and I have some free time to learn redis.

       The blogger uses redis-cli to connect to redis according to the online tutorial, but the local redis has changed the default configuration file of redis before, and it can not be connected directly by using redis-cil.

       

After querying the information, I found that the ip, port, and password can be specified as follows.

      redis-cli -h xxx.xxx.xxx.xxx -p xxxx -a mima for example (redis-cli -h 127.0.0.1 -p 12345 -a zheshimima)

To connect. Make this record.

Guess you like

Origin blog.csdn.net/banfushen007/article/details/100542566