Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install and configure ArangoDB in Linux

2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the relevant knowledge of how to install and configure ArangoDB in Linux, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe you will have something to gain after reading this Linux article on how to install and configure ArangoDB. Let's take a look.

ArangoDB is a native multi-model database with key/value key / value pairs, graph graph and document document data model. It provides a unified database query language that covers three data models and allows mixed use of the three models in a single query.

Installation of ArangoDB under Linux

This article takes CentOS 7 as an example, and other Linux distributions can follow the official tips.

Execute the following command with the privileges of root:

Cd / etc/yum.repos.d/curl-OL https://download.arangodb.com/arangodb33/CentOS_7/arangodb.repoyum-y install arangodb3- 3.3.7yum-y install arangodb3-debuginfo-3.3.7 (not required by default)

After the installation is successful, take a closer look at the output of the terminal:

SECURITY HINT: run 'arango-secure-installation' to set a root password the current password is' 894a31beb567898c6dc0easdefga1eb6b'

It can be found that the default user is root, and a temporary password is provided, as well as a command to change the root password: arango-secure-installation, which is actually a soft link of arangod, and arangod is the database server command of ArangoDB, which can be used to start the database, change the password and so on.

At the same time, ArangoDB provides a web client to operate the database, which can be opened after starting the database server. The default port is 8529. You can also change the password after logging in with the initial password, which is much more convenient for students who are unfamiliar with the command line. After all, the graphical interface is more intuitive.

Configuration of ArangoDB

There are many configuration files for ArangoDB. What we usually configure is that the directory of this file under arangod.conf,Linux is usually under / etc/arangodb3/. Under Windows, because I am often used to using compressed package version, his configuration file is under the etc/arangodb3 directory of the unzipped directory.

Usually, the contents to be configured are the storage path of the data, the log path, the access address and so on.

Configure the data path:

Directory = / var/lib/arangodb3

Configure the log path:

File = / var/log/arangodb3/arangod.log

Configure the access path:

Endpoint = tcp://127.0.0.1:8529

If you only access on the local computer, there is no problem, but if you want to access on the local area network and the external network, you must also add the access address of the local area network and the external network:

Endpoint = tcp://192.168.1.101:8529

After modification, restart the database and you can access it outside of this machine.

ArangoDB start

A long password will be provided after the initial installation, which is not easy to remember, so we need to change the password. I mainly introduce two methods to change the password: using the command in the terminal and changing it in the graphical interface.

1. Change the password at the terminal

Enter the following command at the terminal:

Sudo arango-secure-installation

You will be prompted to enter the password for root:

Please enter password for root user:

Enter the new password twice to complete the password change, does not seem to verify the old password.

After the password is changed, you can start the database login.

2. The graphical interface changes the password.

To use the graphical interface, you need to start the ArangoDB database first. There are two ways to start the database. One is to directly use the arangod command mentioned above:

Sudo arangod

Or use the service systemd operation of the system

Sudo systemctl start arangodb3

……

INFO ArangoDB (version 3.3.7 [linux]) is ready for business. Have fun!

Check the terminal or log after startup, which indicates that the startup is successful.

Check the status of ArangoDB:

Sudo systemctl status arangodb3

If the display looks like this:

Active: active (running) since...

Indicates that the startup was successful.

The latter is recommended by the two start-up methods, which can be easily managed through system startup.

After startup, you can open the client interface in the browser and enter http://localhost:8529:

Username defaults to root, and the password is the initial long string of characters. After logging in, select _ system in the database, go to the home page, select USERS in the left column, click root user on the right, and you will see the button to change the password. Click to change the password.

This is the end of the article on "how to install and configure ArangoDB in Linux". Thank you for reading! I believe you all have a certain understanding of "how to install and configure ArangoDB in Linux". If you want to learn more, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report