Windows doesn’t support the fork system call, which Redis uses in a variety of situations
to dump its database to disk. Without the ability to fork, Redis is unable to perform
some of its necessary database-saving methods without blocking clients until the
dump has completed.
Recently, Microsoft has contributed engineering time helping to address background
saving issues, using threads to write to disk instead of a forked child process.
As of this writing, Microsoft does have an alpha-stage branch of Redis 2.6, but it’s only
available as source, and Microsoft makes no guarantees as to its worthiness in production
At least for the short term, there’s an unofficial port of Redis by Dusan Majkic that
offers precompiled binaries for Redis 2.4.5, but it has the previously mentioned issue
that Redis blocks when dumping the database to disk.
COMPILING REDIS IN WINDOWS YOURSELFIf you find yourself in the position of
needing the most up-to-date version of Redis on Windows as possible, you’ll
need to compile Redis yourself. Your best option is to use Microsoft’s official
port (https://github.com/MSOpenTech/redis/), which requires Microsoft
Visual Studio, though the free Express 2010 works just fine. If you choose to
go this route, be warned that Microsoft makes no guarantees as to the fitness
of their ports to Windows for anything except development and testing.
Now that you know the state of Redis on Windows, if you still want to run Redis on
Windows, let’s install it.
TRY REDIS ENTERPRISE CLOUD FREE
Redis Enterprise Cloud provides complete automation of day-to-day database operations. Start now with 30MB of free storage.
© 2021 Redis Labs. Redis and the cube logo are registered trademarks of Redis Labs Ltd.