How To Install Redis Locally
The ServiceStack/redis-windows project contains the binary releases of MS Open Tech redis port of windows also as a vagrant configuration for redis letting yous run the native version of Redis in a Virtual Box VM.
Whilst it's recommended to utilize Redis on Linux in product, information technology is frequently useful for developers on Windows platforms to take their ain local version of redis running to develop with.
The iii nearly pop 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.
Cheers to Vagrant yous can cull 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 take the latest version of Windows 10 you tin install Fustigate 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 i) Install Redis on Ubuntu on Windows
Install Windows Subsystem for Linux (WSL)
- From Start, search for Turn Windows features on or off (type
turn) - Select Windows Subsystem for Linux (beta)
Once installed you tin can run bash on Ubuntu by typing fustigate from a Windows Control Prompt. To install the latest version of Redis we first need to install some prerequisites:
$ sudo apt-get update $ sudo apt-become install brand $ sudo apt-get install gcc So follow the official installation guide to download, build and install the latest stable version. NOTE: Installing the binaries using make install volition not work. You demand to copy them manually to /usr/bin (merely similar described in the guide, except that they use /usr/local/bin - which is the problem).
You lot'll then exist able to launch redis with:
$ redis-server --daemonize yeah Which will run redis in the background freeing your beat out and then you can play with it using the redis client:
$ redis-cli $ 127.0.0.one:637 ix> Set up foo bar OK $ 127.0.0.1:637 ix> GET foo "bar" Which y'all can connect to from within 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.zip vagrant configuration
$ wget https://raw.github.com/ServiceStack/redis-windows/master/downloads/vagrant-redis.aught -
Extract
vagrant-redis.zipin any folder, eastward.g. inc:\vagrant-redis -
Launch the Virtual Box VM with
vagrant upward
$ cd c:\vagrant-redis $ vagrant up This will launch a new Ubuntu VM example within Virtual Box that will automatically install and start the latest stable version of redis.
Selection 3) Running Microsoft'south native port of Redis
These 64-chip binary releases are created past building the Microsoft'south native port of redis which have also been published on NuGet, but every bit it's more than convenient we provide a cypher of the 64-bit binaries hither.
MS Open Announcements
- MSOpenTech Redis on Windows 3.0 Release Notes
- MSOpenTech Redis on Windows 2.viii Release Notes
- MSOpenTech's Redis on Windows
- Updates Released for Redis on Windows (2.8.four)
Current Version: iii.0.503 (June 28, 2022)
- Download the redis-latest.cypher native 64bit Windows port of redis
$ wget https://github.com/ServiceStack/redis-windows/raw/master/downloads/redis-latest.nada -
Extract
redis64-latest.zilchin whatever folder, eastward.m. 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 - Start playing with redis 😃
redis 127.0.0.one:637 9> SET foo bar OK redis 127.0.0.i:637 ix> KEYS * 1 ) "foo" redis 127.0.0.1:637 9> GET foo "bar" redis 127.0.0.1:637 9> The MSOpenTech of Redis adds some useful extensions for better integration with Windows:
Running Redis as a Service
If you lot installed Redis using the MSI package, so Redis was already installed as a Windows service. Nothing further to do. If yous would similar to change its settings, you can update the redis.windows-service.conf file and 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 control 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 = "" ready 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, and so you still run Redis as a Windows service by following these instructions:
In order to ameliorate integrate with the Windows Services model, new command line arguments have been introduced to Redis. These service arguments crave an elevated user context in order to connect to the service control manager. If these commands are invoked from a not-elevated context, Redis will attempt to create an elevated context in which to execute these commands. This will cause a User Business relationship Control dialog to be displayed by Windows and may require Administrative user credentials in order to proceed.
Installing the Service
This must be the first argument on the redis-server command line. Arguments later this are passed in the order they occur to Redis when the service is launched. The service will be configured every bit Autostart and will be launched as "NT AUTHORITY\NetworkService". Upon successful installation, a success message will be displayed and Redis volition get out.
This command does not starting time the service.
For instance:
$ redis-server --service-install redis.windows.conf --loglevel verbose Uninstalling the Service
This volition 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
This will outset the Redis service. Upon successful startup, a success bulletin volition be displayed and Redis service volition be started.
For instance:
$ redis-server --service-start Stopping the Service
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
This optional argument may exist used with any of the preceding commands to prepare the name of the installed service. This argument should follow the service-install, service-start, service-stop or service-uninstall commands, and precede whatsoever arguments to be passed to Redis via the service-install command. The post-obit would install and kickoff 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-first –service-proper noun 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 .Internet Core Web Apps. It supports Redis's cadre 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 linguistic communication, making it easy to customize and farther enhance.
Alive Demo - https://redis.spider web-app.io
Download for Windows, OSX and Linux https://github.com/NetCoreWebApps/Redis
Redis React Browser
Redis React is a uncomplicated 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, homo-friendly UI for navigating related datasets, enabling a fast and fluid browsing feel for your Redis servers.
Live Demo
Windows, OSX and Linux downloads available from Redis React Dwelling house Folio
Configure Redis Sentinel Servers
See the redis config project for a quick way to setup upwards the minimal highly bachelor Redis Sentinel configuration including first/terminate 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: findleyshers1937.blogspot.com

0 Response to "How To Install Redis Locally"
Post a Comment