Install Redis under Windows 64 bit and install and use the visualization tool Redis Desktop Manager

2. Download the Windows version of Redis

  Since the official website only provides the download of the Linux version, we can only download the Windows version of Redis on Github 

  Windows version of Redis download address: https://github.com/MicrosoftArchive/redis/releases

  After entering the download page, do not select Pre-release (beta), select Latest Release (stable version), scroll down to see many versions (version 3.0.504 here is a stable version, so here I choose 3.0.504 to download ), click the Redis-x64-3.0.504.zip link to download, if the source code is needed, click the Source code (zip) link to download

After the download is complete, decompress the Redis-x64-3.0.504.zip package, and the decompression path is arbitrary (here I created a Redis folder under the E drive and decompressed it to the Redis folder)

File introduction:

redis-benchmark.exe #benchmark test

redis-check-aof.exe # aof

redischeck-dump.exe # dump

redis-cli.exe # client

redis-server.exe # server

redis.windows.conf # Configuration file

 

Three, install Redis

   1. Open the "Command Line Window" and point the directory to the unzipped Redis directory (here my Redis unzipped directory is E:\Redis)

 2. Enter the startup command redis-server.exe redis.windows.conf, the following figure shows that the startup is successful.

 

Fourth, set up the Redis service

     1. Although redis is started above, redis will disappear as soon as the "command line window" is closed. Therefore, redis must be set as a service under windows so that it will automatically start after booting.

     2. Right-click My Computer, select Manage (G), go to Services and Applications → Services to view all services

3. We can see that there is no Redis service in the red box

 

4. At this time, another "command line window" is opened (the original "command line window" should not be closed, otherwise the server will not be accessible)

      Enter the setting service command redis-server --service-install redis.windows-service.conf --loglevel verbose, and no error is reported after entering the command, it means success

  At this time, when we refresh the service, we will see an additional Redis service.

Visualization tool Redis Desktop Manager installation
  1. Download Redis Desktop Manager

         Redis Desktop Manager download link: https://pan.baidu.com/s/1ihWvjsCk6-Jw3OWhm5o33g

 Two, install Redis Desktop Manager

        1. Double-click to run the downloaded redis-desktop-manager-0.8.8.384.exe executable file and enter the following interface

 2. Click I Agree

 3. Select the installation directory of Redis Desktop Manager and click Install

  4. Click Next

 5. Click Finish

     

The use of the visualization tool Redis Desktop Manager
       One, modify the Redis default password (the default password is empty)

             1. Find the redis.windows.conf configuration file in your Redis installation directory

             2. Find this line in the configuration file # requirepass foobared

             3. Delete the previous comment symbol #, and change foobared to your own password or start a new line requirepass with your own password

 4. Restart Redis

Two, open the visualization tool Redis Desktop Manager

     1. Click Connect to Redis Server

 

2. Fill in the corresponding parameters

            Name: database name

            Host: Host IP address (if it is this machine, fill in 127.0.0.1 or localhost either)

            Prot: Port number (the default port number is 6379)

            Auth: Redis password (the password I set here is 123456)

 3. Click Test Connection to test whether the link is successful (note that the Redis "command line window" that was restarted before should not be closed, otherwise the server cannot be connected), the following figure shows that the startup is successful.

4. You can operate your newly created myRedis database

 

Source blog: https://www.cnblogs.com/xianz666/p/12851033.html

Guess you like

Origin blog.csdn.net/qq_41936224/article/details/107934599