Redis installation under windows10 (redis-3.2.100 version)

Download the windows version of redis

Instructions for downloading and installing redis on windows :
1. Because redis is sometimes needed in daily development, it is more troublesome to open virtual machine or configure redis and consume computer memory (for computer memory is not very large, of course, I won’t bother with 32G big guys) );
2. There is no dedicated redis server built (may be related to the shortage of funds, coupled with the emergency of the project, etc.), so it is very necessary to install the windows version;
download address

installation steps

Note : This demonstration uses version 3.2.100 as an example.
1. First unzip the downloaded compressed package into a folder, as shown in the figure below.
Insert picture description here
2. Open the cmd command window (shortcut key: WIN key + R key)
3. Enter the path of the file you just unzipped, for example:
Insert picture description here
4. Then enter the redis-server redis.windows.conf command. Verify whether it is available
Insert picture description here
5. Deploy Redis as a service under windows (set the service to self-start after booting), first close the previous open window (this is to close and start redis), and then open a new cmd command window (also the path just now ), and then enter the command redis-server --service-install redis.windows.conf
Insert picture description here
6. Open the service in the computer service, right-click this computer-management-services and applications-services-start the service
Insert picture description here
Redis commonly used commands to
install services: redis-server --service-install redis.windows.conf (Step 6)
Uninstall the service: redis-server --service-uninstall
start the service: redis-server --service-start
stop the service:redis-server --service-stop

Note : Redis common commands can only be used in cmd at the redis installation location (or the location where the package is decompressed). Otherwise, it will prompt that it is not a system command. Of course, you can use the method of configuring environment variables (not verified)

Test verification
By cd to the directory where we decompressed, enter the command to check whether it is successful through the Set or get command, of course, the key * command can also be used. The
Insert picture description here
above is the redis installation under windows10.

Guess you like

Origin blog.csdn.net/rao991207823/article/details/106944537