Windows under Redis installation

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

1,redis official: Https://redis.io/download,redis 64-bit: Https://github.com/ServiceStack/redis-windows, I am testing using the redis-64.3.0.503 version.

2, decompression redis-64.3.0.503.zip, the file structure after decompression is as follows:

3, modify the redis.windows.conf file, set the MaxMemory size

Set up Redis password, no password by default

4, start Redis: command line Redis-server.exe redis.windows.conf, if the configuration file is not set, then the default is not required password

Test, successfully installed:

5. Join Redis to the services in Windows

installation command: Redis-server.exe--service-install redis.windows.conf--loglevel verbose Use the command, the installation succeeds, so:

Common Redis service commands.

Uninstall Service: Redis-server--service-uninstall

Open service: Redis-server--service-start

Stop service: Redis-server--service-stop

Rename Service: Redis-server--service-name Name

To rename a service, it needs to be written after the first three parameters, for example:

The following would install and start three separate instances of Redis as a service:   以下将会安装并启动三个不同的Redis实例作服务:redis-server --service-install --service-name redisService1 --port 10001redis-server --service-start --service-name redisService1redis-server --service-install --service-name redisService2 --port 10002redis-server --service-start --service-name redisService2redis-server --service-install --service-name redisService3 --port 10003redis-server --service-start --service-name redisService3
Four: Test start-up service

Redis-server--service-start

Client

Command:

精简模式:redis-cli.exe指定模式:redis-cli.exe -h 127.0.0.1 -p 6379 -a requirepass(-h 服务器地址  -p 指定端口号 -a 连接数据库的密码[可以在redis.windows.conf中配置],默认无密码)
Test read and write data

The installation test was successful.

V: the Desktop management tool recommended by Redis Desktop management tool: Redis Desktop Manager:
Https://redisdesktop.com/download

Windows under Redis installation

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.