How to install ArangoDB on Debian 11

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

Hello, friends. In a recent post, we explained how to install ArangoDB on CentOS and derivatives. Today we will install ArangoDB on Debian 11 which is a widely used system for these purposes.

As we have explained before, ArangoDB is a NoSQL database manager focused on scalability and easy administration. It has a free community version and a paid version that allows us to get more features and professional support.

Like many, it is based on documents and collections for data storage, so it is common to find it in mobile applications or configuration scripts.

Let’s get to it.

Preparing the system for installation.

Before we start with the installation, we need to update the system

sudo apt update
sudo apt upgrade

Thereafter, we need to install some necessary packages.

sudo apt-get install apt-transport-https gnupg curl

And now we can continue.

Installing ArangoDB on Debian 11

We can do the installation manually, by downloading the corresponding binaries. But we can also add the ArangoDB repository for Debian 11 to ease the process but also gain integration with the system.

To achieve this, download the GPG key of the repository.

curl -OL https://download.arangodb.com/arangodb39/DEBIAN/Release.key

Then, add it to the system

sudo apt-key add - < Release.key

Thereafter, add the repository to the system by running

echo 'deb https://download.arangodb.com/arangodb39/DEBIAN/ /' | sudo tee /etc/apt/sources.list.d/arangodb.list

Refresh APT so that it downloads package information to the repository

sudo apt update

Now install ArangoDB using the command

sudo apt install arangodb3=3.9.1-1

In the installation process, you will be able to set the root password for ArangoDB. Then you will have to confirm it.

1.- Install ArangoDB on Debian 11
1.- Install ArangoDB on Debian 11

Then you will have to define if you want the databases to be updated automatically.

2.- Upgrade the databases
2.- Upgrade the databases

If you choose yes, then you have to enable the backup and the installation will continue as normal.

3.- Backup databases before upgrading them
3.- Backup databases before upgrading them

Next, check the status of the service to see if ArangoDB has been installed on the system.

sudo systecmtl status arangodb3
4.- ArangoDB status
4.- ArangoDB status

Next, you can log in to the console by running

arangosh

Optional: Configuring the ArangoDB web interface

One of the main features of ArangoDB is that it has a powerful web interface where you can do all the operations you want quickly. It comes by default to work on http://127.0.0.1:8529. This is fine if you have installed it on your personal computer, but if you have installed it on a server, then you have to enable access to the other hosts.

To achieve this, go to the ArangoDB configuration file

sudo nano /etc/arangodb3/arangod.conf

And at the beginning of the file, check the line

endpoint = tcp://127.0.0.1:8529

And replace it with this one

endpoint = tcp://0.0.0.0.0:8529

Save the changes and close the editor. To apply the changes, restart the service.

sudo systemctl restart arangodb3

Remember to open port 8529 in the firewall.

Now open your web browser and go to http://your-server:8529 and you will see the login screen.

5.- ArangoDB login screen
5.- ArangoDB login screen

Then, enter your credentials

If all goes well, you will be able to choose the collection you want to connect to.

6.- ArangoDB web interface
6.- ArangoDB web interface

And finally, you will see the ArangoDB interface.

7.- ArangoDB dashboard
7.- ArangoDB dashboard

Conclusion

In this post, you learned how to install ArangoDB on Debian 11. We are talking about an excellent and professionally supported NoSQL database manager.

Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"
Angelo
Angelo
I am Angelo. A systems engineer passionate about Linux and all open-source software. Although here I'm just another member of the family.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest articles

Join us on Facebook