How To Install Redis On Windows
The ServiceStack/redis-windows projection contains the binary releases of MS Open Tech redis port of windows as well equally 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 ofttimes useful for developers on Windows platforms to have their own local version of redis running to develop with.
The iii most pop means of running redis on windows is to apply the binary releases of Microsoft'southward native port of redis, simply as this is an unofficial port it e'er lags backside 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 y'all'll be able to run the official native version of redis.
Or if you lot have the latest version of Windows 10 you can install Fustigate on Ubuntu on Windows which will allow you lot run the official version of Redis on Ubuntu on Windows 😃 This is our preferred arroyo equally information technology lets yous 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)
- From Start, search for Turn Windows features on or off (blazon
plow) - Select Windows Subsystem for Linux (beta)
Once installed yous can run bash on Ubuntu by typing fustigate from a Windows Command Prompt. To install the latest version of Redis we first need to install some prerequisites:
$ sudo apt-become update $ sudo apt-become 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 lot need to copy them manually to /usr/bin (simply like described in the guide, except that they utilise /usr/local/bin - which is the trouble).
Yous'll then be able to launch redis with:
redis-server --daemonize yes
Which will run redis in the background freeing your shell so you lot can play with information technology using the redis client:
$ redis-cli $ 127.0.0.i:637 9> SET foo bar OK $ 127.0.0.1:637 9> Go foo "bar" Which y'all can connect to from inside fustigate or from your Windows desktop using the redis-cli native Windows binary from MSOpenTech.
Option 2) Running the latest version of Redis with Vagrant
-
Install Vagrant on Windows
-
Download the vagrant-redis.nix vagrant configuration
-
Extract
vagrant-redis.zipin whatever folder, due east.k. inc:\vagrant-redis -
Launch the Virtual Box VM with
vagrant up
$ cd c:\vagrant-redis $ vagrant upward This will launch a new Ubuntu VM example inside Virtual Box that volition automatically install and start the latest stable version of redis.
Option 3) Running Microsoft's native port of Redis
These 64-bit binary releases are created past building the Microsoft's native port of redis which take too been published on NuGet, simply every bit it'southward more convenient we provide a zip of the 64-bit binaries hither.
MS Open up Announcements
- MSOpenTech Redis on Windows 3.0 Release Notes
- MSOpenTech Redis on Windows two.eight Release Notes
- MSOpenTech'due south Redis on Windows
- Updates Released for Redis on Windows (ii.viii.4)
Current Version: 3.0.503 (June 28, 2016)
- Download the redis-latest.zero native 64bit Windows port of redis
-
Extract
redis64-latest.zipin any folder, e.g. inc:\redis -
Run the
redis-server.exeusing the local configuration
$ cd c:\redis $ redis-server.exe redis.windows.conf - Run
redis-cli.exeto connect to your redis instance
$ cd c:\redis $ redis-cli.exe - Commencement playing with redis 😃
redis 127.0.0.i:637 9> Fix foo bar OK redis 127.0.0.i:637 9> KEYS * one ) "foo" redis 127.0.0.1:637 ix> Become foo "bar" redis 127.0.0.i:637 nine> The MSOpenTech of Redis adds some useful extensions for meliorate 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 similar to alter its settings, you can update the redis.windows-service.conf file and so restart the Redis service (Run -> services.msc -> Redis -> Restart).
During installation of the MSI yous can either utilise the installer'southward 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 control line:
default install (port 6379 and firewall exception ON):
msiexec /i Redis-Windows-x64.msi
set port and plough OFF firewall exception:
msiexec /i Redis-Windows-x64.msi PORT=1234 ADD_FIREWALL_RULE=""
set port and plough 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 non install Redis using the MSI bundle, then you lot still run Redis equally a Windows service by following these instructions:
In order to improve integrate with the Windows Services model, new control line arguments have been introduced to Redis. These service arguments require an elevated user context in social club to connect to the service command 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 crusade a User Business relationship Command dialog to be displayed by Windows and may require Administrative user credentials in order to go on.
Installing the Service
This must be the outset 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 Potency\NetworkService". Upon successful installation, a success message will be displayed and Redis will go out.
This command does not start the service.
For instance:
redis-server --service-install redis.windows.conf --loglevel verbose
Uninstalling the Service
This will remove the Redis service configuration data from the registry. Upon successful uninstallation, a success message volition be displayed and Redis will exit. This does command not to stop the service.
For instance:
redis-server --service-uninstall
Starting the Service
This will outset the Redis service. Upon successful startup, a success message will be displayed and Redis service will be started.
For instance:
redis-server --service-outset
Stopping the Service
This will terminate the Redis service. Upon successful termination, a success bulletin volition exist displayed and Redis will exit.
For example:
redis-server --service-stop
Naming the Service
This optional argument may be used with any of the preceding commands to fix the proper noun of the installed service. This argument should follow the service-install, service-starting time, service-terminate or service-uninstall commands, and precede whatever arguments to be passed to Redis via the service-install command. The following would install and first 3 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-proper noun redisService2 –port 10002 $ redis-server --service-start –service-proper noun redisService2 $ redis-server --service-install –service-proper noun redisService3 –port 10003 $ redis-server --service-kickoff –service-proper name redisService3 Redis Vue
Redis Vue is a simple, lightweight, versatile Redis Admin UI developed using Vue and ServiceStack .Internet Cadre Web Apps. It supports Redis's core Strings, Lists, Sets, Sorted Sets and Hash data structures and custom Redis commands with its entire functionality independent in a unmarried /app/alphabetize.html using the dynamic ServiceStack Templates linguistic communication, making it easy to customize and farther enhance.
Live Demo - https://redis.web-app.io
Download for Windows, OSX and Linux https://github.com/NetCoreWebApps/Redis
Redis React Browser
Redis React is a unproblematic user-friendly UI for browsing data in Redis servers which takes advantages of the circuitous type conventions built in the ServiceStack.Redis Customer 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 Dwelling house Page
Configure Redis Sentinel Servers
Meet the redis config projection for a quick way to setup up the minimal highly bachelor Redis Lookout man configuration including start/stop scripts for instantly running multiple redis instances on a single (or multiple) Windows, OSX or Linux servers.
Source: https://docs.servicestack.net/install-redis-windows
Posted by: kirkbectence93.blogspot.com

0 Response to "How To Install Redis On Windows"
Post a Comment