Redis deployment in a Windows environment

Source: Internet
Author: User
Tags redis desktop manager install redis

First, download

Website address: Http://redis.io/download

Git address: Https://github.com/MSOpenTech/redis

Note: There is no official Windows version, please download it on git If you need a version of Windows. The version that is used in this article is the GIT version.

Second, installation

Unzip the downloaded zip package to the specified directory, such as:

Third, start

Open the CMD Command window, locate only the Redis unzip directory, and execute the following command:

Redis-server redis.windows.conf

You may be prompted for memory setup errors, you need to set Redis maximum memory first.

In the redis.windows.conf file, locate the MaxMemory option, and uncomment and set the unit in bytes byte.

The Startup Success page is as follows:

Iv. deploying Redis as a Windows service

Execute the following command:

Installation: Redis-server--service-install redis.windows.conf

Start: Redis-server--service-start

Stop: Redis-server--service-stop

Uninstall: Redis-server--service-uninstall

V. Setting up a Redis password

Locate the Requirepass check in the redis.windows.conf file, clear the comment and set the password.

Login method:

1. Open REDIS-CLI, then use the auth command. Auth YourPassword

2. Specify password at login, redis-cli-a YourPassword

Vi. Client

Redis Desktop Manager, as follows:

Vii. turning off the Redis persistence feature

1, AOF

#关闭AOF
AppendOnly No
#打开AOF
AppendOnly Yes

2. RDB

You can disable RDB persistence by annotating all rows that begin with Save

#900秒后且至少1个key发生变化时创建快照
Save 900 1
#300秒后且至少10个key发生变化时创建快照
Save 300 10
#60秒后且至少10000个key发生变化时创建快照
Save 60 10000

Viii. Master/slave replication

Cond...

Nine, cluster

1. Redis Node creation
2. Ruby Installation
3. Gem Installation
4. Gem Redis Installation

5. Start each Redis node

6. Create a cluster via REDIS-TRIB.RB (e.g. redis-trib.rb create--replicas 1 127.0.0.1:7000 127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:7003 127.0.0.1:7004 127.0.0.1:7005)

As follows:

Reference article:

Http://keenwon.com/1275.html

http://blog.csdn.net/zyz511919766/article/details/42268219

http://blog.csdn.net/zyz511919766/article/details/42423051

Http://blog.nosqlfan.com/html/3813.html

http://doc.redisfans.com/

Redis deployment in a Windows environment

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.