How do I run Redis on Windows?

2019-01-02 19:06发布

How do I run Redis on Windows? The Redis download page just seems to offer *nix options.

Can I run Redis natively on Windows?

标签: windows redis
27条回答
旧时光的记忆
2楼-- · 2019-01-02 19:23

Go to the releases and you can get a ZIP file containing the relevant files as well as a Word document called RedisService.docx with the following instructions:

Installing the Service

--service-install

This must be the first argument on the redis-server command line. Arguments after this are passed in the order they occur to Redis when the service is launched. The service will be configured as Autostart and will be launched as "NT AUTHORITY\NetworkService". Upon successful installation a success message will be displayed and Redis will exit. This command does not start the service.

For instance:

redis-server --service-install redis.windows.conf --loglevel verbose

And then later, in the same document, another example:

The following would install and start three separate instances of Redis as a service:

redis-server --service-install -–service-name redisService1 –port 10001

redis-server --service-start --service-name redisService1

redis-server --service-install --service-name redisService2 –port 10002

redis-server --service-start --service-name redisService2

redis-server --service-install --service-name redisService3 –port 10003

redis-server --service-start --service-name redisService3

From what I can gather, this appears to be the new way forward rather than messing with a separate Windows service to monitor and restart the CLI.

查看更多
栀子花@的思念
3楼-- · 2019-01-02 19:24

I don't run redis on windows. There's too much hassle involved in keeping up with the ports, and they lag behind redis-stable by a version or two all the time.

Instead I run redis on a Vagrant virtual machine that runs redis for me. I've bundled up the whole thing into a simple github repo so everyone can get in on the fun without too much hassle. The whole thing is an automated build so there's no mess. I blogged about the details here.

查看更多
只靠听说
4楼-- · 2019-01-02 19:24

enter image description hereenter image description hereenter image description here

VARY EASY:(NO ANY CAMMAN OR NOT GOING TO ANY LINK,ONLY FOLLOW THIS STEP ,FOR ALL VERSION)   
             FIRST INSTALL REDIS 
                -->>AFTER OPEN TASKBAR
                -->>OPEN SERVICE(taskbar service)
                -->>CHOOSE REDIS 
                -->>RIGTH CLICK ON REDIS SERVICE AND OPEN SERVICE(VIEW IMAGES) 
                -->>CLICK ON START OR RESTART.(ALSO SET AUTOSTART)
查看更多
梦该遗忘
5楼-- · 2019-01-02 19:26

I found one more simple way to install Redis under Windows

Download the latest Redis .msi file from

https://github.com/MSOpenTech/redis/releases

after installation. The redis service is installed, we can operate it from Service manager

enter image description here

查看更多
其实,你不懂
6楼-- · 2019-01-02 19:26

I think these is the two most simple ways to run Redis on Windows

1 - Native (and updated) port for Windows

As described here:

  1. Download the redis64-latest.zip native 64bit Windows port of redis

wget https://raw.github.com/ServiceStack/redis-windows/master/downloads/redis64-latest.zip

  1. Extract redis64-latest.zip in any folder, e.g. in c:\redis

  2. Run the redis-server.exe using the local configuration

cd c:\redis

redis-server.exe redis.conf

  1. Run redis-cli.exe to connect to your redis instance

cd c:\redis

redis-cli.exe

2 - With Vagrant

You can use Redis on Windows with Vagrant, as described here:

  1. Install Vagrant on Windows

  2. Download the vagrant-redis.zip vagrant configuration

    wget https://raw.github.com/ServiceStack/redis-windows/master/downloads/vagrant-redis.zip

  3. Extract vagrant-redis.zip in any folder, e.g. in c:\vagrant-redis

  4. Launch the Virtual Box VM with vagrant up:

    cd c:\vagrant-redis

    vagrant up

This will launch a new Ubuntu VM instance inside Virtual Box that will automatically install and start the latest stable version of redis.

查看更多
伤终究还是伤i
7楼-- · 2019-01-02 19:26

The redis version on windows was published by microsoft open tech team But recently this project has been archived to https://github.com/MicrosoftArchive/redis read-only and will not update. Has stopped development

查看更多
登录 后发表回答