Download and install Redis database

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allow https://blog.csdn.net/g_optimistic/article/details/90202581

1. Download

https://github.com/MSOpenTech/redis/releases

Redis supports 32-bit and 64-bit. This according to the actual circumstances of your system platform selection,

2. Extract and run

Here we Redis-x64-xxx.zip download archive to the D drive, unzip the folder renamed redis.

Open a cmd window cd to the directory to D: \ redis run:

redis-server.exe redis.windows.conf

After entering, it will display the interface :( default port number is 6379)

If you want convenience, you can put path redis added to the system's environment variables, so you lose save path, and after
that redis.windows.conf surface may be omitted if omitted, the default is enabled.

3. Set and remove the key-value pairs

This time another start a cmd window, do not close the original, otherwise they can not access the server.
Switch to Run redis redis-cli.exe the directory -h 127.0.0.1 -p 6379. (-H host address -p port number)
setting the value of the set name liulidong
extracted key to get name

Guess you like

Origin blog.csdn.net/g_optimistic/article/details/90202581