How to install KeyDB ?

Hendra Saputra
ITMI Engineering
Published in
2 min readFeb 28, 2020

Nah pasti sudah ada yang kenal ni sama yang namanya Redis , hampir sama seperti Redis KeyDB ini adalah salah satu database dari dunia NoQSL yang berbasis key-value store. Sistemnya yang in-memory membuat pengambilan data dari KeyDB menjadi lebih cepat, namun dapat juga persistent bila ingin menyimpan data kita ke disk. Redis memiliki sejumlah query yang pastinya mudah digunakan untuk menyimpan mulai dari data sederhana hingga data kompleks.

KeyDB ini dibuat atas dorongan komunitas open source hingga menjadi salah satu pesaing database yang banyak diminati, nah atas permintaan komunitas open source juga KeyDB mengimplementasi kan fitur-fitur seperti active-replication selain FLASH, multi master, multi threading, and it’s all part of the open source base code.

Gimana sih cara install nya ?

OS yang saya gunakan disini adalah Ubuntu 18.04 , dan pertama mungkin bisa download dulu open source nya dari sini

wget https://download.keydb.dev/keydb-stable.tar.gz
  • extract file yang sudah di download
tar -zxvf keyed-stable.tar.gz
  • sebelum install keyDB, pastikan dependency sudah ter install
Apt-get install gcc g++ uuid-dev nasm libcurl4-openssl-dev tcl
  • jika sudah install dependency nya , sekarang kita mulai install KeyDB dari folder dimana file keyed-stable.tar.gz di extract
cd /opt/keyDB/depsmake hiredis jemalloc linenoise lua geohash-intcd ..make make testmake install
  • setelah sudah melakukan make install jalankan script bash install redis seperti dibawah ini
cd /opt/keyDB/utils./install_server.shWelcome to the redis service installer
This script will help you easily set up a running redis server
Please select the redis port for this instance: [6379] --> ini bisa optional ya bisa langsung enter atau bisa ubah port sesuai keinginan :)Please select the redis config file name [/etc/redis/6379.conf] --> enter
Selected default - /etc/redis/6379.conf
Please select the redis log file name [/var/log/redis_6379.log]--> enter
Selected default - /var/log/redis_6379.log
Please select the data directory for this instance [/disk1/keydb/6379] --> enter
Selected default - /disk1/keydb/6379
Please select the redis executable path [/usr/local/bin/keydb-server] --> enterSelected config:
Port : 6379
Config file : /etc/redis/6379.conf
Log file : /var/log/redis_6379.log
Data dir : /disk1/keydb/6379
Executable : /usr/local/bin/keydb-server
Cli Executable : /usr/local/bin/keydb-cli
Is this ok? Then press ENTER to go on or Ctrl-C to abort.
Copied /tmp/6379.conf => /etc/init.d/redis_6379
Installing service...
Successfully added to chkconfig!
Successfully added to runlevels 345!
Starting Redis server...
Installation successful!

woooohow jika sudah successful bisa langsung cek saja status nya untuk memastikan service keydb nya sudah running , dengan command seperti dibawah ini

/etc/init.d/redis_6379 status
Redis is running (5800)

terima kasih :)

--

--