Use Redis on Windows for development
Redis is not officially supported on Windows. However, you can install Redis on Windows for development by following the instructions below.
To install Redis on Windows, you’ll first need to enable WSL2 (Windows Subsystem for Linux). WSL2 lets you run Linux binaries natively on Windows. For this method to work, you’ll need to be running Windows 10 version 2004 and higher or Windows 11.
Install or enable WSL2
Microsoft provides detailed instructions for installing WSL. Follow these instructions, and take note of the default Linux distribution it installs. This guide assumes Ubuntu.
Install Redis
Once you’re running Ubuntu on Windows, you can follow the steps detailed at Install on Ubuntu/Debian to install recent stable versions of Redis from the official packages.redis.io
APT repository.
Add the repository to the apt
index, update it, and then install:
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
sudo apt-get update
sudo apt-get install redis
Lastly, start the Redis server like so:
sudo service redis-server start
Connect to Redis
You can test that your Redis server is running by connecting with the Redis CLI:
redis-cli
127.0.0.1:6379> ping
PONG
How do I run Redis on Windows? The Redis download page just seems to offer *nix options.
Can I run Redis natively on Windows?
asked Jun 25, 2011 at 9:23
11
Historically, Microsoft had a Windows port of redis, which was released as Redis-64, which offers a full distribution of redis for Windows.
The Microsoft port is now deprecated, but some alternatives have sprung up to fill that void:
- Memurai is the alternative officially recommended on the Redis-64 deprecation page; it is a commercial offering with free developer tier, maintained by Janea Systems
- redis-windows is another unofficial port, which also exists
This release includes the redis-server.exe
(memurai.exe
on Memurai) application that runs a Redis instance as a service on your windows machine, as well as redis-cli.exe
(memurai-cli.exe
on Memurai) which you can use to interact with any Redis instance.
The RGL repository has historically been listed as an alternative Windows port for Redis, but this repository has not been maintained for some time and implements an older version of Redis than the Microsoft port.
Marc Gravell
1.0m260 gold badges2530 silver badges2876 bronze badges
answered May 9, 2012 at 22:47
sergserg
108k77 gold badges313 silver badges329 bronze badges
5
Update
If you have Windows Subsystem for Linux (WSL)
, natively on Windows 10 and Windows Server 2019 you can do it per
Ogglas answer
Or follow these instructions to run a Redis database on Microsoft Windows
-
- Turn on Windows Subsystem for Linux
In Windows 10, Microsoft replaced Command Prompt with PowerShell as the default shell. Open PowerShell as Administrator and run this command to enable Windows Subsystem for Linux (WSL):
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Reboot Windows after making the change — note that you only need to do this once.
-
- Launch Microsoft Windows Store
start ms-windows-store:
Then search for
Ubuntu
, or your preferred distribution of Linux, and download the latest version. -
- Install Redis server
Installing Redis is simple and straightforward. The following example works with Ubuntu (you’ll need to wait for initialization and create a login upon first use):
sudo apt-add-repository ppa:redislabs/redis sudo apt-get update sudo apt-get upgrade sudo apt-get install redis-server
Please note that the
sudo
command might or mightn’t be required based on the user configuration of your system. -
- Restart the Redis server
Restart the Redis server as follows:
sudo service redis-server restart
-
- Verify if your Redis server is running
Use the redis-cli command to test connectivity to the Redis database.
$ redis-cli 127.0.0.1:6379> set user:1 "Ben" 127.0.0.1:6379> get user:1 "Ben"
Please note: By default, Redis has 0-15 indexes for databases, you can change that number of databases NUMBER in
redis.conf
. -
- Stop the Redis Server
sudo service redis-server stop
Source :How to Install Redis on Windows
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, and we can operate it from Service manager
answered Aug 28, 2015 at 6:58
zangwzangw
41.2k19 gold badges162 silver badges198 bronze badges
7
If you want to install MSOpenTech’s latest port of Redis, on a Windows server, watched over by a Windows Service, without having to build anything yourself, read on.
MSOpenTech’s seems to be the only port that is actively trying to keep up with the latest and greatest Redis. They claim it is production-ready, but they haven’t exactly packaged it up neatly for installation on a server, especially if you want to run their RedisWatcher service to keep an eye on it, which is recommended. (I tried building RedisWatcher myself per their instructions, but the required Wix Toolset managed to mess up my system pretty good. I won’t go into it.) Fortunately they’ve provided all the binaries you need, just not all in one place. From the README:
So far the RedisWatcher is not carried over to 2.6. However this
should not be affected by the Redis version, and the code in the 2.4
branch should work with the Redis 2.6 binaries.
So you’ll need to download binaries from 2 branches in order to get all the necessary bits. Without further ado, here are the steps:
- Download and extract the Redis binaries from the 2.6 branch
- Copy all extracted binaries to c:redisbin
- Create another folder at c:redisinst1
- Download and extract the RedisWatcher binaries from the 2.4 branch
- Run InstallWatcher.msi. This should create a Windows service called Redis watcher.
- Open up the Windows Services console and start the Redis watcher service.
- (optional) RedisWatcher should have installed to C:Program Files (x86)RedisWatcher. There you’ll find a config file called watcher.conf, which you can edit to set up additional instances, use different paths than I specified in steps 2 & 3, etc. You will not need to restart the service for changes to take effect.
answered Nov 25, 2013 at 18:00
Todd MenierTodd Menier
36.6k16 gold badges146 silver badges167 bronze badges
5
The most updated (only few minor releases behind) version of Redis can be found here. This repository provides you with 3.2.100 version (current is 3.2) whereas the most upvoted answer gives you only 2.4.6 version and the last update to the repo was 2 years ago.
The installation is straightforward: just copy everything from the archive to any folder and run redis-server.exe to run the server and redis-cli.exe to connect to this server through the shell.
answered Oct 25, 2013 at 1:27
Salvador DaliSalvador Dali
209k145 gold badges690 silver badges749 bronze badges
7
answered Mar 28, 2017 at 10:21
awebartisanawebartisan
1,40416 silver badges26 bronze badges
5
If you have Windows Subsystem for Linux (WSL)
, natively on Windows 10 and Windows Server 2019 you can do it like this:
Set up WSL:
-
To enable Windows Subsystem for Linux, follow the instructions on
Microsoft Docs. The short version is: In Windows 10, Microsoft
replaces Command Prompt with PowerShell as the default shell. Open
PowerShell as Administrator and run this command to enable Windows
Subsystem for Linux (WSL):Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
-
Reboot Windows after making the change—note that you only need to do this one time.
-
Download and install one of the supported Linux distros from the Microsoft Store. Ubuntu works fine.
Note thatUbuntu 20.04 LTS
may give you some trouble because of a known issue with the realtime clock (as of August 2020). ChoosingUbuntu 18.04 LTS
instead avoids that issue.
Install and Test Redis:
-
Launch the installed distro from your Windows Store and then install redis-server. The following example works with Ubuntu (you’ll need to wait for initialization and create a login upon first use):
> sudo apt-get update > sudo apt-get upgrade > sudo apt-get install redis-server > redis-cli -v
-
Restart the Redis server to make sure it is running:
> sudo service redis-server restart
-
Execute a simple Redis command to verify your Redis server is
running and available:$ redis-cli 127.0.0.1:6379> set user:1 "Oscar" 127.0.0.1:6379> get user:1 "Oscar"
-
To stop your Redis server:
> sudo service redis-server stop
Source:
https://redislabs.com/blog/redis-on-windows-10/
https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux
Carsten
2,0271 gold badge20 silver badges44 bronze badges
answered Nov 14, 2019 at 9:58
OgglasOgglas
57.2k33 gold badges311 silver badges391 bronze badges
7
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 AUTHORITYNetworkService». 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.
answered Jun 4, 2014 at 20:04
bbrownbbrown
6,3505 gold badges37 silver badges43 bronze badges
6
Download redis from
Download Redis for windows
- Then install it
- open cmd with admin rights
- run command
net start redis
Thats it.
answered Nov 22, 2013 at 19:33
GuruGuru
6446 silver badges18 bronze badges
1
MS Open Tech recently made a version of Redis available for download on Github. They say that it isn’t production ready yet, but keep an eye on it.
Github repo
Download releases as MSIs
jevon
3,1383 gold badges32 silver badges40 bronze badges
answered Apr 27, 2012 at 4:07
JesseBueskingJesseBuesking
6,4183 gold badges43 silver badges88 bronze badges
5
You can use Memurai for Windows, a Redis-compatible cache and datastore for Windows, currently compatible with Redis 5. Memurai aims to fulfill the need for a supported Redis-compatible datastore on the Windows platform. At its core, it’s based on Redis source code, ported to run natively on Windows, and it’s designed to provide the level of reliability and performance required for production environments. Memurai is free for development and testing. You can learn more and download Memurai at https://www.memurai.com.
Alexis Campailla
CEO, Memurai
answered May 15, 2019 at 1:11
4
There are two ways. You can use MSI installation file or do it manually:
First download the msi or the zip file:
You can download both files from here:
https://github.com/MicrosoftArchive/redis/releases
Watch video tutorial (video covers example of both installations)
See this installation video tutorial: https://www.youtube.com/watch?v=ncFhlv-gBXQ
Instruction — for those who can not YT at work:
You can download a moderately out-of-date precompiled version of Redis for 32-bit
and 64-bit Windows thanks to Dusan Majkic from his GitHub page: https://github.com/dmajkic/redis/downloads. Go ahead and do that now.
After you download Redis, you’ll need to extract the executables from the zip file.
As long as you’re using a version of Windows more recent than Windows XP, you
should be able to extract Redis without any additional software. Do that now.
After you’ve extracted either the 32- or 64-bit version of Redis to a location of your
choice (depending on your platform and preferences; remember that 64-bit Windows
can run 32- or 64-bit Redis, but 32-bit Windows can only run 32-bit Redis), you can
start Redis by double-clicking on the redis-server executable. After Redis has
started, you should see a window similar to figure A.1.
src: https://redis.com/ebook/appendix-a/a-3-installing-on-windows/a-3-2-installing-redis-on-window/
answered Nov 27, 2017 at 3:18
DevWLDevWL
16.4k6 gold badges88 silver badges83 bronze badges
3
Since MSOpenTech’s port of Redis is no longer maintained — anyone interested in native port of Redis for Windows can now get the version 4.0.14 and 5.0.10 from here: https://github.com/tporadowski/redis/releases.
This fork is a merge of latest 3.2.100 version from MSOpenTech and 4.0.14/5.0.10 from antirez/redis with a couple of bugfixes.
answered Apr 12, 2018 at 8:19
1
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.
koppor
18.3k15 gold badges117 silver badges155 bronze badges
answered Jan 29, 2013 at 16:23
Jason PunyonJason Punyon
38.6k12 gold badges96 silver badges121 bronze badges
3
To install Redis on Windows system follow the below steps:
- Visit one of the below link:
https://github.com/MSOpenTech/redis/releases (recommended)
https://github.com/rgl/redis/downloads
- Download MSI file.
- Follow the installation Wizard and install the program on your system. (do not change the installation path that is «C:Program FilesRedis»)
- Search for «Edit system environment variable» on your start menu
- Click on «Environment Variable» button
- Select «Path» and click on «Edit»
- Now click on «New»
- Paste C:Program FilesRedis (or the path in case you have changed while installing)
- Click on «Okay», «Okay» and «Okay»
Now open your Terminal (command prompt) and run redis-cli
Well I am getting some error to open redis-server
(It was working fine till now but not sure what’s wrong so figuring out and will update this answer)
answered Jan 8, 2021 at 11:59
2
I think these is the two most simple ways to run Redis on Windows
1 — Native (and updated) port for Windows
As described here on Option 3) Running Microsoft’s native port of Redis:
- Download the redis-latest.zip native 64bit Windows port of redis
wget https://github.com/ServiceStack/redis-windows/raw/master/downloads/redis-latest.zip
Extract redis64-latest.zip in any folder, e.g. in c:redis
Run the redis-server.exe using the local configuration
cd c:redis
redis-server.exe redis.conf
- 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:
Install Vagrant on Windows
Download the vagrant-redis.zip vagrant configuration
wget https://raw.github.com/ServiceStack/redis-windows/master/downloads/vagrant-redis.zip
Extract vagrant-redis.zip in any folder, e.g. in c:vagrant-redis
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.
answered Jun 22, 2015 at 13:04
DherikDherik
16.9k11 gold badges116 silver badges158 bronze badges
2
If you’re happy with a bit of Powershell, you can also get very up-to-date Windows binaries using Powershell and chocolatey.
First, add chocolatey to Powershell following the instructions here (one simple command line as admin): https://chocolatey.org/
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%chocolateybin
Then, use Powershell to get the redis package from chocolatey: http://chocolatey.org/packages/redis-64
choco install redis-64
Redis will be installed in something like C:ProgramDatachocolateylibredis-64.2.8.9
Windows PowerShell Copyright (C) 2013 Microsoft Corporation. All
rights reserved.PS C:windowssystem32> choco install redis-64 Chocolatey (v0.9.8.27)
is installing ‘redis-64’ and dependencies. By installing you accept
the license for ‘redis-64’ an d each dependency you are installing.redis-64 v2.8.9 Added
C:ProgramDatachocolateybinredis-benchmark.exe shim pointed to
‘..libredis-64.2.8.9redis-benchmark.exe’. Added
C:ProgramDatachocolateybinredis-check-aof.exe shim pointed to
‘..libredis-64.2.8.9redis-check-aof.exe’. Added
C:ProgramDatachocolateybinredis-check-dump.exe shim pointed to
‘..libredis-64.2.8.9redis-check-dump.exe’. Added
C:ProgramDatachocolateybinredis-cli.exe shim pointed to
‘..libredis-64.2.8.9redis-cli.exe’. Added
C:ProgramDatachocolateybinredis-server.exe shim pointed to
‘..libredis-64.2.8.9redis-server.exe’. Finished installing
‘redis-64’ and dependencies — if errors not shown in console, none
detected. Check log for errors if unsure
Then run the server with
redis-server
Or the CLI with
redis-cli
Follow the instructions in C:ProgramDatachocolateylibredis-64.2.8.9RedisService.docx to install the redis service
Chloe
24.3k38 gold badges175 silver badges346 bronze badges
answered Aug 12, 2014 at 5:37
user783836user783836
2,9192 gold badges28 silver badges32 bronze badges
One of the most easy way to run Redis on windows host is to use Docker Redis container. Just fire up Hyper-V, Download Docker and run Redis
answered Jan 15, 2018 at 19:54
DzintarsDzintars
1,30020 silver badges27 bronze badges
I am using Memurai which is Redis-compatible cache and datastore for Windows. It is also recommended by Microsoft open tech as it written on their former project here.
This project is no longer being actively maintained. If you are
looking for a Windows version of Redis, you may want to check out
Memurai. Please note that Microsoft is not officially endorsing this
product in any way.
answered Jul 31, 2019 at 11:27
NuxNux
4,1509 gold badges42 silver badges67 bronze badges
Using Windows 10?
https://learn.microsoft.com/en-us/windows/wsl/install-win10
/etc/apt/sources.list
(Debian 10 Buster/Bullseye)
Installs latest stable Redis (5.0.6 at time of posting)
deb https://deb.debian.org/debian bullseye main
deb https://deb.debian.org/debian bullseye-updates main
deb http://security.debian.org/debian-security/ buster/updates main
deb http://ftp.debian.org/debian bullseye-backports main
apt install redis-server
answered Aug 22, 2019 at 13:21
buycanna.iobuycanna.io
1,15616 silver badges18 bronze badges
Today I know these 4 options:
The first is an open source fork that is on tporadowski/redis that offers compatibility with version 5 (version 6 in development).
The second is memurai (paid), compatible with version 5, has support and a free version for development.
The third is the zkteco-home/redis-windows recently, which offers compatibility with version 7, but is not open source.
There is also the option to run via WSL. But I don’t recommend it in production environments.
answered May 11, 2021 at 13:55
You can try out baboonstack, which includes redis and also a node.js and mongoDB version manager. And it’s cross platform.
answered Sep 2, 2014 at 19:51
4kochi4kochi
1182 silver badges5 bronze badges
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
answered Sep 25, 2017 at 1:58
Dan NguyenDan Nguyen
1,2806 silver badges16 bronze badges
Here are my steps to install Redis 4.0.8 on Windows 10 Pro (1709) via Windows Subsystem for Linux:
in home/user/
01 wget http://download.redis.io/releases/redis-4.0.8.tar.gz
02 tar xzf redis-4.0.8.tar.gz
03 cd redis-4.0.8/
04 sudo apt-get install make
05 sudo apt-get update
06 sudo apt-get install gcc
07 cd deps
08 make hiredis jemalloc linenoise lua geohash-int
09 cd ..
10 make
You can skip several steps if you have an up-to-date environment.
answered Feb 10, 2018 at 18:00
5
You can go through the below steps and get setup redis in windows.
-
Download the Redis zip file. Click here!
-
Extract the zip file to the prepared directory.
-
Run redis-server.exe, you can either directly run redis-server.exe by clicking or run via command prompt.
- Run redis-cli.exe, after successfully running the redis-server. You can access it and test commands by running redis-cli.exe Test
PING command is used to test if a connection is still alive.
answered Oct 17, 2020 at 7:14
1
Reading about some users running Redis in a VM, it brought to my mind the recommendations from Redis team :
Redis runs slower on a VM. Virtualization toll is quite high because for many common operations. (…) Prefer to run Redis on a physical box, especially if you favor deterministic latencies. On a state-of-the-art hypervisor (VMWare), result of redis-benchmark on a VM through the physical network is almost divided by 2 compared to the physical machine, with some significant CPU time spent in system and interruptions.
answered Nov 22, 2013 at 9:30
PedroPedro
517 bronze badges
Redis is a database system for storing and retrieving data, which supports many types of data such as strings, hashes, sets, sorted sets, and more. Basically, Redis is a repository of key values. Any value inside Redis is storing against a key that is binary secure. This value can be anything from an empty string to a long hash string. Each program must support a pre-designed map to name the Redis keys, to prevent any naming congestion. In this article, we are going to teach you about Tutorial Setup and run Redis on Windows 10. If you want to Get a Windows VPS server, you can see the packages available in Eldernode.
Redis stands for Remote Dictionary Server. This tool is a type of data structure that is storing in RAM and where information is temporarily stored. In the next section, we will fully introduce you to Redis. Then we will teach you how to Setup and run Redis on Windows 10. Join us, please.
Introduction to Redis
Redis stores data with a key-value system and thanks to this feature, access to and retrieval of this information will be much easier since there is no complex relationship between the data.
Key-Value is a type of server or storage location where information is stored in pairs of keys and values. For example, if I say Name=Michael, my key becomes Name and its value becomes Michael. In Redis, information is storing in the same way. Redis is a key-value database that stores information in RAM. So the speed of access to information will usually be multiplied.
Redis is quite different from databases like MySQL and Oracle; Because it does not contain columns, rows, tables, functions, etc. It should note that Redis does not use the Select, Insert, Update and Delete commands either. Instead, Redis uses data structures such as String, Lists, Sets, Hashes, and so on to sort information.
Redis is easy to use, and this feature has led many developers to use it. But the benefits of Redis do not end there. Here are some examples of the important benefits of Redis:
1. High speed: The strength of Redis is the high speed of this technology. Since it is written in C, we see a significant increase in speed in Redis.
2. Structure similar to the NoSQL database: The Redis structure is known as a NoSQL database, and this feature has made it popular among developers. Redis also has a data structure in memory. This means that it stores data in RAM using random memory.
3. Reduce costs: With Redis, you save fewer resources on the server and reduce the need to provide costly infrastructure.
4. Support for various programming languages: Redis supports most of the world’s leading programming languages. Languages such as JavaScript, Java, Go, C, C++, C#, Python, Objective C, and PHP are well compatible with Redis, and Redis can be said to meet the needs of a wide range of developers.
Install and Setup Redis on Windows 10
After getting acquainted with Redis, in this section, we are going to teach you step by step How to Setup Redis on Windows 10. To do this, just follow the steps below.
The first step is to download the .zip or .msi file. The difference between a zip file and an MSI file is that in the ZIP file you have to add the environment variables manually while the MSI file is an installer and it does this for you automatically.
Note: In this tutorial, we will do the installation using the zip file.
Then in the next step, you need to extract the ZIP File. We recommend that you create a new folder called “Redis” and extract the ZIP file in it. There are two important files in this folder that you should look for. One is the Redis-server.exe file, which runs the Redis server, and the other is Redis-cli.exe, which enables you to interact with the server.
At this point, you should start the Redis server by double-clicking on Redis-server.exe.
How to Run Redis on Windows 10
Note that Redis Server runs on port 6379 by default. Now it’s time to open Redis-cli and connect to the server. Double-click Redis-cli.exe to start the client interface.
As you can see in the image above, Redis works in Windows 10. You do not have to refer to this list every time you run Redis. So you have to add the Redis-server and Redis-CLI path to the windows environment variable. By doing this, you will communicate via the command line. To add Redis Path to Windows 10 Environment Variable you must follow the steps below.
You must first right-click on the This PC icon. Then go to Properties. You can also do this by going to Control PanelAll Control Panel ItemsSystem.
Now in the System Variables section, double-click on the PATH variable and add the Redis folder path.
Finally, to test, you can open the Command Prompt and run the following command:
redis-server
redis-cli
Conclusion
In this article, we tried to introduce you to the concept of Redis in the first part. Then in the next section, we tried to teach you to step by step how to Setup and run Redis on Windows 10. You can refer to the article How to install and Secure Redis on Debian 10 and Ubuntu 20.04 if you wish.
В этой очень короткой статье вы прочитает, как установить Redis на Windows 10, также инструкция подойдёт начиная с Windows 7.
Также, если вы не знаете что это такое, то посмотрите статью: «Что такое Redis».
Скачиваем Redis:
Перед тем как установить, нужна скачать msi файл с Redis, для этого перейдите на GitHub, спуститесь чуть ниже, до версии 3.0.504, и там скачиваем файл с названием «Redis-x64-3.0.504.msi».
На этом скачивание закончилось.
Установка Redis:
Теперь перейдём к самой установки, для этого открываем файл, который скачали, тем везде нажимаем «next», патом вам дадут выбрать папку, куда устанавливать, выбираете, и самое главное для удобства выбираем галочку, она нужна, что бы c Redis с командной строки.
Нажимаем «Next», потом вам даёт выбрать порт подключения по умолчанию, я рекомендую не чего не менять, хотя вам возможно что то нужно.
После этого нажимаете «Next», у вас всё установится и всё, перезагрузите компьютер.
Вывод:
В этой очень короткой статье было показано как установить Redis на Windows 10, также инструкция подойдёт начиная с Windows 7.
Подписываетесь на соц-сети:
Оценка:
Загрузка…
Также рекомендую:
This blog’s primary focus is to discuss How to install Redis on Windows 10? Before addressing the main question, let’s first take a brief look on what is Redis.
What is Redis?
Redis full form is Remote Directory Server. Redis is a NO-SQL in-memory remote database that offers high performance, replication, and a unique data model.
Now when we have a brief idea of what Redis is, let’s see how we can install Redis on windows 10.
Redis was not developed for windows and thus a team of Microsoft handles the task to make it available to us.
How to install Redis on Windows 10
Follow the steps as shown to properly install Redis on Windows 10.
Step 1: Download .zip or .msi file
As told earlier, Redis is not available on windows but Microsoft makes it available for the Windows users.
Go to https://github.com/microsoftarchive/redis/releases to Download .zip
or .msi
file.
The ZIP file will require you to add the environment variables manually while the MSI file is an installer and will do it automatically for you.
In this blog, I will show you both the process. Starting with the ZIP File.
Make sure you get the latest release and not the pre-release, as shown by the mouse pointer on the picture.
Step 2: Extract the ZIP File
Create a new folder named “Redis” and extract the ZIP file into it. Name of the folder is up to you but it is good to follow the conventions.
After Extracting the ZIP you will see files of the Redis.
Two important files in this folder is redis-server.exe which will run the redis server and the redis-cli.exe which will enable us to interact with the server.
Let’s start the redis-server by double clicking the redis-server.exe.
By Default Redis Server runs on the port 6379.
Let’s Open the redis-cli and interact with the server.
Double click the redis-cli.exe to start the client interface.
The above image shows the interaction with the Redis Server.
This shows that the Redis is working in Windows 10, but we don’t want to come to this directory every time we want to work with Redis. To Solve this we will add the Redis-server and Redis-CLI path to the windows environment variable to interact with it using the command prompt.
Step 3: Move the Redis Folder to C Drive (Optional)
By Default the Redis folder will be downloaded on the Download folder of the windows. Then we created a folder and extracted the ZIP file into it.
It may happen that we accidently delete the Redis folder and the system will not find the path to open the Redis-Server and Redis-CLI.
So, it will be a good choice if we move our Redis folder to the Root of the C Drive.
Step 3: Add Redis Path to Windows 10 Environment Variable
Right Click to the My Computer (This PC in Windows 10) icon and go to properties or move to Control PanelAll Control Panel ItemsSystem. Then go to Advanced System Settings > Environment Variables.
On the System Variables section, double click on the PATH variable and add the path of redis folder.
To test the path has been successfully added or not.
Open the Command Prompt and write command:
> redis-server
Bash/Shell
> redis-cli
Bash/Shell
Now let’s look at how we can install the Redis using MSI Installer on Windows 10.
Installing Redis using MSI on Windows 10
MSI is an installer and the automatic process for adding the path to environment variables.
Just remember to check the tick box that says add to the environment variable. and you keep the rest as default. Redis will be successfully installed on your Windows 10 system.
One thing to know that, When you choose the MSI Installer the redis-server will automatically run in the background when the system starts. you just have to connect to the server using the redis-cli from the CMD.
Hope you like it!
Learn Python OpenCV, Golang, Go Web Development and many more form this site.
While the audience of our application is increasing rapidly, it requires more requests to the database. But each request to the database needs a sufficient amount of time. Sometimes we also need to pay more for the requests to the database. So we need to decrease the request to the database in possible situations. Redis is the solution for this. Here we will discuss the steps to run Redis on our Windows 10 system.
What is Redis?
Redis is an open-source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker. It supports various data structures such as Strings, Hashes, Lists, Sets, etc.
In simple words, we can store the data from our database in our backend storage as a cache. Afterward, this data is served to our front-end for the same API request through a specific amount of time period.
Redis is made using ANSI C programing language and it uses NoSQL structure to store data which makes it more popular nowadays.
Currently, tech giants like GitHub, Weibo, Pinterest, Snapchat, Craigslist, Digg, StackOverflow, Flickr, etc. are using Redis. So we can trust Redis in using within our application.
Is Redis Compatible with Windows 10?
Redis is made for work with servers. POSIX systems like Linux, *BSD, OS X without external dependencies and is not compatible with Windows systems because Windows servers are not using widely.
But if we are developing an application using Redis on a Windows system, Running Redis in our system is necessary.
So here in this tutorial, we are going to explain the steps to run Redis on a Windows 10 system.
1. Install Ubuntu on Windows 10
We have already told that Redis is not developed to work within Windows systems because Windows servers not using widely. So it requires a Unix-based operating system like Ubuntu, or macOS to run the Redis server.
macOS can only be installed on Windows 10 using Virtualbox and it’s most complicated. But Ubuntu can easily install within our Windows 10 operating system easily because it’s available in the Microsoft store.
We can simply install the LTS version of Ubuntu from the Microsoft store using the link below.
Get Ubuntu 20.04 LTS for Windows 10
Ubuntu is not mandatory to set up the Redis server. It supports other Linux versions such as Debian and Kali Linux. etc.
In this tutorial, we are going to set up a Redis server in Ubuntu operating system. Without using any URLs above, we are manually downloading it from the Microsoft store.
1.1 Open Microsoft Store
First, open the Microsoft Store by searching “store” in the left-bottom Windows 10 search box.
1.2 Install Ubuntu
The Microsoft Store will be opened and now search for Ubuntu. In the top-right search box, search for Ubuntu and click on the latest version(20.04 LTS) from the suggestions and Get the app.
1.3 Launch Ubuntu
So the Ubuntu is installed on our Windows system and now we need to launch it. So search for “ubuntu” in the Windows search box.
An Ubuntu terminal will be opened and this terminal is used to set up Redis.
2. Install Redis on Ubuntu
So we have successfully set up an Ubuntu server inside our Windows operating system.
Now we can install Redis on this Ubuntu system by following the below steps.
2.1 Update and upgrade the packages
Let’s first update and upgrade the packages of our Ubuntu OS with the below commands.
sudo apt-get update sudo apt-get upgrade
2.2 Install Redis Server
Now we can install the Redis server with the below command. As Redis server is already available in Linux it is easy to install it.
sudo apt-get install redis-server
2.3 Start Redis server
After the successful installation Redis server, we can start the Redis server using the redis-server
command.
sudo service redis-server start
The above commands start the Redis server on our system as shown in the below screenshot.
Now we can close the Ubuntu terminal window. This will not stop the Redis server we have started earlier.
But we have to note that, it needs to start the Redis server after each Windows system reboot. This can be done by running redis-server
command.
Summary
So in this article, we discussed the steps to install Redis server on Windows 10. Actually we are downloading the Ubuntu OS for Windows 10 first and installing the Redis server on on it.
What is Redis?
Redis full form is Remote Directory Server. Redis is a NO-SQL in-memory remote database that offers high performance, replication, and a unique data model.
Now when we have a brief idea of what Redis is, let’s see how we can install Redis on windows 10.
Redis was not developed for windows and thus a team of Microsoft handles the task to make it available to us.
How to install Redis on Windows 10
Follow the steps as shown to properly install Redis on Windows 10.
Step 1: Download .zip or .msi file
As told earlier, Redis is not available on windows but Microsoft makes it available for the Windows users.
Go to https://github.com/microsoftarchive/redis/releases to Download .zip or .msi file.
The ZIP file will require you to add the environment variables manually while the MSI file is an installer and will do it automatically for you.
Step 2: Extract the ZIP File
Create a new folder named “Redis” and extract the ZIP file into it. The name of the folder is up to you but it is good to follow the conventions.
After Extracting the ZIP you will see files of the Redis.
Read more on How to install Redis on Windows 10.