Redis cli download windows

Redis 8.0.0 for Windows

This is the General Availability release of Redis Open Source 8.0.

Redis 8.0 deprecates previous Redis and Redis Stack versions.

Stand alone RediSearch, RedisJSON, RedisTimeSeries, and RedisBloom are no longer needed as they are now part of Redis.

Major changes compared to 7.4.2

  • Name change: Redis Community Edition is now Redis Open Source

  • License change: licensed under your choice of

    • (a) the Redis Source Available License 2.0 (RSALv2); or
    • (b) the Server Side Public License v1 (SSPLv1); or
    • (c) the GNU Affero General Public License (AGPLv3)
  • Redis Query engine and 8 new data structures are now an integral part of Redis 8

    • (1) Redis Query Engine, which now supports both horizontal and vertical scaling for search, query and vector workloads

    • (2) JSON — a queryable JSON document

    • (3) Time series

    • (4-8) Five probabilistic data structures: Bloom filter, Cuckoo filter, Count-min sketch, Top-k, and t-digest

    • (9) Vector set [beta] — a data structure designed for Vector Similarity Search, inspired by Sorted set

    • These nine components are included in all binary distributions

    • See instructions in the README.md file on how to build from source with all these components

    • New configuration file: redis-full.conf — loads Redis with all these components,
      and contains new configuration parameters for Redis Query engine and the new data structures

    • New ACL categories: @search, @json, @timeseries, @bloom, @cuckoo, @cms, @topk, @tdigest

    • Commands are also included in the existing ACL categories (@read, @write, etc.)

  • More than 30 performance and resource utilization improvements

  • A new I/O threading implementation which enables throughput increase on multi-core environments
    (set with io-threads configuration parameter)

  • An improved replication mechanism which is more performant and robust

  • New hash commands — HGETDEL, HGETEX, HSETEX

For more details, see the release notes of 8.0-M01, 8.0-M02, 8.0-M03, 8.0-M04, and 8.0-RC1

Binary distributions

  • Alpine and Debian Docker images — https://hub.docker.com/_/redis
  • Install using snap — see https://github.com/redis/redis-snap
  • Install using brew — see https://github.com/redis/homebrew-redis
  • Install using RPM — see https://github.com/redis/redis-rpm
  • Install using Debian APT — see https://github.com/redis/redis-debian

Operating systems we test Redis 8.0 on

  • Ubuntu 20.04 (Focal Fossa), 22.04 (Jammy Jellyfish), 24.04 (Noble Numbat)
  • Rocky Linux 8.10, 9.5
  • AlmaLinux 8.10, 9.5
  • Debian 11 (Bullseye), 12 (Bookworm)
  • macOS 13 (Ventura), 14 (Sonoma), 15 (Sequoia)

Supported upgrade paths (by replication or persistence)

  • From previous Redis versions, without modules
  • From previous Redis versions with modules (RediSearch, RedisJSON, RedisTimeSeries, RedisBloom)
  • From Redis Stack 7.2 or 7.4

Security fixes (compared to 8.0-RC1)

  • (CVE-2025-21605) An unauthenticated client can cause an unlimited growth of output buffers

Bug fixes (compared to 8.0-RC1)

  • redis/redis#13966, redis/redis#13932 CLUSTER SLOTS — TLS port update not reflected
  • redis/redis#13958 XTRIM, XADD — incorrect lag due to trimming stream
  • redis/redis#13931 HGETEX — wrong order of keyspace notifications

Hashes

MSYS2 Builds Hashes

Algorithm : SHA256
Hash : 975F99FB94CC82583F51168646618EEBCAF19A442E62205426C7F0F07CA07346
Path : D:\a\redis-windows\redis-windows\Redis-8.0.0-Windows-x64-msys2.zip

Algorithm : SHA256
Hash : 4FBF19AD53BDA400B68D003377008F115AC641261386CD52D6DBEA83CF7F1724
Path : D:\a\redis-windows\redis-windows\Redis-8.0.0-Windows-x64-msys2-with-Service.zip

Cygwin Builds Hashes

Algorithm : SHA256
Hash : 6DAA88BC2F0902DD2D2F929B85D7F186BD9C22402794D154109BD8A308B2C206
Path : D:\a\redis-windows\redis-windows\Redis-8.0.0-Windows-x64-cygwin.zip

Algorithm : SHA256
Hash : 3F68598EA69FB9F0419B22ECBE21EFDE67E9B6B86E60CEAE8E9CC922E5F1B4AD
Path : D:\a\redis-windows\redis-windows\Redis-8.0.0-Windows-x64-cygwin-with-Service.zip

From workflow: https://github.com/redis-windows/redis-windows/actions/runs/14806459284

Redis 7.4.3 for Windows

Update urgency: SECURITY: There are security fixes in the release.

Security fixes

  • (CVE-2025-21605) An unauthenticated client can cause an unlimited growth of output buffers

Bug fixes

  • redis/redis#13661 FUNCTION FLUSH — memory leak when using jemalloc
  • redis/redis#13793 WAITAOF returns prematurely
  • redis/redis#13853 SLAVEOF — crash when clients are blocked on lazy free
  • redis/redis#13863 RANDOMKEY — infinite loop during client pause
  • redis/redis#13877 ShardID inconsistency when both primary and replica support it

Hashes

Algorithm : SHA256
Hash : 9E94BDEDDC25BAA362CAEFBC2A3003DEBB8890D4BD239DABFFA4200928D0658C
Path : D:\a\redis-windows\redis-windows\Redis-7.4.3-Windows-x64-msys2.zip

Algorithm : SHA256
Hash : 18ACBB88C70C9FF55E76F87C8516D985C2AB3F159DB3683F436B87A468F17545
Path : D:\a\redis-windows\redis-windows\Redis-7.4.3-Windows-x64-msys2-with-Service.zip

Algorithm : SHA256
Hash : F6FE3DBBEA180672FE08CBA80759168EA68A51CD7EE4F097E1B8905A053D0AD1
Path : D:\a\redis-windows\redis-windows\Redis-7.4.3-Windows-x64-cygwin.zip

Algorithm : SHA256
Hash : E21FA8C30FDDDC2356A5A1B6098A765A61960FCC585CF40EC3CD4D9C471DA856
Path : D:\a\redis-windows\redis-windows\Redis-7.4.3-Windows-x64-cygwin-with-Service.zip

From workflow: https://github.com/redis-windows/redis-windows/actions/runs/14632064330

Redis 7.2.8 for Windows

Update urgency: SECURITY: There are security fixes in the release.

Security fixes

  • (CVE-2025-21605) An unauthenticated client can cause an unlimited growth of output buffers

Bug fixes

  • redis/redis#12817, redis/redis#12905 Fix race condition issues between the main thread and module threads
  • redis/redis#13863 RANDOMKEY — infinite loop during client pause
  • redis/redis#13877 ShardID inconsistency when both primary and replica support it

Hashes

Algorithm : SHA256
Hash : AA6D4206A08D1189DD7A57C78201540A53B12350E1AD09EE7CACA04120600656
Path : D:\a\redis-windows\redis-windows\Redis-7.2.8-Windows-x64-msys2.zip

Algorithm : SHA256
Hash : 407087E4C63F11494475E15BA9CAA54CBCF62865B19B8F5D9E14D9A0A7998D5F
Path : D:\a\redis-windows\redis-windows\Redis-7.2.8-Windows-x64-msys2-with-Service.zip

Algorithm : SHA256
Hash : 6D11A676276CEE71462BB56C047EFA56A9AAE396BE4086B6BD846ED53E790EE4
Path : D:\a\redis-windows\redis-windows\Redis-7.2.8-Windows-x64-cygwin.zip

Algorithm : SHA256
Hash : CD60BBA1827513F9C8AE99287744E1C8CDDAC7CEC9C70DC2B242719DFF029799
Path : D:\a\redis-windows\redis-windows\Redis-7.2.8-Windows-x64-cygwin-with-Service.zip

From workflow: https://github.com/redis-windows/redis-windows/actions/runs/14640298268

Redis 6.2.18 for Windows

Update urgency: SECURITY: There are security fixes in the release.

Security fixes

  • (CVE-2025-21605) An unauthenticated client can cause an unlimited growth of output buffers

Hashes

Algorithm : SHA256
Hash : C21B6370F0F13D05DC25185E25D8B4A8F71A5BD5327789A14D0261E38228BA83
Path : D:\a\redis-windows\redis-windows\Redis-6.2.18-Windows-x64-msys2.zip

Algorithm : SHA256
Hash : BBD1B6AE2768C08A3AFD292B28557606F4169C18CEF3BF2FAB0CD0050D165331
Path : D:\a\redis-windows\redis-windows\Redis-6.2.18-Windows-x64-msys2-with-Service.zip

Algorithm : SHA256
Hash : AA18CEE207ADDE996C517945FED9CE34D05CD68B78EB112AFA2BEB5BA5219FC3
Path : D:\a\redis-windows\redis-windows\Redis-6.2.18-Windows-x64-cygwin.zip

Algorithm : SHA256
Hash : D803EADE93CF342F1163CC97F86E516E9C1603327AF8D37CF053CE2E0D8D5470
Path : D:\a\redis-windows\redis-windows\Redis-6.2.18-Windows-x64-cygwin-with-Service.zip

From workflow: https://github.com/redis-windows/redis-windows/actions/runs/14640291946

Redis 7.4.2 for Windows

Upgrade urgency SECURITY: See security fixes below.

Security fixes

  • (CVE-2024-46981) Lua script commands may lead to remote code execution
  • (CVE-2024-51741) Denial-of-service due to malformed ACL selectors

Bug fixes

  • redis/redis#13627 Crash on module memory defragmentation
  • redis/redis#13338 Streams: XINFO lag field is wrong when tombstone is after the last_id of the consume group
  • redis/redis#13473 Streams: XTRIM does not update the maximal tombstone, leading to an incorrect lag
  • redis/redis#13470 INFO after HDEL show wrong number of hash keys with expiration
  • redis/redis#13476 Fix a race condition in the cache_memory of functionsLibCtx
  • redis/redis#13626 Memory leak on failed RDB loading
  • redis/redis#13539 Hash: fix key ref for a hash that no longer has fields with expiration on RENAME/MOVE/SWAPDB/RESTORE
  • redis/redis#13443 Cluster: crash when loading cluster config
  • redis/redis#13422 Cluster: CLUSTER SHARDS returns empty array
  • redis/redis#13465 Cluster: incompatibility with older node versions
  • redis/redis#13608 Cluster: SORT ... GET #: incorrect error message
    Hashes
    =========

Algorithm : SHA256
Hash : 65C8D2FF57572AFA3CF4634820D4CDB8921E82760B272AD1DD12F38308414A96
Path : D:\a\redis-windows\redis-windows\Redis-7.4.2-Windows-x64-msys2.zip

Algorithm : SHA256
Hash : 70DCA38B1BED63F66362D9962B5DB593FA111FA1BC09D8C21A01B01D18FAFA66
Path : D:\a\redis-windows\redis-windows\Redis-7.4.2-Windows-x64-msys2-with-Service.zip

Algorithm : SHA256
Hash : 85725DE3FD3A780CC6509CCB489E736085F5D926856D7A52FC2CBABF010D6BE8
Path : D:\a\redis-windows\redis-windows\Redis-7.4.2-Windows-x64-cygwin.zip

Algorithm : SHA256
Hash : 627E4C2C484647C2B60EC262158FB05981C81F6B761C154F45F9979014B7519C
Path : D:\a\redis-windows\redis-windows\Redis-7.4.2-Windows-x64-cygwin-with-Service.zip

From workflow: https://github.com/redis-windows/redis-windows/actions/runs/12643895539

Redis 7.2.7 for Windows

Upgrade urgency SECURITY: See security fixes below.

Security fixes

  • (CVE-2024-46981) Lua script commands may lead to remote code execution
  • (CVE-2024-51741) Denial-of-service due to malformed ACL selectors

Bug fixes

  • redis/redis#13380 Possible crash due to OOM panic on invalid command
  • redis/redis#13338 Streams: XINFO lag field is wrong when tombstone is after the last_id of the consume group
  • redis/redis#13473 Streams: XTRIM does not update the maximal tombstone, leading to an incorrect lag
  • redis/redis#13311 Cluster: crash due to unblocking client during slot migration
  • redis/redis#13443 Cluster: crash when loading cluster config
  • redis/redis#13422 Cluster: CLUSTER SHARDS returns empty array
  • redis/redis#13465 Cluster: incompatibility with older node versions
    Hashes
    =========

Algorithm : SHA256
Hash : B13B718CD88FE6F2D032D5B6BCD97A2A0A1F150DEE8197AA3AD25CA044BECE71
Path : D:\a\redis-windows\redis-windows\Redis-7.2.7-Windows-x64-msys2.zip

Algorithm : SHA256
Hash : 49D74E32042839061F06AB91CA84AE9BF4064249894D29F2A13E222A3BC65A7F
Path : D:\a\redis-windows\redis-windows\Redis-7.2.7-Windows-x64-msys2-with-Service.zip

Algorithm : SHA256
Hash : 64FBA36D56A3463E82F0154464E62AD174AED662C625D21A54248A004898BF98
Path : D:\a\redis-windows\redis-windows\Redis-7.2.7-Windows-x64-cygwin.zip

Algorithm : SHA256
Hash : 4C5E765453A17D3D79AF7FD91BB71E1F0AF8CDFA0D6F301D1EA5E2C802DD88DA
Path : D:\a\redis-windows\redis-windows\Redis-7.2.7-Windows-x64-cygwin-with-Service.zip

From workflow: https://github.com/redis-windows/redis-windows/actions/runs/12669845191

Redis 6.2.17 for Windows

Upgrade urgency SECURITY: See security fixes below.

Security fixes

  • (CVE-2024-46981) Lua script commands may lead to remote code execution
    Hashes
    =========

Algorithm : SHA256
Hash : B8B8551BF2D77B600C11E00BB51CC3F361C50477BD98A1DD069C8B95DBF9A7E4
Path : D:\a\redis-windows\redis-windows\Redis-6.2.17-Windows-x64-msys2.zip

Algorithm : SHA256
Hash : 9D6E55FADA0003BDAC039351BEA5EDE3A43EB0D55FAF413919032CFB845F9A4D
Path : D:\a\redis-windows\redis-windows\Redis-6.2.17-Windows-x64-msys2-with-Service.zip

Algorithm : SHA256
Hash : 1E8B29B6BB26C3DECF936260EF26E21379046D03DCA1EB785D74067C0F84E5E0
Path : D:\a\redis-windows\redis-windows\Redis-6.2.17-Windows-x64-cygwin.zip

Algorithm : SHA256
Hash : 74975AD5F912FFEB4B187854C9FA97F7C73A00489F20A942C028CD0B342272FF
Path : D:\a\redis-windows\redis-windows\Redis-6.2.17-Windows-x64-cygwin-with-Service.zip

From workflow: https://github.com/redis-windows/redis-windows/actions/runs/12669848410

Redis 7.4.1 for Windows

Upgrade urgency SECURITY: See security fixes below.

Security fixes

  • (CVE-2024-31449) Lua library commands may lead to stack overflow and potential RCE.
  • (CVE-2024-31227) Potential Denial-of-service due to malformed ACL selectors.
  • (CVE-2024-31228) Potential Denial-of-service due to unbounded pattern matching.

Hashes

Algorithm : SHA256
Hash : E7A4BD7BE3EDD469D5B7831B7FA894317D337313CD19335F1493EC22C18C40E8
Path : D:\a\redis-windows\redis-windows\Redis-7.4.1-Windows-x64-msys2.zip

Algorithm : SHA256
Hash : 37ECAF785CB72F933E13538C043AB49C7F97F6BCA1DE0EDB69A16BFB05788FA6
Path : D:\a\redis-windows\redis-windows\Redis-7.4.1-Windows-x64-msys2-with-Service.zip

Algorithm : SHA256
Hash : D1B87CA1F622FC4A7B5AAED4CC052FE9F9560CCA8B661AC77C178EAFBC11B4B1
Path : D:\a\redis-windows\redis-windows\Redis-7.4.1-Windows-x64-cygwin.zip

Algorithm : SHA256
Hash : 041D1B3327D868873DD4214C1534FC5E8E748F0BF3202FB7BB8F829E94E08D03
Path : D:\a\redis-windows\redis-windows\Redis-7.4.1-Windows-x64-cygwin-with-Service.zip

From workflow: https://github.com/redis-windows/redis-windows/actions/runs/11154679931

Redis 7.2.6 for Windows

Upgrade urgency SECURITY: See security fixes below.

Security fixes

  • (CVE-2024-31449) Lua library commands may lead to stack overflow and potential RCE.
  • (CVE-2024-31227) Potential Denial-of-service due to malformed ACL selectors.
  • (CVE-2024-31228) Potential Denial-of-service due to unbounded pattern matching.

Bug fixes

  • Fixed crashes in cluster mode (redis/redis#13315)

Hashes

Algorithm : SHA256
Hash : CEBC7403E05B6F1BDE5BEC50910F8447945E3DEFE58E6E36521AE7A392E0A478
Path : D:\a\redis-windows\redis-windows\Redis-7.2.6-Windows-x64-msys2.zip

Algorithm : SHA256
Hash : 544BECB529B706D0633C3BB9C451963B6F9DA14ED9E22D1C362687C43BE81843
Path : D:\a\redis-windows\redis-windows\Redis-7.2.6-Windows-x64-msys2-with-Service.zip

Algorithm : SHA256
Hash : F72CDADDD773157E726963C3A785116D2A8F1A4D339B3C93D95DA51869658B66
Path : D:\a\redis-windows\redis-windows\Redis-7.2.6-Windows-x64-cygwin.zip

Algorithm : SHA256
Hash : A365CC9CB1831BDB139AFE1394D29C8187292BD10D0CC6F177EA4561F811C85F
Path : D:\a\redis-windows\redis-windows\Redis-7.2.6-Windows-x64-cygwin-with-Service.zip

From workflow: https://github.com/redis-windows/redis-windows/actions/runs/11154005410

Redis 6.2.16 for Windows

Upgrade urgency SECURITY: See security fixes below.

Security fixes

  • (CVE-2024-31449) Lua library commands may lead to stack overflow and potential RCE.
  • (CVE-2024-31228) Potential Denial-of-service due to unbounded pattern matching.

Hashes

Algorithm : SHA256
Hash : EB3732D63F09CC4A1A4234119C3D1CBA0D62CC0CC1E9CB3E6DD15CB314CED7A6
Path : D:\a\redis-windows\redis-windows\Redis-6.2.16-Windows-x64-msys2.zip

Algorithm : SHA256
Hash : 1BE1799ECCAABE14DA5F474B2EC7CBAF0C902154DFE47B59F8F1EEE10BAA092D
Path : D:\a\redis-windows\redis-windows\Redis-6.2.16-Windows-x64-msys2-with-Service.zip

Algorithm : SHA256
Hash : 893D7FE23133DF257BFDE9E53D6993D4BC793A186FD4BEB13CD4D46BC7073135
Path : D:\a\redis-windows\redis-windows\Redis-6.2.16-Windows-x64-cygwin.zip

Algorithm : SHA256
Hash : 2ED6BFE6EDB7FA5E3F9175AC0D82D655A99D1433135D875C291C47CE90F44D57
Path : D:\a\redis-windows\redis-windows\Redis-6.2.16-Windows-x64-cygwin-with-Service.zip

From workflow: https://github.com/redis-windows/redis-windows/actions/runs/11154000759

The ServiceStack/redis-windows 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 from 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 a VM of Linux.

Option 1) Install Redis on Ubuntu on Windows​

Install Windows Subsystem for Linux (WSL)​

From Command Line:

From GUI:

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

Once installed you can run bash on Ubuntu by typing bash from a Windows Command Prompt, then you can install recent stable versions of Redis from the official packages.redis.io APT repository with:

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

After install, start the Redis server with:

sudo service redis-server start

Then test that it’s running with:

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

Install latest from source​

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

  1. Extract vagrant-redis.zip in any folder, e.g. in c:\vagrant-redis

  2. 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.

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​

  • MSOpenTech Redis on Windows 3.0 Release Notes
  • MSOpenTech Redis on Windows 2.8 Release Notes
  • MSOpenTech’s Redis on Windows
  • Updates Released for Redis on Windows (2.8.4)

Current Version: 3.0.503 (June 28, 2016)​

  1. Download the redis-latest.zip native 64bit Windows port of redis
  1. Extract redis64-latest.zip in any folder, e.g. in c:\redis

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

$ cd c:\redis
$ redis-server.exe redis.windows.conf
  1. Run redis-cli.exe to connect to your redis instance
$ cd c:\redis
$ redis-cli.exe
  1. 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 Admin Desktop App​

Redis Admin UI is a vuedesktop.com App that lets you manage your App’s configured Redis Server with a user-friendly UX for managing core Redis data types, simple search functionality to quickly find Redis values, quick navigation between related values, 1st class support for JSON values and a flexible CLI interface and command history to inspect all previously run redis commands for easy edits & reruns.

Video feature tour

Install​

Launch as a stand-alone Desktop App by Installing .NET SDK and the
Windows Desktop App tool:

powershell iwr gist.cafe/install.ps1 -useb | iex

After install, open the Redis Admin Desktop from your browser at:

app://redis

Or from the command-line with:

Run headless on macOS, Linux and Windows​

Non Windows OS can install the cross-platform x dotnet tool:

Then launch from Command Line with:

Where you can view it with your preferred browser at http://localhost:5000

Redis Vue​

Redis Vue is a simple, lightweight, versatile Redis Admin UI developed using Vue and ServiceStack Sharp 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 /index.html using the dynamic #Script language, making it easy to customize and further enhance.

After app install, open the Redis Vue Desktop App from your browser at:

app://redis-vue

Or from the command-line with:

Run headless on macOS, Linux and Windows​

Non Windows OS can install the cross-platform x dotnet tool then launch from Command Line with:

Where you can view it with your preferred browser at http://localhost:5000

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.

Redis — это система управления базами данных, которая хранит данные в формате «ключ-значение»: уникальному ключу в БД соответствует некоторое значение. Данные в этой базе данных хранятся в оперативной памяти, благодаря чему запросы обрабатываются быстро. 

Согласно рейтингу DB-Engines.com, Redis — это самая популярная СУБД «ключ-значение». Благодаря этому типу, архитектура базы и запросы к ней проще, чем в реляционных баз данных. Однако использовать привычный SQL на стандартном Redis не получится: придется работать с Lua-скриптами или устанавливать модифицированные версии, например RediSQL.

Redis лучше всего использовать в проектах, где нужна база данных с быстрым доступом к данным и простой схемой.

Чтобы вы могли комфортно использовать эту СУБД в своих проектах, мы подготовили материал по установке Redis на три операционные системы: на Windows, Ubuntu и CentOS. По завершении установки мы настроим Redis, после чего СУБД будет готова к работе.

Базы данных

Redis: установка на Windows

Есть два варианта установки Redis на Windows:

  • установка портированной версии;
  • установка в WSL или Docker.

В этом разделе мы разберем установку портированной версии. Если вы хотите установить в WSL, то:

  • руководство по установке и настройке WSL в Windows 10 вы найдете в материале «Как установить Node.js на Windows» в разделе «Установка WSL»;
  • инструкция по установке на Ubuntu описана чуть ниже в разделе «Установка на Ubuntu».

Портированная версия для Windows вышла довольно давно: в 2016 году. Она размещена на github и доступна для скачивания всем пользователями. Преимущества установки этой версии заключается в её простоте: для установки не потребуется дополнительная «прослойка» в виде Docker или WSL. Выбирайте порт для Windows, если не хотите усложнять процесс установки и вас устраивает 6-летняя версия.

Установка Redis на Windows

Шаг 1 — заходим в репозиторий на GitHub портированной версии по ссылке: https://github.com/microsoftarchive/redis

Шаг 2 — переходим на вкладку «Releases».

Шаг 3 — выбираем последний релиз.

Шаг 4 — скачиваем файл с расширением .msi. На изображении он выделен синим цветом:

Image2

Шаг 5 — после загрузки откройте файл. Начнется установка.

Шаг 6 — во время установки инсталлятор предложит вам добавить Redis в PATH. Если хотите использовать СУБД из командной строки, проставьте галочку напротив этого пункта.

Шаг 7 — во время выбора порта рекомендуется оставить стандартное значение 6379.

Шаг 8 — после установки необходимо перезагрузить компьютер.

После загрузки компьютера проверим работоспособность Redis. Для этого в командной строке выполняем команду redis-server

При её выполнении может возникнуть ошибка со следующим сообщением:

Image7


Проблема заключается в том, что Windows в автоматическом режиме после установки регистрирует службу, к которой привязывает порт 6379. Когда выполняется команда redis-server, исполнитель обращается к файлу конфигурации и использует порт по-умолчанию, т.е. 6379. Из-за этого возникает ошибка.

Чтобы её решить открываем командную строку и делаем следующее:

  • переходим в каталог Redis командой cd;
  • запускаем redis-cli.exe;
  • выключаем сервер командой shutdown;
  • выходим командой exit.

Вот набор команд для стандартного каталога:

Image3

После этих действий команда redis-server успешно выполнилась:

Image1

Настройки Redis описываются в двух файлах: redis.windows.conf и redis.windows-service.conf. 

  1. Redis.windows-service.conf описывает настройки СУБД, запущенной в качестве службы. Этот формат подразумевает работу в фоновом режиме под управлением операционной системы (запуск при перезагрузке, перезапуск при сбоях и т.п).
  2. Redis.windows.conf относится к использованию СУБД из командной строки с помощью redis-cli. Это же относится и к использованию СУБД в своих скриптах.

Настройка этих файлов приведет к изменению работы Redis. В нашем случае настроек минимальное количество: СУБД прослушивает любые подключения. Это не совсем безопасно, поэтому позволим подключение к Redis только с localhost. Для этого в файлах конфигурации находим задокументированную строку #bind 127.0.0.1 и удаляем решетку «#»:

Image5

Установка Redis: Ubuntu 22.04

Устанавливать Redis на Ubuntu мы будем из официального репозитория. Также, эта инструкция подойдет для установки Redis на Debian

Шаг 1 — в первую очередь обновим индексы пакетов apt:

sudo apt update

Шаг 2 — загружаем Redis:

sudo apt install redis-server -y

Проверить работоспособность можно командой sudo systemctl status redis:

Image4

Служба активна. 

Установка Redis: CentOS 7

Устанавливать Redis будем на CentOS 7. В первую очередь установим EPEL (Extra Packages for Enterprise Linux) — это пакет с дополнительными репозиториями, которые не включены в стандартную версию CentOS. Установим их:

sudo yum install epel-release

Теперь мы можем установить redis:

sudo yum install redis -y

Через несколько минут редис будет установлен на компьютер. Чтобы включить редис в автозагрузку, выполняем следующую команду:

sudo systemctl enable redis

Настройка Redis осуществляется через изменение конфигурационных файлов. Они для всех версий будут одинаковыми. Поэтому, для наглядной настройки, мы настроим Redis на операционной системе Ubuntu и удаленно подключимся к ней с Windows.

Для осуществления базовой настройки нам необходимо изменить 2 параметра: открыть удаленное подключение и установить пароль.

Шаг 1 — генерируем пароль:

openssl rand 25 | openssl base64 -A

Вывод:

/37DQhAt5MBq/34Lj24Ppn5LI/UZksAZJQ==

Злоумышленники могут перебирать до 150 тысяч паролей в секунду, поэтому важно выбрать надежный пароль. Копируем полученный результат и переходим к конфигурационному файлу.

Шаг 2 — открываем конфигурационный файл:

sudo nano /etc/redis/redis.conf

Шаг 3 — изменяем конфигурацию.

Найдем в конфигурационном файле строку «bind 127.0.0.1 ::1» и закомментируем её с помощью #. Не закрывая файл, найдем строку «protected-mode yes» и заменим её на «protected-mode no». В раздел «Security» после строки #requirepass foobared добавляем строку со сгенерированным паролем:

requirepass /37DQhAt5MBq/34Lj24Ppn5LI/UZksAZJQ==

Закрываем файл и сохраняем все изменения.

Шаг 4 — перезапускаем Redis, чтобы изменения вступили в силу:

sudo systemctl restart redis.service

Шаг 5 — с помощью netstat проверяем, какие сетевые интерфейсы прослушивает Redis:

sudo netstat -lnp | grep redis

Image6

Шаг 6 — подключаемся удаленно. Попробуем подключиться к базе данных из командной строки Windows:

redis-cli -h 192.168.43.37 -p 6379 -a /37DQhAt5MBq/34Lj24Ppn5LI/UZksAZJQ==

Пропингуем СУБД:

192.168.43.37:6379> ping
PONG

И вставим кортеж:

192.168.43.37:6379> set key test
OK
192.168.43.37:6379> get key
"test"

Redis как DBaaS

DBaaS (database as a service) — это база данных, размещенная в облаке. Этот сервис похож на аренду сервера, только вместо виртуальной машины вы получаете базу данных. Такой вариант обладает рядом преимуществ:

  • меньшее количество административных хлопот: не нужно обновлять СУБД и обслуживать оборудование;
  • легкое масштабирование базы данных: если для вашего проекта потребовалась более производительная БД, то это легко сделать в панели управления;
  • быстрый старт: СУБД будет установлена на старте;
  • бесперебойная работа.

Заключение

В Timeweb.cloud есть услуга «Облачные базы данных» — уже готовое и настроенное решение. Если вы не хотите отягощать себя административными манипуляциями, то вы можете арендовать базу данных на Redis у Timeweb Cloud. Помимо Redis, Timeweb Cloud может предложить в качестве СУБД MySQL, PostgreSQL и MongoDB.

Step 1: Download Redis for Windows

  1. Visit the Redis for Windows GitHub repository: https://github.com/microsoftarchive/redis
  2. Click on the «releases» tab and choose the latest release (or the version you wish to install).
  3. Download the zip file containing the binaries (for example, Redis-x64-<version>.zip).

Step 2: Extract the Redis binaries

  1. Once the download is complete, extract the contents of the zip file to a folder of your choice. For example, you can extract it to C:\Redis.

Step 3: Install Redis as a Windows service

  1. Open a command prompt (cmd) with administrative privileges.
  2. Navigate to the Redis folder you extracted earlier, for example: cd C:\Redis.
  3. To install Redis as a service, run the following command: redis-server --service-install redis.windows-service.conf. This will use the configuration file provided with the binaries.
  4. You should receive a message indicating that Redis has been successfully installed as a service.

Step 4: Start Redis service

  1. To start the Redis service, run the following command: redis-server --service-start.
  2. You should receive a message indicating that the Redis service has been started.

Step 5: Verify Redis installation

  1. In the command prompt, run the Redis CLI by typing redis-cli and pressing Enter.
  2. To check if Redis is running, type ping and press Enter. If Redis is running, it will return «PONG».
  3. You can also run other Redis commands to interact with the server, such as SET key value and GET key.

Managing Redis on Windows

  1. To stop the Redis service, run the following command: redis-server --service-stop.
  2. To uninstall the Redis service, run the following command: redis-server --service-uninstall.
  3. To configure Redis, edit the redis.windows-service.conf file in the Redis folder. You can modify settings like memory limits, logging, and security options. After making changes, restart the Redis service to apply the new configuration.

For more information and advanced configuration options, consult the official Redis documentation: https://redis.io/documentation

Redis uses a standard practice for its versioning:
major.minor.patchlevel.
An even minor marks a stable release, like 1.2, 2.0, 2.2, 2.4, 2.6, 2.8.Odd minors are used for unstable releases, for example 2.9.x releases are the unstable versions of what will be Redis 3.0 once stable.

2.8.13 Stable Redis 2.8 provides significant improvements like: Replication partial resynchronization, IPv6 support, config rewriting, keyspace changes notifications via Pub/Sub, and more. See the Release Notes for a full list of changes in this release. Download
3.0.0 Beta-8 This is the 8th beta of Redis 3.0.0.
Redis 3.0 features support for Redis Cluster and important speed improvements under certain workloads. This is a developers preview and is not suitable for production environments. The next beta is scheduled for 1 September 2014. For the complete list of new features, please check the Release Notes.
Download
2.6.17 Old This is the newest Redis version replacing Redis 2.4.
Redis 2.6 features support for Lua scripting, milliseconds precision expires, improved memory usage, unlimited number of clients, improved AOF generation, better performance, a number of new commands and features. For the complete list of new features, and the list of fixes contained in each 2.6 release, please check the Release Notes.
Download
Unstable Unstable This is where all the development happens. Only for hard core hackers. Clone
Win64 Unofficial The Redis project does not directly support Windows, however the Microsoft Open Tech group develops and maintains an Windows port targeting Win64. Clone

Other downloads are available on GitHub, Historical downloads are available on Google Code.

Scripts and other automatic downloads can easily access the tarball of the latest Redis stable version at http://download.redis.io/redis-stable.tar.gz. The source code of the latest stable release is always browsable here, use the file src/version.h in order to extract the version in an automatic way.

How to verify files for integrity

The Github repository redis-hashes contains a README file with SHA1 digets of released tarball archives.

Installation

Download, extract and compile Redis with:

$ wget http://download.redis.io/releases/redis-2.8.13.tar.gz
$ tar xzf redis-2.8.13.tar.gz
$ cd redis-2.8.13
$ make

The binaries that are now compiled are available in the src directory. Run Redis with:

$ src/redis-server

You can interact with Redis using the built-in client:

$ src/redis-cli
redis> set foo bar
OK
redis> get foo
"bar"

Are you new to Redis? Try our online, interactive tutorial.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Диспетчер задач диск 100 процентов windows 10 что делать
  • Установка windows vista на флешку
  • Windows 11 bypass rar
  • Windows event forwarding настройка
  • Windows update error 0x80070643