In this tutorial we’ll learn how to install OrientDB on CentOS 7. 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 CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.
Install OrientDB on CentOS 7
Step 1. First, ensure your system is fully up-to-date by running the following:
yum -y update
Step 2. Install OpenJDK 8 packages.
OrientDB requires Java 1.7 or greater. In this tutorial, I choose to install OpenJDK 8 packages as follows:
yum install -y java-1.8.0-openjdk-devel
Having OpenJDK 8 installed, use the below command to verify the result:
Step 3. Installing OrientDB.
Download the latest stable release of OrientDB Community Edition:
cd /opt/ wget -O orientdb-community-2.2.29.tar.gz http://orientdb.com/download.php?file=orientdb-community-2.2.29.tar.gz&os=linux
Extract the downloaded archive:
tar xvzf orientdb-community-2.2.29.tar.gz mv orientdb-community-2.2.29/ orientdb
Step 4. Configure OrientDB Community Edition.
First, create a system user for OrientDB with the following command:
useradd -r orientdb -s /sbin/nologin
After you have created a user for OrientDB you have to set is the owner of the OrientDB files:
chown -R orientdb:orientdb /opt/orientdb/
Next, modify the OrientDB main configuration file:
Change their value to below:
Save and exit the file.
Step 5. Start OrientDB Server.
Now you have to open the service file:
And make it look like below:
[Unit] Description=OrientDB Server After=network.target After=syslog.target [Install] WantedBy=multi-user.target [Service] User=orientdb Group=orientdb ExecStart=/opt/orientdb/bin/server.sh
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 CentOS 7 server. Thanks for using this tutorial for installing OrientDB NoSQL Database on CentOS 7 system.