Operating system tips

Redis is developed and runs most applications under POSIX supported operating systems like Linux and many of its distributions, Macintosh OS and other BSD derived operating systems, and other commercial UNIXes. The Redis project does not officially support Microsoft Windows, although Microsoft's Open Tech group develops and maintains a port to 64bit-based Windows. There have been experiments running Redis with Raspberry Pi4 and Android5.


Tips for running Redis on Linux

You should disable the transparent huge pages in your kernel by running the following:

echo never > /sys/kernel/mm/transparent_hugepage/enabled

Set vm.overcommit_memory to 1 to avoid issues with background saving with your Linux virtual machine by swapping. ...

Get Mastering Redis now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.