[Redis] Installation of Redis and installation and use of the graphical interface Redis DeskTop Manager

Main content: Introduction to the installation of Redis for Windows; installation of Redis graphical interface Redis DeskTop Manager

1. Introduction to Redis

Redis is a key-value storage system. Similar to Memcached, it supports relatively more stored value types, including: string(string), list(linked list), set(set), zset(sorted set - ordered set) and hash(hash type). These data types support push/pop, add/remove, intersection, union, difference, and richer operations, and these operations are all atomic.

On this basis, redis supports various different ways of sorting. Like memcached, data is cached in memory to ensure efficiency. The difference is that redis will periodically write updated data to disk or write modification operations to additional record files, and implement master-slave on this basis.

2. Download the Windows version of Redis

  Since the official website currently only provides downloads 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 (test version), select Latest Release (stable version), scroll down and you can see many versions (the 3.0.504 version here is the stable version, so here I choose 3.0.504 to download ), click the Redis-x64-3.0.504.zip link to download. If you need the source code, click the Source code (zip) link to download.

 

 After the download is completed, unzip the Redis-x64-3.0.504.zip package and use the unzipping path as desired (here I created a new Redis folder under the E drive and unzipped it into 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

 

3.Install Redis

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

  

 

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

 

4. Set up Redis service

     1. Although redis is started above, redis will disappear as soon as the "command line window" is closed. Therefore, we need to set redis as a service under windows so that it starts automatically when booting.

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

     

 

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

 

  4. At this time, open another "command line window" (do not close the original "command line window", otherwise you will not be able to access the server)

      Enter the service setting command redis-server --service-install redis.windows-service.conf --loglevel verbose. If 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.

 

 

5. Visual tool Redis Desktop Manager installation

5.1 Download Redis Desktop Manager

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

5.2 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

     

 

5.3 Use of the visualization tool Redis Desktop Manager

5.3.1 Modify Redis default password (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 preceding comment symbol # and change foobared to your own password or add a new line requirepass your own password.

            

           

  1. Restart Redis

      

5.3.2 Open the visualization tool Redis Desktop Manager
  1. Click Connect to Redis Server

 

  1. Fill in the corresponding parameters

            Name: database name

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

            Prot: port number (default port number is 6379)

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

 

  1. Click Test Connection to test whether the connection is successful (be careful not to close the Redis "command line window" that was restarted before, otherwise you will not be able to connect to the server). If the following picture appears, it means the startup is successful.

 

  1. You can operate your newly created myRedis database.


[Reference content]:

https://blog.csdn.net/qq_39135287/article/details/82686837

Guess you like

Origin blog.csdn.net/sco5282/article/details/122884225