And the use of local start reids

 

Redis start under Windows

  1. first need to download the Windows version of Redis, address: https://github.com/MSOpenTech/redis , where you can choose to download the source code to compile, you can also directly download the release version, I direct download release release version after version

After the download is complete, directly extract, win + R, cmd into the dos window, to extract the packet switch corresponding directory

Through the command to start the red box, without exception, to complete the startup, then connect via RedisDesktopManager, normal connections shown below:

In addition, the first landing, when the need to modify the password, configure requirepass password in the configuration file (when redis restart password is still valid).

   redis 127.0.0.1:6379> config set requirepass test123

   Query Password:

   redis 127.0.0.1:6379> config get requirepass
   (error) ERR operation not permitted

   Password validation:

   redis 127.0.0.1:6379> auth test123
   OK

   Query again:

   redis 127.0.0.1:6379> config get requirepass
   1) "requirepass"
   2) "test123"

   PS: If the configuration file to add a password so redis not restart, password expiration;

Published 23 original articles · won praise 7 · views 20000 +

Guess you like

Origin blog.csdn.net/ghd602338792/article/details/83867772