OrientDB is an open source NoSQL database management system written in Java… It can be used with less systems to handle other data types, which increases performance and security while supporting scalability…
OrientDB works with a native graph database and databases built on SQL… It comes in two flavers: Enterprise and Community editions.. For this post, we’re going to be installing the community edition on Ubuntu…
It is used by major corporations and businesses looking for high performance database systems… Most people will tell you a thing or two about MySQL and MariaDB… however, for professionals, OrientDB is fast, secure and scalable….
This brief tutorial shows students and new users how to install OrientDB database server on Ubuntu 16.04 | 18.04 LTS Servers…To install OrientDB, follow the steps below:
Step 1: Install Java
OrientDB requires Java to function… To get Java installed, run the commands below
sudo add-apt-repository ppa:webupd8team/java
After running the commands above, you should see a prompt to accept the PPA key onto Ubuntu… accept and continue
Now that the PPA repository has been added to Ubuntu, run the commands below to download Oracle Java 8 installer…. the installer should install the latest Java JDK 8 on your Ubuntu machines.
sudo apt update sudo apt install oracle-java8-installer
When you run the commands above you’ll be prompted to access the license terms of the software… accept and continue..
Set Oracle JDK8 as default, to do that, install the oracle-java8-set-default package. This will automatically set the JAVA env variable.
sudo apt install oracle-java8-set-default
Now that JAVA is installed, run the commands below to set its home directory….
sudo nano /etc/environment
Then copy and paste the hightlighted line below and save the file…
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" JAVA_HOME=/usr/lib/jvm/java-8-oracle export JAVA_HOME
After that run the commands below…
When you run echo $JAVA_HOME you should now see Java home directory…
Step 2: Install OrientDB
Now that Java is installed, run the commands below to download OrientDB package… Replace with release number with the latest available….
cd /tmp/ wget https://s3.us-east-2.amazonaws.com/orientdb3/releases/3.0.4/orientdb-3.0.4.tar.gz
Next, move OrientDB package to its home directory….
tar xvf orientdb-3.0.4.tar.gz sudo mv orientdb-3.0.4 /opt/orientdb
Then add a user and group for orientdb….
sudo groupadd -r orientdb sudo useradd --system -g orientdb orientdb sudo chown -R orientdb:orientdb /opt/orientdb
After that, change into the /opt/orientdb/bin directory and run the commands below to install
cd /opt/orientdb/bin sudo ./server.sh
You should be prompted to create a root password… create one and continue…
Step 3: Create OrientDB Service
After the steps above, run the commands below to create a service for OrientDB…
sudo cp /opt/orientdb/bin/orientdb.service /etc/systemd/system/
Then run the commands below:
sudo nano /etc/systemd/system/orientdb.service
Copy and paste the lines below into the file and save…
[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…
Finally, run the commands below to start the service…
sudo systemctl daemon-reload sudo systemctl start orientdb.service
To check the startus, run the commands below…
sudo systemctl status orientdb.service
You should see the info below:
● orientdb.service - OrientDB Server Loaded: loaded (/etc/systemd/system/orientdb.service; disabled; vendor preset Active: active (running) since Thu 2018-09-13 15:48:05 CDT; 8s ago Main PID: 5203 (java) Tasks: 13 (limit: 4663) CGroup: /system.slice/orientdb.service └─5203 java -server -Xms2G -Xmx2G -Djna.nosys=true -XX:+HeapDumpOnOut Sep 13 15:48:12 ubuntu1804 server.sh: at sun.nio.fs.UnixException. Sep 13 15:48:12 ubuntu1804 server.sh: at sun.nio.fs.UnixException. Sep 13 15:48:12 ubuntu1804 server.sh: at sun.nio.fs.UnixException. Sep 13 15:48:12 ubuntu1804 server.sh: at sun.nio.fs.UnixFileSystem Sep 13 15:48:12 ubuntu1804 server.sh: at java.nio.channels.FileCha Sep 13 15:48:12 ubuntu1804 server.sh: at java.nio.channels.FileCha Sep 13 15:48:12 ubuntu1804 server.sh: at com.orientechnologies.ori Sep 13 15:48:12 ubuntu1804 server.sh: at com.orientechnologies.ori Sep 13 15:48:12 ubuntu1804 server.sh: at com.orientechnologies.ori Sep 13 15:48:12 ubuntu1804 server.sh: ... 9 more
Now all you have to do is open your browser and browse to the server hostname or IP address….
Logon with the root accout and password… username: root
You may also like the post below: