21 C
Texas
angeloma
Senior Writer and partner

Install ArangoDB on CentOS 7

The world spins and spins, that is to say, every time technologies and alternatives to the already existing ones arise. We live in the age of data and information, and that is why it is necessary to have a database manager ready for use. Especially if we take into account that the applications are becoming more and more demanding. With this in mind, is that effective alternatives to SQL databases arise. Some of these alternatives are widely used in mobile phones and others in cloud computing applications. So, today I will show you how to install ArangoDB on CentOS7.

We’ve already talked about ArangoDB on this site. ArangoDB is a NoSQL type database handler, that is, it does not use the traditional data storage system as in MySQL or PostgreSQL. ArangoDB stands out for being high performance, open source and easily scalable.

As you can see, we are in the presence of a database manager for a fairly defined segment of the market. On the other hand, ArangoDB has community and enterprise versions for business projects.

So, let us start to install ArangoDB on CentOS 7.

1. Upgrade the system

- Advertisement -

First, you need to update the system completely. With this, you will have a faster and more agile system to perform the tasks. In addition, you will have installed the latest security patches intended to solve problems in the packages.

:~$ su
:~# yum update

1.- Upgrade the system to improve the security
1.- Upgrade the system to improve the security

As I said before, updating the system is necessary to improve the stability and security of the system.

2. Install ArangoDB on CentOS 7

The most efficient way to install ArangoDB on a CentOS 7 system is to do it through YUM. For this, it is vital to add the official repository of ArangoDB. So, let us do it.

:~# cd /etc/yum.repos.d/
:~# curl -OL https://download.arangodb.com/arangodb34/RPM/arangodb.repo

2.- Add the ArangoDB repository
2.- Add the ArangoDB repository

Then, you can start with the installation of ArangoDB using YUM.

:~# yum install arangodb3

3.- Install ArangoDB on CentOS
3.- Install ArangoDB on CentOS

After that, you have to enable and start the ArangoDB service.

:~# systemctl enable arangodb3
:~# systemctl start arangodb3

It is a good idea to check the service status to find some issue.

:~# systemctl status arangodb3

4.- Check the ArangoDB status
4.- Check the ArangoDB status

So, ArangoDB is correctly installed and it is running properly too.

Finally, you can access to the ArangoDB console

:~# arangosh

5.- ArangoDB shell
5.- ArangoDB shell

Now, you can start to use it.

3. Using the web interface

ArangoDB has a quite friendly and useful web interface, with it you will be able to make multiple configurations and operations in a very friendly way. To enable it is necessary to edit some configuration files.

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

And add the following:

endpoint = tcp://SERVER_IP:8529

In my case, it would be something like this.

6.-Enabling the web interface
6.-Enabling the web interface

After that, do the same with the other configuration file.

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

7.- Enabling the ArangoDB web interface
7.- Enabling the ArangoDB web interface

Then, restart the ArangoDB service.

:~# systemctl restart arangodb3

Next, set the firewall rules to allow the use of the port 8529 by ArangoDB.

:~# firewall-cmd --add-port=8529/tcp --permanent
:~# firewall-cmd --reload

8.- Add the port
8.- Add the port

After that, open the web browser and go to http://SERVER_IP:8529 and you will see this:

10.- ArangoDB web interface
10.- ArangoDB web interface

Now, we have to change the root password. Just type:

:~# systemctl stop arangodb3
:~# ARANGODB_DEFAULT_ROOT_PASSWORD=your_password arango-secure-installation

9.- Change the root password
9.- Change the root password

You can also run the command to change the root password:

:~# arangodb_secure_installation

Go back to the web browser and log in.

11.- Log in
11.- Log in

Next, select the database.

12.- Select the database
12.- Select the database

And you will see the main screen.

13. ArangoDB interface
13. ArangoDB interface

Conclusion

As you can notice, ArangoDB has a fairly simple installation process, taking into account its potential. For it, it has a repository for CentOS 7 that facilitates the process of installation and update.

Please share this post with your friends.

- 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