Article Directory
Redis installation
In this article, let's install redis with windows
We download it on GitHub: download address
Here we will find many, we download the first 3.2, and then click Downloads to start downloading
We choose the msi installation package and that’s it after
downloading, we can install it directly,
click next,
click I accept, next
Select the file to save in.
Select the port number, the default is 6379.
Add exception to windows firewall.
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
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.
Click Install.
Let’s test the installation. You can check the running of redis in My Computer→Manage→Services and Applications→Services.
We can stop, and then enter the root directory of the redis installation path in the cmd window, enter
redis-server redis.windows.conf
You can Redis
find redis-cli.exe file in the installation root directory of the boot (I use this method), or in the cmd first into Redis
the 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
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.
Next, we have to connect to redis.
We clicked on root and found that redis
there are 16 dbs by default . From db0 to db15,
we add a key to db0 , right-click on add new key and
find that the name already exists. Basically, we have installed it Redis Desktop Manage
, and the Redis Desktop Manage
use will be updated in the future! ! !