In this tutorial we will show you how to install ArangoDB on Ubuntu 16.04 LTS. For those of you who didn’t know, Arango database (ArangoDB) is a multi-model database program, meaning one which uses a combination of Key-Value pairs, files and graphs to store info. It has a flexible information model for files and graphs. It is a general purpose database and gives all attributes which are necessary for a contemporary web application.
This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation ArangoDB on an Ubuntu 16.04 Xenial Xerus server.
Install ArangoDB on Ubuntu 16.04 LTS
Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.
Step 2. Installing ArangoDB.
By default, ArangoDB is not available in Ubuntu repository, so you will need to add the ArangoDB repository to your system:
Now add the key with the following command:
Next add the ArangoDB repository to sources.list and update the system again:
apt-add-repository'deb https://www.arangodb.com/repositories/arangodb3/xUbuntu_16.04/ /'
Next, install ArangoDB by running the following command:
Once the installation is complete, start the arangodb3 service with the following command:
ArangoDB comes with arangosh that provides a command line shell to access the database. You can create new databases, users, collections, documents, and perform all administrative tasks using this client:
When asked for a password, enter the root password. You should see the following output:
/_`|'__/ _` | '_\/_`|/_\/__|'_ \
| (_| | | | (_| | | | | (_| | (_) \__ \ | | |
\__,_|_| \__,_|_| |_|\__, |\___/|___/_| |_|
arangosh (ArangoDB 3.0.12 [linux] 64bit, using VPack 0.1.30, ICU 54.1, V8 126.96.36.199, OpenSSL 1.0.2g-fips 1 Mar 2016)
Copyright (c) ArangoDB GmbH
Pretty printing values.
Connected to ArangoDB 'http+tcp://127.0.0.1:8529' version: 3.0.12 [server], database: '_system', username: 'root'
ArangoDB comes with built-in, user friendly web interface for performing administrative tasks. First, open the arangod.conf file located in the /etc/arangodb3/ directory:
Add your server’s IP address as follows:
Next, open the arangosh.conf file located at /etc/arangodb3/ directory:
Again, add your server’s IP address:
Save the file and restart the ArangoDB service:
Finally steps, Open your favorite web browser and type the URL http://192.168.0.227:8529. This will open up the login screen for the _system db. After entering your login credentials, you will see the ArangoDB splash screen. This concludes my tutorial.
Congratulation’s! You have successfully installed ArangoDB. Thanks for using this tutorial for installing ArangoDB on your Ubuntu 16.04 LTS. For additional help or useful information, we recommend you to check the official ArangoDB web site.