Windows Redis Installation Test

Source: Internet
Author: User
Tags download redis install redis
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>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.