15 C
Texas
angeloma
Senior Writer and partner

How to install ArangoDB on CentOS 8 / RHEL 8 / Oracle Linux 8?

Relational database management systems dominate many segments of programming. However, it is increasingly common to see real alternatives to this type of database. Of those applications, it seems that MongoDB is one of the most popular but ArangoDB improves and improves every day. In this post, I will tell you about ArangoDB, some of the main features and more. Also, I will show you how to install ArangoDB on CentOS 8 / RHEL 8 / Oracle Linux 8.

A little bit of ArangoDB

ArangoDB is a NoSQL database manager. It is built in C++ and is open source. Its main feature is that it is multi-model. That is, it supports different data models such as (JSON), graphs and key-value.

On the other hand, ArangoDB has two versions. The first one is paid and offers support at different levels. The second is communitarian, ideal for small or educational projects.

If you want to manage a server instance easily, ArangoDB allows it through a nice and intuitive web interface. Besides this, it has connectors for many programming languages, so this should not be a limitation. Of course, it has installers for many Linux distributions.

- Advertisement -

So let us get to work.

Install ArangoDB on CentOS 8 / RHEL 8 / Oracle Linux 8

ArangoDB is an application that takes documentation very seriously. In fact, it is a very well documented application that makes it easy to work with. And the installation process is available to many systems through its repository.

So the first step to install ArangoDB on CentOS 8 / RHEL 8 / Oracle Linux 8 is to add the repository.

Open a terminal and run the following:

:~$ su
:~# cd /etc/yum.repos.d/

Then, import the GPG key to secure the repository addition.

:~# curl -OL https://download.arangodb.com/arangodb35/RPM/arangodb.repo

1.- Download the GPG key for the repository
1.- Download the GPG key for the repository

After this, you can install ArangoDB by typing the following command:

:~# dnf install arangodb3-3.5.0

2.- Install ArangoDB on CentOS 8 / RHEL 8 /Oracle Linux 8
2.- Install ArangoDB on CentOS 8 / RHEL 8 /Oracle Linux 8

Now that ArangoDB is installed, you have to do some configuration before using it.

Making some configuration before using ArangoDB on CentOS 8 / RHEL 8 / Oracle Linux 8

ArangoDB is already installed but does not have a key configured for the root user. As we know, this is vital because then, anyone can access the stored data.

So use the following command to set the password for the root user:

:~# arango_secure_installation

3.- Set a password for the root user
3.- Set a password for the root user

With this you can now enter the ArangoDB shell and start working:

:~# systemctl start arangodb3
:~# arangosh

4.- ArangoDB shell on CentOS 8 / RHEL 8 / Oracle Linux 8
4.- ArangoDB shell on CentOS 8 / RHEL 8 / Oracle Linux 8

One of the most outstanding potentials of ArangoDB is its web interface. Thanks to it, it is possible to administer the instance quickly and easily. In addition to visualizing the data in a better way.

So, open the file /etc/arangodb3/arangod.conf. At the beginning of the file, it changes the endpoint value and adds the IP address of the computer where ArangoDB is running. By default, it is configured for localhost. There you will also see the default port used by the application which is 8529.

:~# nano /etc/arangodb3/arangod.conf

5.- Enabling the web interface for ArangoDB
5.- Enabling the web interface for ArangoDB

This same process must be done in the file /etc/arangodb3/arangosh.conf.

:~# nano /etc/arangodb3/arangosh.conf

6.- Configuring the web interface
6.- Configuring the web interface

For all this to work, it is necessary to add the corresponding rules in the Firewall. Specifically, open port 8529. Then, restart ArangoDB.

:~# firewall-cmd --add-port=8529/tcp --permanent
success
:~# firewall-cmd --reload
success
:~# systemctl restart arangodb3

Now, you can access to the web interface using your web browser. Go to http://your-server:8529

7.- ArangoDB running on CentOS 8 / RHEL 8 / Oracle Linux 8
7.- ArangoDB running on CentOS 8 / RHEL 8 / Oracle Linux 8

Type your credentials and click on the Login button. You will have to select the database.

8.- Select the database to connect the web interface
8.- Select the database to connect the web interface

Finally, you will see the dashboard. And you can start to work.

9.- ArangoDB on CentOS 8 / RHEL 8 / Oracle Linux 8
9.- ArangoDB on CentOS 8 / RHEL 8 / Oracle Linux 8

And that is it.

Conclusion

ArangoDB is a very popular database manager and increasingly influential in the world of programming. It is frequently used in IoT technology as well as in mobile phones. As you could see, it is easy to install and thus saves us a lot of work.

Please share this post with your friends and join our Telegram channel.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article