How to Install ArangoDB: A Step-by-Step Guide
How to Install ArangoDB: A Step-by-Step Guide
ArangoDB is a powerful multi-model NoSQL database that supports graph, document, and key-value data models in one engine. Whether you want to use it for development, testing, or production, this guide covers how to install ArangoDB on Linux, Windows, and macOS systems with clear step-by-step instructions.
Prerequisites
- A system running a supported version of Linux (such as Ubuntu or CentOS), Windows 10/11, or macOS.
- Administrator or root access to install software.
- Basic familiarity with using command-line interfaces.
- Internet connection to download the installation packages.
Installing ArangoDB on Linux
This example uses Ubuntu 20.04 or later. For other distros, commands may vary.
- Open a terminal.
- Update the package list:
- Install required packages:
- Add the ArangoDB repository GPG key:
- Add the ArangoDB repository to your sources list:
- Update again and install ArangoDB:
- During installation, you will be prompted to set an initial password for the database administrator
root. Provide a secure password and confirm. - Start the ArangoDB service and enable it to launch on boot:
- Verify the service is running:
sudo apt update
sudo apt install curl apt-transport-https gnupg
curl -fsSL https://download.arangodb.com/arangodb38/DEBIAN/Release.key | sudo gpg --dearmor -o /usr/share/keyrings/arangodb-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/arangodb-archive-keyring.gpg] https://download.arangodb.com/arangodb38/DEBIAN/ /" | sudo tee /etc/apt/sources.list.d/arangodb.list
sudo apt update
sudo apt install arangodb3
sudo systemctl start arangodb3
sudo systemctl enable arangodb3
systemctl status arangodb3
Installing ArangoDB on Windows
- Visit the official ArangoDB download page (Official site).
- Download the Windows installer (.msi) for the latest stable release.
- Run the installer executable.
- Follow the setup wizard prompts:
- Accept the license agreement.
- Choose the installation directory or leave the default.
- Set the administrator (
root) password when prompted.
- Allow the installation process to complete.
- After installation, ArangoDB will run as a Windows service automatically.
- Open a Command Prompt window and verify installation by typing:
- Start using ArangoDB by launching the web interface at
http://127.0.0.1:8529/in your browser.
arangosh --version
Installing ArangoDB on macOS
- Install Homebrew if you do not have it yet by running this command in Terminal:
- Tap the ArangoDB repository:
- Install ArangoDB:
- Start ArangoDB server manually by running:
- Set the root password via the
arangoshshell or access the web interface athttp://127.0.0.1:8529/.- Run
arangoshin another terminal window. - Set the password with commands or use the interactive prompt.
- Run
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew tap arangodb/arangodb
brew install arangodb
arangod --server.endpoint tcp://127.0.0.1:8529
Troubleshooting Common Issues
- Cannot connect to database at startup: Confirm the service is running and listening on port 8529.
- Password prompt missing or login failed: Reset password using the
arangoshshell or reinstall. - Installation package not found: Verify you are downloading from the official ArangoDB website or repositories.
- Permission denied errors on Linux: Use
sudoprivileges for installation and starting the service.
Summary Checklist
- Choose your operating system.
- Download or add appropriate repositories for ArangoDB.
- Install ArangoDB using package manager or installer.
- Set the root user password securely.
- Start and verify the database server status.
- Connect to the web interface or use the shell
arangosh. - Troubleshoot common errors if they arise.
For additional help and advanced configuration, refer to the official ArangoDB documentation (Official site).
To expand your knowledge about graph databases, you can also check our detailed tutorial on How to Query Graphs with Cypher: Complete Tutorial.
