Installing redis server on windows

Как скачать и установить Redis на Windows

В этой очень короткой статье вы прочитает, как установить 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.

Как установить Redis в ОС Windows без использования Docker

Пошаговое руководство по работе с популярной NoSQL базой данных.

Просто и быстро установить Redis в ОС Windows позволяет Chocolatey. Это менеджер пакетов в среде Windows, аналогичный apt-get в мире Linux. С его помощью можно устанавливать множество программ и обновлять их, не скачивая каждый раз дистрибутив с сайта.

Установка Chocolatey

Действуем по инструкции с официального сайта проекта Chocolatey.

Требования к системе

  • Windows 7+ / Windows Server 2003+;
  • PowerShell v2+. Для установки с сайта требуется как минимум v3 (из-за требований TLS 1.2);
  • .NET Framework 4+. Программа попытается установить .NET 4.0, если он не установлен. Минимальная необходимая версия для установки с этого веб-сайта — 4.5 (из-за требований TLS 1.2).
Читайте также:  Ubuntu mac os style

Преподаватель Skillbox. Пишет про Java, учит Go. Помнит рассвет PHP и как «грабить корованы».

Проверяем версию системы

Запустите консоль запуска команд, нажав WIN + R, и введите команду cmd. Если вверху выведена версия Windows, как на скриншоте, этого достаточно.

Если нет, введите команду systeminfo. В начале вывода должна появиться версия Windows.

Если у вас установлена версия 7 или выше — переходим к следующему шагу.

Проверяем версию PowerShell

Для этого открываем PowerShell, вводим команду $PSVersionTable.PSVersion и получаем ответ:

На нашем скриншоте версия PowerShell 5.1. Если у вас версия ниже 3, необходимо установить PowerShell версии 3 (или выше). Инструкция есть по этой ссылке.

Проверяем версию.NET Framework

Запускаем редактор реестра: нажимаем WIN + R и выполняем команду regedit.

Переходим в раздел

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP и смотрим, какие папки там присутствуют:

Если нет такой ветки или отсутствует версия 4.0 и выше, то необходимо её установить. Подробная инструкция находится по этой ссылке.

Установка Chocolatey

После всех подготовительных действий устанавливаем Chocolatey. Это делается одной командой PowerShell.

Важно! До начала установки необходимо проверить, есть ли на это права. Если прав недостаточно, их нужно добавить.

В PowerShell необходимо убедиться, что Get-ExecutionPolicy не является Restricted. Рекомендуется использовать Bypass для снятия ограничений или AllSigned для более безопасного использования.

Выполните команду Get-ExecutionPolicy. Если она вернёт Restricted, запустите Set-ExecutionPolicy AllSigned (рекомендуется) или Set-ExecutionPolicy Bypass -Scope Process.

redis Installing and running Redis Server on Windows

Example

Note: The Redis project does not officially support Windows.

However, the Microsoft Open Tech group develops and maintains this Windows port targeting Win64. Official redis.io/download

You can choose to download different versions or the latest version of Redis github.com/MSOpenTech/redis/releases

  1. Download either .msi or .zip file, this tutorial will let you download latest zip file
    Redis-x64-3.2.100.zip.
  2. Extract the zip file to prepared directory.
  3. Run redis-server.exe, you can either directly run redis-server.exe by clicking or run via command prompt.
  4. Run redis-cli.exe, after successfully running the redis-server. You can access it and test commands by running redis-cli.exe Te

PING command is used to test if a connection is still alive.

You can now start using Redis , please refer for more commands in official documentations

Running Redis on Windows 10 – Part I of III

Head of Ecosystem Programs

Share this Article

Subscribe

Get the monthly Redis Enterprise email newsletter.

Thanks for Subscribing

We appreciate your interest! You can change your communication preferences any time by visiting this page.

Читайте также:  Touch screen and linux

Head of Ecosystem Programs

Running Redis on Windows 10 – Part I of III

Ever since Jessica Deen explained how WSL works at my SVDevOps Meetup , I’ve recommended Redis Windows 10 users run Redis on their own dev machines. Yes, you heard right. Starting with Windows 10 (v1709 – 2017-09, Fall Creators Update ), you can run at least a half-dozen flavors of Linux on the Windows Subsystem for Linux (WSL), and you can run Redis on top of them. No VM required. No Docker. No joke!

How do I know if I have Windows 10 with WSL?

To answer the question “ Which version of Windows is my PC is running? ” press your Windows logo key + R, type “ winver ,” then select OK. Starting with version 10, you’ve got a command called “ wslconfig .” It lists distros you have and controls which one starts by typing “bash.” Try it out!

How to set up WSL!

  1. To install Redis 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):
  2. Reboot Windows after making the change—note that you only need to do this one time.
  3. Download and install one of the supported Linux distros from the Microsoft Store .
  • Ubuntu 18.04 (installs Redis v4.09)
  • Debian GNU/Linux (installs Redis v3.2.6)

Install and Test Redis

  1. 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):
  • Restart the Redis server to make sure it is running:
  • Execute a simple Redis command to verify your Redis server is running and available:
  • To stop your Redis server:
  • Further Information

    • How does Linux run within Windows 10? Instead of calling the Linux Kernel, the system calls (syscalls) that these unmodified Linux libraries use are redirected to Windows, which handles the call instead of Linux. For more information about WSL, visit the Windows Subsystem for Linux Documentation on MSDN .
    • How do I access files stored in the Linux environment? If you want to edit Windows files in Windows AND in Linux, then keep your files in /mnt/c/ so you can edit them with either OS. Don’t use Windows to “reach into the Linux file system.” As Scott Hanselman says on his WSL blog post , “There be dragons!” For further information about the WSL storage, visit Jack Hammon’s blog post on MSDN titled “ WSL File System Support .”
    Читайте также:  Nodrivetypeautorun windows 10 что это

    #developers#Microsoft#Redis#Redis Cloud#Redis Enterprise Cloud#Windows

    By continuing to use this site, you consent to our updated privacy agreement as described here. You can change your cookie settings at any time as described here but parts of our site will not function correctly without them.

    TRY REDIS ENTERPRISE CLOUD FREE

    Redis Enterprise Cloud provides complete automation of day-to-day database operations. Start now with 30MB of free storage.

    • Twitter
    • YouTube
    • Facebook
    • LinkedIn
    • GlassDoor
    • Instagram

    © 2021 Redis Labs. Redis and the cube logo are registered trademarks of Redis Labs Ltd.

    e-Book — Redis in Action

    This book covers the use of Redis, an in-memory database/data structure server

    A.3.2 Installing Redis on Windows

    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.

    Now that Redis is up and running, it’s time to download and install Python.

    Figure A.1 Redis running in Windows

    By continuing to use this site, you consent to our updated privacy agreement as described here. You can change your cookie settings at any time as described here but parts of our site will not function correctly without them.

    TRY REDIS ENTERPRISE CLOUD FREE

    Redis Enterprise Cloud provides complete automation of day-to-day database operations. Start now with 30MB of free storage.

    • Twitter
    • YouTube
    • Facebook
    • LinkedIn
    • GlassDoor
    • Instagram

    © 2021 Redis Labs. Redis and the cube logo are registered trademarks of Redis Labs Ltd.

    Оцените статью