Install redis under windows and set up self-starting

One, download the windows version of Redis

I went to the official website for a long time, and found that the original version of windows that can be downloaded on the official website, now the official website and no download address, can only be downloaded on github, the official website only provides downloads of the linux version

Official website download address: http://redis.io/download
github download address: https://github.com/MSOpenTech/redis/tags

Second, install Redis

1. The version downloaded here is Redis-x64-3.2.100, my computer is win7 64-bit, so download the 64-bit version, enter cmd during operation, and then point the directory to the unzipped Redis directory.
Insert picture description here

2. Start command
Insert picture description here

Three, set up Redis service

1. Although redis is started above, redis will disappear as soon as the cmd window is closed. So redis must be set as a service under windows.

That is to say, when it is set here, it is first discovered that this Redis service is useless.
Insert picture description here
2. Set the service command
to execute the command in the terminal:

redis-server --service-install redis.windows-service.conf --loglevel verbose

Insert picture description here
After entering the command, no error is reported, indicating that it was successful. If you refresh the service, you will see an additional redis service.
Insert picture description here
**If the startup error 1067 is reported, create a new folder Logs in the redis directory and start it again.

3. Commonly used redis service commands.

卸载服务:redis-server --service-uninstall

开启服务:redis-server --service-start

停止服务:redis-server --service-stop

4. Start the service
Insert picture description here

5. Test Redis

Insert picture description here
Check whether the redis port is open:
open the terminal (wind+R), enter the command: the netstat -ano | findstr "6379"
Insert picture description here
installation test is successful.

Here is just a simple installation, deployment service use, more in-depth use can go to the redis Chinese website http://www.redis.net.cn/ There are also many in-depth use methods, because my blog system needs to be used , Be a starter.

There is a document in the downloaded decompression package, with detailed instructions,
insert the picture description here

Guess you like

Origin blog.csdn.net/qq_43030934/article/details/111228040