Install ArangoDB on CentOS 7 - fourslick/notes GitHub Wiki

[root@ve1545 ~]# cd /etc/yum.repos.d/
[root@ve1545 yum.repos.d]# curl -OL https://download.arangodb.com/arangodb33/CentOS_7/arangodb.repo
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   206  100   206    0     0    248      0 --:--:-- --:--:-- --:--:--   248
[root@ve1545 yum.repos.d]# yum -y install arangodb3-3.3.14
Loaded plugins: fastestmirror, langpacks
PLESK_17_8_11-extras                                                                                                                             | 2.9 kB  00:00:00
PLESK_17_PHP56                                                                                                                                   | 2.9 kB  00:00:00
PLESK_17_PHP70                                                                                                                                   | 2.9 kB  00:00:00
PLESK_17_PHP71                                                                                                                                   | 2.9 kB  00:00:00
PLESK_17_PHP72                                                                                                                                   | 2.9 kB  00:00:00
arangodb                                                                                                                                         | 2.9 kB  00:00:00
base                                                                                                                                             | 3.6 kB  00:00:00
epel/x86_64/metalink                                                                                                                             |  25 kB  00:00:00
epel                                                                                                                                             | 3.2 kB  00:00:00
extras                                                                                                                                           | 3.4 kB  00:00:00
plesk-ext-docker                                                                                                                                 | 2.9 kB  00:00:00
plesk-migrator                                                                                                                                   | 2.9 kB  00:00:00
plesk-migrator-tp                                                                                                                                | 2.9 kB  00:00:00
updates                                                                                                                                          | 3.4 kB  00:00:00
webtatic                                                                                                                                         | 3.6 kB  00:00:00
(1/14): PLESK_17_PHP56/primary_db                                                                                                                |  14 kB  00:00:00
(2/14): PLESK_17_PHP70/primary_db                                                                                                                |  13 kB  00:00:00
(3/14): PLESK_17_PHP72/primary_db                                                                                                                |  13 kB  00:00:00
(4/14): PLESK_17_8_11-extras/primary_db                                                                                                          |  30 kB  00:00:00
(5/14): PLESK_17_PHP71/primary_db                                                                                                                |  14 kB  00:00:00
(6/14): epel/x86_64/group_gz                                                                                                                     |  88 kB  00:00:00
(7/14): base/7/x86_64/group_gz                                                                                                                   | 166 kB  00:00:00
(8/14): extras/7/x86_64/primary_db                                                                                                               | 174 kB  00:00:00
(9/14): arangodb/primary_db                                                                                                                      |  31 kB  00:00:00
(10/14): epel/x86_64/updateinfo                                                                                                                  | 932 kB  00:00:00
(11/14): webtatic/x86_64/primary_db                                                                                                              | 332 kB  00:00:00
(12/14): epel/x86_64/primary                                                                                                                     | 3.6 MB  00:00:00
(13/14): base/7/x86_64/primary_db                                                                                                                | 5.9 MB  00:00:01
(14/14): updates/7/x86_64/primary_db                                                                                                             | 5.0 MB  00:00:01
Determining fastest mirrors
 * base: mirror.imt-systems.com
 * epel: mirror.de.leaseweb.net
 * extras: mirror.imt-systems.com
 * updates: mirror.imt-systems.com
 * webtatic: uk.repo.webtatic.com
epel                                                                                                                                                        12650/12650
Resolving Dependencies
--> Running transaction check
---> Package arangodb3.x86_64 0:3.3.14-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================================
 Package                                  Arch                                  Version                                   Repository                               Size
========================================================================================================================================================================
Installing:
 arangodb3                                x86_64                                3.3.14-1                                  arangodb                                 45 M

Transaction Summary
========================================================================================================================================================================
Install  1 Package

Total download size: 45 M
Installed size: 158 M
Downloading packages:
warning: /var/cache/yum/x86_64/7/arangodb/packages/arangodb3-3.3.14-1.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 6e751e9b: NOKEY]  19 MB/s |  32 MB  00:00:00 ETA
Public key for arangodb3-3.3.14-1.x86_64.rpm is not installed
arangodb3-3.3.14-1.x86_64.rpm                                                                                                                    |  45 MB  00:00:02
Retrieving key from https://download.arangodb.com/arangodb33/CentOS_7/repodata/repomd.xml.key
Importing GPG key 0x6E751E9B:
 Userid     : "Frank Celler (ArangoDB Debian Repository) <[email protected]>"
 Fingerprint: cd8c b0f1 e0ad 5b52 e93f 41e7 ea93 f5e5 6e75 1e9b
 From       : https://download.arangodb.com/arangodb33/CentOS_7/repodata/repomd.xml.key
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : arangodb3-3.3.14-1.x86_64                                                                                                                            1/1
Note: Forwarding request to 'systemctl enable arangodb3.service'.
Created symlink from /etc/systemd/system/multi-user.target.wants/arangodb3.service to /usr/lib/systemd/system/arangodb3.service.

ArangoDB 3 (https://www.arangodb.com)
  The multi-model NoSQL database: distributed free and open-source database
  with a flexible data model for documents, graphs, and key-values. Build
  high performance applications using a convenient SQL-like query language
  or JavaScript extensions.

First Steps with ArangoDB:
  https://docs.arangodb.com/latest/Manual/GettingStarted/

Upgrading ArangoDB:
  https://docs.arangodb.com/Installing/Upgrading.html

Configuring the storage Engine:
  https://docs.arangodb.com/latest/Manual/Administration/Configuration/GeneralArangod.html#storage-engine

Upgrading ArangoDB database files:
  > /etc/init.d/arangodb3 upgrade

Configuration file:
  /etc/arangodb3/arangod.conf

Start ArangoDB shell client:
  > /usr/bin/arangosh

Start ArangoDB service:
  > systemctl start arangodb3.service

Enable ArangoDB service:
  > systemctl enable arangodb3.service

SECURITY HINT:
run 'arango-secure-installation' to set a root password
the current password is 'f3e0159e9e4ebeda075b59db10703e84'
(You should do this for a FRESH install! For an UPGRADE the password does not need to be changed)
  Verifying  : arangodb3-3.3.14-1.x86_64                                                                                                                            1/1

Installed:
  arangodb3.x86_64 0:3.3.14-1

Complete!
[root@ve1545 yum.repos.d]#
[root@ve1545 yum.repos.d]# arango-secure-installation
2018-08-19T05:45:25Z [21676] WARNING {memory} environment variable GLIBCXX_FORCE_NEW' is not set. it is recommended to set it to some value to avoid unnecessary memory pooling in glibc++
2018-08-19T05:45:25Z [21676] WARNING {memory} execute 'export GLIBCXX_FORCE_NEW=1'
2018-08-19T05:45:25Z [21676] WARNING {memory} maximum number of memory mappings per process is 65530, which seems too low. it is recommended to set it to at least 512000
2018-08-19T05:45:25Z [21676] WARNING {memory} execute 'sudo sysctl -w "vm.max_map_count=512000"'
2018-08-19T05:45:25Z [21676] WARNING {memory} /sys/kernel/mm/transparent_hugepage/enabled is set to 'always'. It is recommended to set it to a value of 'never' or 'madvise'
2018-08-19T05:45:25Z [21676] WARNING {memory} /sys/kernel/mm/transparent_hugepage/defrag is set to 'always'. It is recommended to set it to a value of 'never' or 'madvise'
2018-08-19T05:45:25Z [21676] WARNING {memory} execute 'sudo bash -c "echo madvise > /sys/kernel/mm/transparent_hugepage/enabled"'
2018-08-19T05:45:25Z [21676] WARNING {memory} execute 'sudo bash -c "echo madvise > /sys/kernel/mm/transparent_hugepage/defrag"'
Please enter password for root user:
Repeat password:
2018-08-19T05:45:36Z [21676] INFO {syscall} file-descriptors (nofiles) hard limit is 8192, soft limit is 8192
2018-08-19T05:45:37Z [21676] INFO Password changed.
2018-08-19T05:45:37Z [21676] INFO {startup} Server will now shutdown due to upgrade, database init or admin restoration.
[root@ve1545 yum.repos.d]# systemctl start arangodb3.service
[root@ve1545 yum.repos.d]# systemctl enable arangodb3.service
[root@ve1545 yum.repos.d]# export GLIBCXX_FORCE_NEW=1
[root@ve1545 yum.repos.d]# sysctl -w "vm.max_map_count=512000"
vm.max_map_count = 512000
[root@ve1545 yum.repos.d]# bash -c "echo madvise > /sys/kernel/mm/transparent_hugepage/enabled"                                                                                    
[root@ve1545 yum.repos.d]# bash -c "echo madvise > /sys/kernel/mm/transparent_hugepage/defrag"
[root@ve1545 yum.repos.d]#