[Redis] Redis installation and visual interface

Redis installation

In this article, let's install redis with windows

We download it on GitHub: download address

Insert picture description here
Here we will find many, we download the first 3.2, and then click Downloads to start downloading

Insert picture description here
We choose the msi installation package and that’s it after
Insert picture description here
downloading, we can install it directly,
Insert picture description here
click next,
Insert picture description here
click I accept, next

Insert picture description here
Select the file to save in.
Insert picture description here
Select the port number, the default is 6379.
Add exception to windows firewall.
Insert picture description here
Select the installation path.
Add the Redis installation folder to the PATH environment variable. If it is not added, then we must start the command in this directory every time we start

redis-server redis.windows.conf

But once closed, redis disappeared, it is very troublesome to
Insert picture description here
set the maximum memory limit, if we use redis as a database, then do not set this option, the database does not allow any data loss, if it is the most cached, then it depends on your needs How much memory, here I set it to 1024M,
here is a point:
Specify the maximum memory limit of Redis, Redis will load the data into the memory when it starts, after reaching the maximum memory, Redis will first try to clear the expired or about to expire Key After this method is processed, the maximum memory setting is still reached, and no more write operations can be performed, but read operations can still be performed. Redis's new vm mechanism will store Key in memory, and Value will be stored in the swap area.
Insert picture description here
Click Install.
Let’s test the installation. You can check the running of redis in My Computer→Manage→Services and Applications→Services.
Insert picture description here
We can stop, and then enter the root directory of the redis installation path in the cmd window, enter

redis-server redis.windows.conf

Insert picture description here
You can Redisfind redis-cli.exe file in the installation root directory of the boot (I use this method), or in the cmd first into Redisthe installation root directory with the command redis-cli.exe -h 192.168.10.48 -p 6379 (note that you change to your own IP, the local can be 127.0.0.1) to open the
test: set a key-value pair, take out the key-value pair
Insert picture description here

Visual interface

After the installation, we found that it is very inconvenient to just view the data on the black window. Then we refer to the Redis Desktop Manager, the visual tool of redis, and the software installation package can be asked by me.
We only need to specify the installation path, and the installation is successful.

The interface is roughly like this.
Insert picture description here
Next, we have to connect to redis.
Insert picture description here

Insert picture description here
We clicked on root and found that redisthere are 16 dbs by default . From db0 to db15,
we add a key to db0 , right-click on add new key and
Insert picture description here
Insert picture description here
find that the name already exists. Basically, we have installed it Redis Desktop Manage, and the Redis Desktop Manageuse will be updated in the future! ! !

Insert picture description here

Guess you like

Origin blog.csdn.net/Black_Customer/article/details/108691864