Installing and Configuring OrientDB on Ubuntu 16.04

By Hitesh Jethva, Alibaba Cloud Tech Share Author. Tech Share is Alibaba Cloud’s incentive program to encourage the sharing of technical knowledge and best practices within the cloud community.

OrientDB is a free and an open source NoSQL database management system with support for graph and document databases. It is written in Java can run on any operating system. OrientDB includes an integrated web-based graphical user interface to easily handle the database through a web browser. OrientDB is a fully ACID-complaint with help for multi-master replication, allowing uncomplicated crosswise measuring. OrientDB supports schema-less, schema-full and schema-mixed modes. OrientDB is available in two editions Community Edition and Enterprise Edition. OrientDB Community Edition is built upon by a community of developers and is free for any use.


  • Supports horizontal scaling, fault tolerance, clustering and sharding.
  • Can be up and running quickly.
  • Supports HTTP, RESTful protocol, and JSON additional libraries.
  • Provide an extensible framework for adding external authenticators and password validation.
  • Support database encryption to prevent unauthorized users from accessing database content.
  • Allows to import relational database into OrientDB.

In this tutorial, we will learn how to install and configure OrientDB on an Alibaba Cloud Elastic Compute Service (ECS) instance with Ubuntu 16.04.


  • A fresh Alibaba Cloud ECS instance with Ubuntu 16.04 server installed.
  • A static IP address is configured on the instance
  • A Root password is setup on the instance.

Launch Alibaba Cloud ECS Instance

First, log in to your">Alibaba Cloud ECS Console. Create a new ECS instance, choosing Ubuntu 16.04 as the operating system with at least 2GB RAM. Connect to your ECS instance and log in as the root user.

Once you are logged into your Ubuntu 16.04 instance, run the following command to update your base system with the latest available packages.

Install Java

OrientDB is written in Java. So you will need to install Java to your system. You can install it using the following command:

Once the Java is installed, verify the version of the Java by running the following command:


Install OrientDB

First, you will need to download the latest version of the OrientDB community edition from their official website. You can download it using the following command:

Once the download is completed, extract the downloaded file with the following command:

Next, copy the extracted directory to the /opt:

Next, start the OrientDB server using the following command:

You will need to specify a password for the root user when starting the server for the first time. Once the server starts successfully you should see the following output:

OrientDB server is now up and listening on port 2424 and 2480. You can verify it using the following command:

You should see the following output:

Connect to OrientDB Console

You can connect OrientDB console using the command line interface to working with the application. Run the following command to connect OrientDB console.

You should see the following output:

Now, connect to the server instance using the below command:

You can exit from the OrientDB console any time by pressing Ctrl+C.

Create OrientDB System Service

Next, you will need to create an OrientDB system service file to run OrientDB as a daemon on the system.

First, create a system user for OrientDB daemon with the following command:

Next, give proper permissions to the OrientDB directory:

Next, you will need to specify OrientDB path to the script:

Make the following changes:

Save and close the file, when you are finished. Then modify the server configuration file’s permissions to prevent unauthorized access.

Next, you will need to copy OrientDB default Systemd service file to the /etc/systemd/system directory.

Next, open orientdb.service file and make some changes:

Make the following changes under [Service] section:

Save and close the file, then reload unit file:

Finally, start OrientDB service and enable it to start on boot time with the following command:

You can check the status of OrientDB process using the following command:


Access OrientDB Web Interface

OrientDB is now installed and configured, it’s time to access OrientDB Web Interface.

Open your web browser and type the URL, you will be redirected to the following page:

Provide username as root and the password you set earlier, then click on the CONNECT button, you should see the following page:

Secure OrientDB Web Server

The default OrientDB installation allows access to OrientDB Studio from the public network. So it is recommended to prevent the access from the Internet to OrientDB Studio and console. You can do this by editing the orientdb-server-config.xml file:

Replace the following lines from:


Save and close the file. Then restart OrientDB service with the following command:

Now, open your web browser and type the URL, you will get the connection will be denied message.

Related Alibaba Cloud Products

Batch Compute is a cloud service for massive simultaneous batch processing. The system automatically manages resources, schedules tasks, loads data, and bills by usage. Batch Compute is already widely used in scenarios such as scientific applications, genetic data analysis, CGI rendering, media transcoding, and financial data analysis.

Function Compute is an event driven, serverless computing platform that enables developers to build and deploy their services without the need to manage any infrastructure. It seamlessly handles the resource management, auto scaling, and load balancing so you can focus on your business logic and increase your development velocity. You can also setup various event sources from other Alibaba services to automatically trigger your code to run. The best part is you only pay for the resources your code actually consumes to the nearest 100 milliseconds.


Follow me to keep abreast with the latest technology news, industry insights, and developer trends.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store