1. Installation
Download Redis-x64-3.2.100.zip and unzip it to the d:\redis directory
2. Start-up and verification
d:\redis directory execution
redis-server redis.windows.conf
The startup is successful, as shown in the figure below.
Start and verify the redis service
C:\Users\l>cd d:\redis
C:\Users\l>d:
d:\Redis>redis-server --service-install redis.windows-service.conf --loglevel verbose
d:\Redis>redis-server --service-start
[11400] 17 Mar 09:22:53.272 # Redis service failed to start.
d:\Redis>redis-cli.exe -h 127.0.0.1 -p 6379
127.0.0.1:6379> set userinfo xiao
OK
127.0.0.1:6379> get userinfo
"xiao"
127.0.0.1:6379>
Start: redis-server --service-start
Close: redis-server --service-stop
As shown below:
3. Change the port
Redis file directory (d:\redis), edit redis.windows.conf
Change 6379 to 8088
to restart redis
4. Access denied
Solution:
Right click-this computer-properties-home page-applications-programs and functions-start or close the windows function-do the following:
click OK, as shown in the figure below: