This document reviews how to build open source KeyDB yourself.
If you are looking for a prebuilt DEB or RPM package, take a look through our DOCS or check out https://keydb.dev/downloads
The following builds from the unstable (latest) branch of Github. This will contain the latest pushed changes. If you want to generate the latest official release please change branch to RELEASE_6
If you need to update your build, ensure you
make distclean prior to building again.
In order to build from the latest official release please change branches prior to
Note that if you are building with TLS support, pass the
BUILD_TLS=yes flag when calling make.
To enable using systemd, use the
USE_SYSTEMD=yes flag when calling make. You can now update your service file to use
Type=notify and your keydb.conf file to use
supervised systemd to take advantage of this support.
The following dependencies are recommended for building and testing KeyDB
Source code for creating deb/rpm packages can be found in https://github.com/EQ-Alpha/KeyDB/tree/unstable/pkg
If you want the latest open source binaries but do not want to run the build yourself, you can generate within a docker container. Please note this is building in Ubuntu 18.04 and is pulling from the unstable branch of KeyBD. Dockerfiles are posted in the Docker section if you want to build on a different image.
make a folder you would like to have the latest binaries dumped in, then run the following command with your updated path:
You should receive the following files: keydb-benchmark, keydb-check-aof, keydb-check-rdb, keydb-cli, keydb-sentinel, keydb-server