Redis installation under Windows
Redis official does not provide Windows version, but the Microsoft Open source organization develops and maintains the Redis window version, therefore cannot download in Redis website to the Windows edition, may go to the https://github.com/MSOpenTech/ redis/releases download the Windows version.
Download Redis-x64-3.2.100.zip According to the version of Windows, determine whether to download 64-bit, or 32-bit.
Extract to C:\Program Files\redis path, run on console
Running Redis on the console
Redis-server redis.windows.conf
Display startup information, CTRL + C turn off the Redis service, this is not a convenient way to run, so you must install Windows service, run Redis in the background, and the default boot port is 7379
Install Redis Service
At the command line
Redis-server--service-install redis.windows.conf
Implementation results are as follows
C:\Program Files\redis>redis-server--service-install redis.windows.conf
[6764] June 11:19:56.668 # granting Read/write access to ' NT AUTHORITY\NetworkService ' on: ' C:\Pro
Gram Files\redis "C:\Program files\redis\"
[6764] June 11:19:56.670 # Redis successfully installed as a service.
Tip The Windows Service was successfully installed, check the Windows service and confirm that Redis was installed successfully.
Start the Redis service
Execute redis-cli-h 127.0.0.1-p 6379 at the command line, login Redis
Double-click the Redis-cli.exe program to log on to the local Redis
Password settings
Open the redis.windows.conf file, find the line where Requirepass is located, cancel the previous # annotation, change the character after Requirepass to 123456, set the login request password, restart the Redis service to take effect
Login with Password
Redis-cli-h 127.0.0.1-p 6379-a 123456
Bind the IP address, open the configuration file, locate the BIND keyword, and enter the following
Bind 127.0.0.1 192.168.1.96
Restart the Redis service
so that you can access the Redis through 192.168 1.96来
redis-cli-h 192.168.1.96-p 6379-a 123456
C:\Pro Gram files\redis>redis-cli-h 192.168.1.96-p 6379-a 123456
192.168.1.96:6379>