• Stars
    star
    2,705
  • Rank 16,871 (Top 0.4 %)
  • Language
    Shell
  • Created about 11 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Vagrant redis configuration and the binary releases of MS Open Tech redis port of windows

Redis on Windows

This project contains the binary releases of MS Open Tech redis port of windows as well as a vagrant configuration for redis letting you run the native version of Redis in a Virtual Box VM.

Whilst it's recommended to use Redis on Linux in production, it is often useful for developers on Windows platforms to have their own local version of redis running to develop with.

The 3 most popular ways of running redis on windows is to use the binary releases of Microsoft's native port of redis, but as this is an unofficial port it always lags behind the latest official development of redis on Linux/OSX.

Thanks to Vagrant you can choose to run the latest linux version inside a Virtual Box Linux VM where you'll be able to run the official native version of redis.

Or if you have the latest version of Windows 10 you can install Bash on Ubuntu on Windows which will let you run the official version of Redis on Ubuntu on Windows :) This is our preferred approach as it lets you run native Ubuntu binaries on Windows more efficiently than running Linux in a VM:

Option 1) Install Redis on Ubuntu on Windows

Install Windows Subsystem for Linux (WSL)

  1. From Start, search for Turn Windows features on or off (type turn)
  2. Select Windows Subsystem for Linux (beta)

Once installed you can run bash on Ubuntu by typing bash from a Windows Command Prompt. To install the latest version of Redis we first need to install some prerequisites:

$ sudo apt-get update
$ sudo apt-get install make
$ sudo apt-get install gcc

Then follow the official installation guide to download, build and install the latest stable version. NOTE: Installing the binaries using make install will not work. You need to copy them manually to /usr/bin (just like described in the guide, except that they use /usr/local/bin - which is the problem).

You'll then be able to launch redis with:

$ redis-server --daemonize yes

Which will run redis in the background freeing your shell so you can play with it using the redis client:

$ redis-cli
$ 127.0.0.1:6379> SET foo bar
OK
$ 127.0.0.1:6379> GET foo
"bar"

Which you can connect to from within bash or from your Windows desktop using the redis-cli native Windows binary from MSOpenTech.

Option 2) Running the latest version of Redis with Vagrant

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.

The vagrant configuration was originally from JasonPunyon/redishobo and has been modified to use the latest stable release of Redis.

Option 3) Running Microsoft's native port of Redis

These 64-bit binary releases are created by building the Microsoft's native port of redis which have also been published on NuGet, but as it's more convenient we provide a zip of the 64-bit binaries here.

MS Open Announcements

Current Version: 3.0.503 (June 28, 2016)

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

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

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

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

cd c:\redis
redis-server.exe redis.windows.conf

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

cd c:\redis
redis-cli.exe

5. Start playing with redis :)

redis 127.0.0.1:6379> SET foo bar
OK
redis 127.0.0.1:6379> KEYS *
1) "foo"
redis 127.0.0.1:6379> GET foo
"bar"
redis 127.0.0.1:6379>

The MSOpenTech of Redis adds some useful extensions for better integration with Windows:

Running Redis as a Service

If you installed Redis using the MSI package, then Redis was already installed as a Windows service. Nothing further to do. If you would like to change its settings, you can update the redis.windows-service.conf file and then restart the Redis service (Run -> services.msc -> Redis -> Restart).

During installation of the MSI you can either use the installer’s user interface to update the port that Redis listens to and the firewall exception or run it silently without a UI. The following examples show how to install from the command line:

default install (port 6379 and firewall exception ON):

msiexec /i Redis-Windows-x64.msi 

set port and turn OFF firewall exception:

msiexec /i Redis-Windows-x64.msi PORT=1234 ADD_FIREWALL_RULE=""

set port and turn ON firewall exception:

msiexec /i Redis-Windows-x64.msi PORT=1234 ADD_FIREWALL_RULE =1

install with no user interface:

msiexec /quiet /i Redis-Windows-x64.msi

If you did not install Redis using the MSI package, then you still run Redis as a Windows service by following these instructions:

In order to better integrate with the Windows Services model, new command line arguments have been introduced to Redis. These service arguments require an elevated user context in order to connect to the service control manager. If these commands are invoked from a non-elevated context, Redis will attempt to create an elevated context in which to execute these commands. This will cause a User Account Control dialog to be displayed by Windows and may require Administrative user credentials in order to proceed.

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

Uninstalling the Service

--service-uninstall

This will remove the Redis service configuration information from the registry. Upon successful uninstallation, a success message will be displayed and Redis will exit. This does command not to stop the service.

For instance:

redis-server --service-uninstall

Starting the Service

--service-start

This will start the Redis service. Upon successful startup, a success message will be displayed and Redis service will be started.

For instance:

redis-server --service-start

Stopping the Service

--service-stop

This will stop the Redis service. Upon successful termination, a success message will be displayed and Redis will exit.

For instance:

redis-server --service-stop

Naming the Service

--service-name name

This optional argument may be used with any of the preceding commands to set the name of the installed service. This argument should follow the service-install, service-start, service-stop or service-uninstall commands, and precede any arguments to be passed to Redis via the service-install command. 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

Redis Vue

Redis Vue is a simple, lightweight, versatile Redis Admin UI developed using Vue and ServiceStack .NET Core Web Apps. It supports Redis's core Strings, Lists, Sets, Sorted Sets and Hash data structures and custom Redis commands with its entire functionality contained in a single /app/index.html using the dynamic ServiceStack Templates language, making it easy to customize and further enhance.

Live Demo - http://redis.web-app.io

Download for Windows, OSX and Linux https://github.com/NetCoreWebApps/Redis

Redis React Browser

Redis React is a simple user-friendly UI for browsing data in Redis servers which takes advantages of the complex type conventions built in the ServiceStack.Redis Client to provide a rich, human-friendly UI for navigating related datasets, enabling a fast and fluid browsing experience for your Redis servers.

Live Demo

Windows, OSX and Linux downloads available from Redis React Home Page

Configure Redis Sentinel Servers

Instant Redis Setup

See the redis config project for a quick way to setup up the minimal highly available Redis Sentinel configuration including start/stop scripts for instantly running multiple redis instances on a single (or multiple) Windows, OSX or Linux servers.

More Repositories

1

ServiceStack

Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all
C#
5,367
star
2

ServiceStack.Redis

.NET's leading C# Redis Client
C#
2,290
star
3

ServiceStack.OrmLite

Fast, Simple, Typed ORM for .NET
C#
1,526
star
4

ServiceStack.Text

.NET's fastest JSON, JSV and CSV Text Serializers
C#
1,220
star
5

ServiceStack.Examples

Example Projects built with ServiceStack, C# RedisClient, OrmLite, etc
HTML
327
star
6

Bundler

Compile & Minify Less/Sass/Stylus/Css/JS/CoffeeScript/LiveScript files. Integrates with MVC and ServiceStack
JavaScript
263
star
7

Stripe

Typed .NET clients for stripe.com REST APIs
C#
194
star
8

ServiceStackVS

ServiceStackVS - Visual Studio extension for ServiceStack
C#
119
star
9

redis-config

Configuration, scripts and docs for setting up redis servers and sentinels in popular configurations
Batchfile
102
star
10

Gistlyn

Run Roslyn Gists
TypeScript
82
star
11

ServiceStack.UseCases

Repository contains the projects with common use cases for ServiceStack.
C#
64
star
12

rabbitmq-windows

Installation and configuration instructions for installing Rabbit MQ on windows
C#
60
star
13

Admin

AutoQuery + Admin UI for ServiceStack Projects
C#
50
star
14

ServiceStack.Gap

Creating cross-platform Native Desktop apps with ServiceStack
JavaScript
45
star
15

PocoDynamo

C# .NET Typed POCO Client for AWS Dynamo DB
40
star
16

docs

Home of ServiceStack documentation.
JavaScript
38
star
17

ServiceStack.Aws

ServiceStack adapters and bindings for AWS backend services
C#
32
star
18

ServiceStack.Extras

Related but non-critical resources for the ServiceStack project
JavaScript
26
star
19

dotnet-app

ServiceStack app and web tools for developing ServiceStack's .NET Core Web Apps
C#
23
star
20

servicestack-client

ServiceStack Service Client, Server Events and validation library
TypeScript
20
star
21

Test

Test ServiceStack Services, Features and DTO's
JavaScript
15
star
22

Issues

Issue Tracker for the commercial versions of ServiceStack
11
star
23

ServiceStack.CefGlue

CefGlue bindings for .NET Standard 2.0
C#
11
star
24

MonoTouch.Examples

ServiceStack examples with MonoTouch
C#
11
star
25

Discuss

GitHub Discussions for ServiceStack
11
star
26

ServiceStack.Java

ServiceStack Java Libraries and Apps
Java
10
star
27

servicestack-dart

Dart servicestack client pub
Dart
9
star
28

servicestack-editor

ServiceStack Markdown Editor for Vuetify
Vue
9
star
29

ServiceStack.Swift

Swift support used in ServiceStack
Swift
9
star
30

ServiceStack.Azure

ServiceStack adapters and bindings for Azure backend services
C#
9
star
31

script-unity

Script Unity 3D objects from a #Script Lisp REPL
C#
7
star
32

Studio

ServiceStack Studio
TypeScript
7
star
33

Templates

Popular starting templates and configurations for ServiceStack
JavaScript
6
star
34

servicestack-vue2

Vue controls for ServiceStack Apps
Vue
6
star
35

vuedesktop.com

vuedesktop.com
JavaScript
6
star
36

images

Collection of free images and resources for Websites and Apps
JavaScript
6
star
37

Assets

Image and Web assets used in Docs and Demos
CSS
6
star
38

docs.servicestack.net

ServiceStack Docs built with Razor SSG
JavaScript
5
star
39

servicestack-cli

node.js command-line utilities for ServiceStack
TypeScript
4
star
40

servicestack-vue

Vue3 Tailwind Components
JavaScript
4
star
41

servicestack-angular

Angular controls for ServiceStack Apps
TypeScript
4
star
42

gulp-msdeploy

gulp wrapper for msdeploy
JavaScript
4
star
43

AutoQueryViewer

Back-end services used by AutoQuery Viewer
C#
4
star
44

protoc-api

HTTP API for generating gRPC clients using protoc
C#
3
star
45

servicestack.net

servicestack.net website
JavaScript
3
star
46

ss-utils

npm package for ss-utils.js
JavaScript
3
star
47

servicestack-python

Python ServiceStack Client
Python
3
star
48

WebWin

.NET Core 2.1 Self-Contained Cef Binaries (Windows 64)
2
star
49

Web

Binaries for ServiceStack .NET Core 2.1 Web Apps
2
star
50

jupyter-notebooks

Examples of ServiceStack Jupyter Notebooks
Jupyter Notebook
2
star
51

locode

Locode website
Vue
2
star
52

gistcafe-dart

gist.cafe utils for Dart
Dart
2
star
53

servicestack-react

React controls for ServiceStack Apps
TypeScript
2
star
54

apps

apps.cafe
C#
1
star
55

mix

Maintain web mix gists
C#
1
star
56

vite-plugin-press

Static markdown content for creating blogs, videos
TypeScript
1
star
57

gistcafe-kotlin

gist.cafe utils for Kotlin
Kotlin
1
star
58

ServiceStackIDEA

Jetbrains IDE plugin for ServiceStack
Java
1
star
59

vitepress-docs

C#
1
star
60

gistcafe-deno

gist.cafe utils for Deno
TypeScript
1
star
61

pvq.app

pvq.app website
JavaScript
1
star
62

press-react

Vite React TypeScript Web App with Press Plugin
TypeScript
1
star