Step:-1. Upgrade the system
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.
# yum update
As I said before, updating the system is necessary to improve the stability and security of the system.
Step:-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
Step:-3. Then, you can start with the installation of ArangoDB using YUM.
# yum install arangodb3
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 issues.
# systemctl status arangodb3
So, ArangoDB is correctly installed and it is running properly too. Finally, you can access to the ArangoDB console
@Now, you can start to use it.
Step:-4. 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.
# vi /etc/arangodb3/arangod.conf
And add the following:
endpoint = tcp://SERVER_IP:8529
In my case, it would be something like this.
After that, do the same with the other configuration file.
# vi /etc/arangodb3/arangosh.conf
Step:-5. 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
After that, open the web browser and go to http://SERVER_IP:8529 and you will see this:
Step:-6. 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
Step:-7. Change the root password, You can also run the command to change the root password:
Go back to the web browser and log in.
Step:-08. Log in
# Next, select the database.
Step:- 09. Select the database
# And you will see the main screen.
Step:-10. ArangoDB interface