OrientDB is a multi-model NoSQL data set with help for diagram and archive information bases. It is a Java application and can run on any working framework. It’s additionally completely ACID-grievance with help for multi-ace replication, permitting simple level scaling.
In this post, We will install and configure OrientDB on Ubuntu 18.04 LTS
You need to first update the current ubuntu repository by using the given command.
sudo apt update && sudo apt upgrade -y
You need to install some packages its required for OrientDB, Executive the following command for the same.
sudo apt install apt-transport-https openjdk-8-jre-headless -y
You need to use the wget command to download the OrientDB packages, Use the following command for the same.
cd /tmp
wget https://s3.us-east-2.amazonaws.com/orientdb3/releases/3.0.4/orientdb-3.0.4.tar.gz
tar xvf orientdb-3.0.4.tar.gz
sudo mkdir /opt/orientdb
sudo mv orientdb-3.0.4 /opt/orientdb
You need to create system user and group which is use to control the OrientDB process, Use the given command for the same.
sudo groupadd -r orientdb
sudo useradd --system -g orientdb orientdb
You need to update the permission on the /opt/orientdb directory by execution the command.
sudo chown -R orientdb:orientdb /opt/orientdb
You need to executive the below command to start the OrientDB server.
cd /opt/orientdb/bin/
sudo ./server.sh
This is very important to create systemD service for OrientDB, Follow the given commands for the same.
sudo cp /opt/orientdb/bin/orientdb.service /etc/systemd/system/
after this you need to update the user and group name in orientdb.service file.
sudo nano /etc/systemd/system/orientdb.service
You should get output like this.
[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 from the nano text editor.
Step 8: Start the OrientDB service
First you need to reoad the daemon and then start the OrientDB servie by using systemctl command.
sudo systemctl daemon-reload
sudo systemctl start orientdb
After that you can open the browser with given url to test OrientDB in GUI mode.
http://server:2480/studio/index.html
Bash Script | |
#!/bin/bash
sudo apt update && sudo apt upgrade
sudo apt install apt-transport-https openjdk-8-jre-headless
export RELEASE="3.0.4"
wget https://s3.us-east-2. amazonaws.com/orientdb3/ releases/${RELEASE}/orientdb-$ {RELEASE}.tar.gz
tar xvf orientdb-${RELEASE}.tar.gz
sudo mv orientdb-${RELEASE} /opt/orientdb
sudo groupadd -r orientdb
sudo useradd --system -g orientdb orientdb
sudo chown -R orientdb:orientdb /opt/orientdb
cd /opt/orientdb/bin/
sudo ./server.sh
Conclusion
We have successfully install and configure the OrientDB in our Ubuntu 18.04 server.