Debian installation packages make installation of KeyDB easy. No need to worry about building the binaries, or directory setup. Just simply install and go!
Please note this will be the official PPA for KeyDB with the Launchpad PPA distribution becoming deprecated in the near future. Hosting the PPA ourselves enables more flexibility for binary distribution and allows us to serve you better.
A PPA (Personal Package Archive) allows you to easily install, update and remove packages with commands such as
dpkg. When you follow the commands below to install KeyDB, the proper package will be selected for your installation. Current packages are available for arm64 and amd64 (x86_64) machines. These are built on Ubuntu 18.04 (bionic build).
In order to get your keydb-ppa, simply follow these commands below:
$ curl -s --compressed "https://download.keydb.dev/keydb-ppa/KEY.gpg" | sudo apt- - $ sudo curl -s --compressed -o /etc/apt/sources. .d/keydb. https://download.keydb.dev/keydb-ppa/keydb. $ sudo apt $ sudo apt install keydb
In order to install keydb professional
$ sudo apt install keydb-pro
apt install phase you can choose from several installation methods:
apt install keydb-tools to install binaries only. This method is for someone who wants the program installed but not configured to run automatically (as a service). The installation moves these binaries to
/usr/bin/: keydb-cli, keydb-server, keydb-pro-server, keydb-benchmark, keydb-check-aof, keydb-check-rdb.
apt install keydb-server to run keydb-server as a service. Systemd files will be set up as well as directory structures for pid files, conf files, etc. keydb-tools is a dependancy for this package and will be installed if not already.
apt install keydb. This installs both keydb-server and keydb-tools. This is a common installation for most.
For those using keydb-sentinel and want to run it as a service you will need to run
apt install keydb-sentinel
apt install keydb-pro-tools to install pro binaries only. This method is for someone who wants the program installed but not configured to run automatically (as a service). This package contains keydb pro binaries exclusively.
apt install keydb-pro-server to run keydb-pro-server as a service. Systemd files will be set up as well as directory structures for pid files, conf files, etc. keydb-pro-tools is a dependancy for this package and will be installed if not already
apt install keydb-pro. This installs both keydb-pro-server and keydb-pro-tools. This is a common installation for most and enables keydb-pro features to run with the services configured exclusively for pro
For those using keydb-pro-sentinel and want to run it as a service you will need to run
apt install keydb-pro-sentinel
When keydb-server is set up as a service you can start, stop and check status via:
$ sudo service keydb-server status $ sudo service keydb-server start $ sudo service keydb-server stop
This can be done similarly with keydb-sentinel if installed
The main configuration file is located at /etc/keydb/keydb.conf
Other relevant files updated with keydb-server are:
Binaries installed with keydb-tools are placed in /usr/bin/
Setting up FLASH with systemd
If you are running KeyDB as a service with FLASH options enabled, you need to let systemd know you will be accessing the flash volume and make sure the keydb user/group have access. You will need to update the systemd file
/lib/systemd/system/keydb-server.service and append the following line below where the others are located:
This followed by
sudo systemctl daemon-reload
You will then need to change the ownership on the directory of the specified flash volume
sudo chown -R keydb:keydb /path/to/your/flash/volume/db/folder
Now you should be able to run keydb pro with flash as a service and start/stop with
sudo service keydb-server start/stop/status
If you do not wish to use the PPA, you can download the deb packages individually and install them. This method is more manual than using the PPA and any updates will be a manual process.
To install the deb packages first unzip the contents of the package you have downloaded, then install the package(s) you would like. You will have to specify the package and install keydb-tools before keydb-server or keydb-sentinel.
$ wget https://keydb.dev/downloads/keydb-deb_bionic_amd64.tar.gz $ tar -xvf keydb-deb_bionic_amd64.tar.gz $ cd keydb-deb_bionic_amd64 $ apt install keydb-tools_x.x.x-1chl1~bionic1_amd64.deb $ apt install keydb-server_x.x.x-1chl1~bionic1_amd64.deb
$ wget https://keydb.dev/downloads/keydb-deb_bionic_arm64.tar.gz $ tar -xvf keydb-deb_bionic_arm64.tar.gz $ cd keydb-deb_bionic_arm64 $ apt install keydb-tools_x.x.x-1chl1~bionic1_arm64.deb $ apt install keydb-server_x.x.x-1chl1~bionic1_amd64.deb
$ sudo apt autoremove --purge keydb keydb-server keydb-sentinel keydb-tools
or for pro
$ sudo apt autoremove --purge keydb-pro keydb-pro-server keydb-pro-sentinel keydb-pro-tools
Choose which package to uninstall based on which packages were installed in the first place. All packages are listed in above command, however some of the packages will remove the packages dependent on them as well.
If you want to remove the ppa from your list of programs to update on
sudo apt update, then remove the .list file in sources:
$ sudo rm /etc/apt/sources.list.d/keydb.list
Issues and Requests
If you have a build request, issue, or would like to make updates to the packages please email firstname.lastname@example.org or create an issue on github