How to Install OrientDB on Ubuntu 16.04

r00t November 20, 2017

Install OrientDB on Ubuntu 16.04

In this tutorial we will show you how to install OrientDB on Ubuntu 16.04. We will also install and configure its prerequisites. OrientDB is an entirely free and open source NoSQL database management program. Unlike relational database management programs that store the data in a relational table form, NoSQL stores data from apart from the tabular form that can be file form or Graph form. OrientDB includes an integrated web based graphical user interface to easily handle the database through a web browser. It supports ACID transactions as well as atomic operations and readily returns the complete graph with interconnected documents. Its query language is built on SQL also it supports three distinct indexing algorithms for faster performance.

I recommend to use a minimal Ubuntu server setup as a basis for the tutorial, that can be a virtual or a root server image with an Ubuntu 16.04 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install OrientDB on Ubuntu 16.04

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

apt-get update -y
apt-get upgrade -y

Step 2. Install Java.

OrientDB is written in Java language so you have to install it on your OS with the following command:

apt-get install default-jre

After installing it, verify that it’s now the default Java JRE:

java -version

Step 3. Installing OrientDB.

Download the latest stable release of OrientDB Community Edition:

cd /opt/
wget -O orientdb-community-2.2.29.tar.gz

Extract the downloaded archive:

tar xvzf orientdb-community-2.2.29.tar.gz
mv orientdb-community-2.2.29/ orientdb

Step 4. Configure OrientDB.

So, first, create the system user that you want OrientDB to run as. The command will also create the orientdb group:

useradd -r orientdb -s /sbin/nologin
chown -R orientdb:orientdb /opt/orientdb/

Next, modify the OrientDB main configuration file:

nano /opt/orientdb/bin/

Change their value to below:


Save and exit the file.

Step 5. Start OrientDB Server.

Now you have to open the service file:

nano /opt/orientdb/bin/orientdb.service

And make it look like below:

Description=OrientDB Server



Save and exit, Then move it to proper location with the following command:

mv /opt/orientdb/bin/orientdb.service /etc/systemd/system/

Start and enable the OrientDB service:

systemctl daemon-reload
systemctl start orientdb
systemctl enable orientdb

Congratulation’s! You have successfully install and configured OrientDB on your Ubuntu 16.04 server. Thanks for using this tutorial installing OrientDB NoSQL Database on Ubuntu 16.04 LTS (Xenial Xerus) system.

The Tags:

Leave a Comment

Comments are closed.