ArangoDB - Configuration système requise

Dans ce chapitre, nous discuterons de la configuration système requise pour ArangoDB.

La configuration système requise pour ArangoDB est la suivante -

  • Un serveur VPS avec une installation Ubuntu
  • RAM: 1 Go; Processeur: 2,2 GHz

Pour toutes les commandes de ce tutoriel, nous avons utilisé une instance d'Ubuntu 16.04 (xenial) de RAM 1 Go avec un processeur ayant une puissance de traitement de 2,2 GHz. Et toutes les commandes arangosh de ce didacticiel ont été testées pour la version 3.1.27 d'ArangoDB.

Comment installer ArangoDB?

Dans cette section, nous verrons comment installer ArangoDB. ArangoDB est pré-construit pour de nombreux systèmes d'exploitation et distributions. Pour plus de détails, veuillez vous référer à la documentation ArangoDB. Comme déjà mentionné, pour ce tutoriel, nous utiliserons Ubuntu 16.04x64.

La première étape consiste à télécharger la clé publique de ses référentiels -

# wget https://www.arangodb.com/repositories/arangodb31/
xUbuntu_16.04/Release.key

Production

--2017-09-03 12:13:24-- https://www.arangodb.com/repositories/arangodb31/xUbuntu_16.04/Release.key 
Resolving https://www.arangodb.com/
(www.arangodb.com)... 104.25.1 64.21, 104.25.165.21,
2400:cb00:2048:1::6819:a415, ... 
Connecting to https://www.arangodb.com/
(www.arangodb.com)|104.25. 164.21|:443... connected. 
HTTP request sent, awaiting response... 200 OK 
Length: 3924 (3.8K) [application/pgpkeys]
Saving to: ‘Release.key’
Release.key 100%[===================>] 3.83K - .-KB/s in 0.001s
2017-09-03 12:13:25 (2.61 MB/s) - ‘Release.key’ saved [39 24/3924]

Le point important est que vous devriez voir le Release.key enregistré à la fin de la sortie.

Laissez-nous installer la clé enregistrée en utilisant la ligne de code suivante -

# sudo apt-key add Release.key

Production

OK

Exécutez les commandes suivantes pour ajouter le référentiel apt et mettre à jour l'index -

# sudo apt-add-repository 'deb
https://www.arangodb.com/repositories/arangodb31/xUbuntu_16.04/ /'
# sudo apt-get update

Comme dernière étape, nous pouvons installer ArangoDB -

# sudo apt-get install arangodb3

Production

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
grub-pc-bin
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
arangodb3
0 upgraded, 1 newly installed, 0 to remove and 17 not upgraded.
Need to get 55.6 MB of archives.
After this operation, 343 MB of additional disk space will be used.

presse Enter. Maintenant, le processus d'installation d'ArangoDB va commencer -

Get:1 https://www.arangodb.com/repositories/arangodb31/xUbuntu_16.04
arangodb3 3.1.27 [55.6 MB]
Fetched 55.6 MB in 59s (942 kB/s)
Preconfiguring packages ...
Selecting previously unselected package arangodb3.
(Reading database ... 54209 files and directories currently installed.)
Preparing to unpack .../arangodb3_3.1.27_amd64.deb ...

Unpacking arangodb3 (3.1.27) ...
Processing triggers for systemd (229-4ubuntu19) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up arangodb3 (3.1.27) ...
Database files are up-to-date.

Lorsque l'installation d'ArangoDB est sur le point de se terminer, l'écran suivant apparaît -

Ici, il vous sera demandé de fournir un mot de passe pour ArangoDB rootutilisateur. Notez-le attentivement.

Sélectionnez le yes option lorsque la boîte de dialogue suivante apparaît -

Lorsque vous cliquez Yescomme dans la boîte de dialogue ci-dessus, la boîte de dialogue suivante apparaît. Cliquez surYes ici.

Vous pouvez également vérifier l'état d'ArangoDB avec la commande suivante -

# sudo systemctl status arangodb3

Production

arangodb3.service - LSB: arangodb
Loaded: loaded (/etc/init.d/arangodb3; bad; vendor pre set: enabled)
Active: active (running) since Mon 2017-09-04 05:42:35 UTC;
4min 46s ago
Docs: man:systemd-sysv-generator(8)
Process: 2642 ExecStart=/etc/init.d/arangodb3 start (code = exited,
status = 0/SUC
Tasks: 22
Memory: 158.6M
CPU: 3.117s
CGroup: /system.slice/arangodb3.service
├─2689 /usr/sbin/arangod --uid arangodb
--gid arangodb --pid-file /va
└─2690 /usr/sbin/arangod --uid arangodb
--gid arangodb --pid-file /va
Sep   04 05:42:33   ubuntu-512  systemd[1]:        Starting LSB:  arangodb...
Sep   04 05:42:33   ubuntu-512  arangodb3[2642]:  * Starting arango database server a
Sep   04 05:42:35   ubuntu-512  arangodb3[2642]:   {startup} starting up in daemon mode
Sep   04 05:42:35   ubuntu-512  arangodb3[2642]:   changed working directory for child
Sep   04 05:42:35   ubuntu-512  arangodb3[2642]:   ...done. 
Sep   04 05:42:35   ubuntu-512  systemd[1]:        StartedLSB: arang odb.
Sep   04 05:46:59   ubuntu-512  systemd[1]:        Started LSB: arangodb. lines 1-19/19 (END)

ArangoDB est maintenant prêt à être utilisé.

Pour appeler le terminal arangosh, tapez la commande suivante dans le terminal -

# arangosh

Production

Please specify a password:

Fournir le root mot de passe créé au moment de l'installation -

_
__ _ _ __ __ _ _ __ __ _ ___ | |
/ | '__/ _ | ’ \ / ` |/ _ / | ’
| (| | | | (| | | | | (| | () _ \ | | |
_,|| _,|| ||_, |_/|/| ||
|__/
arangosh (ArangoDB 3.1.27 [linux] 64bit, using VPack 0.1.30, ICU 54.1, V8
5.0.71.39, OpenSSL 1.0.2g 1 Mar 2016)

Copyright (c) ArangoDB GmbH

Pretty printing values.
Connected to ArangoDB 'http+tcp://127.0.0.1:8529' version: 3.1.27 [server],
database: '_system', username: 'root'

Please note that a new minor version '3.2.2' is available
Type 'tutorial' for a tutorial or 'help' to see common examples
127.0.0.1:[email protected]_system> exit

Pour vous déconnecter d'ArangoDB, tapez la commande suivante -

127.0.0.1:[email protected]_system> exit

Production

Uf wiederluege! Na shledanou! Auf Wiedersehen! Bye Bye! Adiau! ¡Hasta luego!
Εις το επανιδείν!

להתראות ! Arrivederci! Tot ziens! Adjö! Au revoir! さようなら До свидания! Até
Breve! !خداحافظ