windows installation start redis

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.
Insert picture description here
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:
Insert picture description here

3. Change the port

Redis file directory (d:\redis), edit redis.windows.conf
Insert picture description here

Change 6379 to 8088
Insert picture description here
to restart redis

4. Access denied

Insert picture description here
Solution:

Right click-this computer-properties-home page-applications-programs and functions-start or close the windows function-do the following:
Insert picture description here
click OK, as shown in the figure below:
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_47542175/article/details/114915974