ArangoDB安裝
ArangoDB的安裝還是挺簡單的,官方給了各個平臺的安裝包,下面是在CentOS8上面安裝的步驟。
從官方網站下載了兩個 rpm 包
- arangodb3-3.6.0-1.0.x86_64.rpm
- arangodb3-client-3.6.0-1.0.x86_64.rpm
安裝
$ sudo yum install arangodb3-3.6.0-1.0.x86_64.rpm
...
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://www.arangodb.com/docs/stable/getting-started.html
Configuring the storage Engine:
https://www.arangodb.com/docs/stable/programs-arangod-server.html#storage-engine
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 '1453d989470216540f049c979021257e'
(You should do this for a FRESH install! For an UPGRADE the password does not need to be changed)
...
這裏需要特別注意一下安裝過程的輸出,打印了arangodb配置文件,shell客戶端,還有啓動服務的命令。其中特別注意一下安全部分,安裝過程會爲arangodb的root用戶設置一個默認的密碼。後面需要用 arango-secure-installation 命令重新設置一下。
設置root密碼
$ sudo arango-secure-installation
啓動服務
# 查看服務狀態
$ sudo systemctl status arangodb3.service
# 啓動服務
$ sudo systemctl start arangodb3.service
驗證服務
啓動服務後,可以通過 Web 管理界面來驗證一下,比如訪問 http://localhost:8529/ 地址,登錄後可以監控和管理 arangodb 數據庫。
也可以使用 arangosh 命令來從命令行登錄 arangodb 系統,用戶使用root用戶,密碼使用上面新設置的密碼。