Follow these steps to install Aerospike Database on Red Hat Enterprise Linux
(RHEL), and on
el9, and compatible variants, such as CentOS, Rocky Linux,
Amazon Linux 2, Amazon Linux 2023, and Oracle Linux.
These instructions assume that you have the following skills or understanding:
- Familiarity with the Linux operating system you are installing on.
- Shell commands like
tar, and editors.
- TCP/IP networking.
- You must disable SELinux during the installation of the Aerospike database.
- For RHEL 8 (Server 5.7 and later), if you are running a non-standard version of the OS, such as a "stripped down" version to eliminate certain packages for security, Aerospike Enterprise Edition (EE) has certain dependencies that must be satisfied before installation. Refer to CentOS 8 package dependencies.
- For CentOS 7, the Aerospike installation files are built with OpenSSL version 1.02. Aerospike will fail on earlier versions of OpenSSL.
- To install, you must have root access or permission to run
sudo. As an alternative to root access, you can install the binary distribution.
- For Aerospike Database 5.1 and later, be sure to install the proper version of
libcurl. See libcurl Required.
Download the package
See Download Aerospike Database for more details on manual or automated downloads of server versions.
# In server version 6.2 and later
wget -O aerospike.tgz https://download.aerospike.com/artifacts/aerospike-server-enterprise/22.214.171.124/aerospike-server-enterprise_126.96.36.199_tools-8.0.2_el8_x86_64.tgz
# In server versions prior to 6.2
wget -O aerospike.tgz https://download.aerospike.com/artifacts/aerospike-server-enterprise/188.8.131.52/aerospike-server-enterprise-184.108.40.206-el7.tgz
For version 4.5.x or earlier of the Aerospike EE, use the following command and enter your username and password:
wget -O aerospike.tgz https://download.aerospike.com/artifacts/aerospike-server-enterprise/220.127.116.11/aerospike-server-enterprise-18.104.22.168-el7.tgz --user='userName' --password='passWord'
Extract the contents of the package
To extract the contents of the package, run the following:
tar -xvf aerospike.tgz
The directory includes:
license.txt— licenses for Aerospike and other software included in the package
- Tools RPM — Aerospike command-line tools and utilities
- Server RPM — the Aerospike Database package
Install and Configure Aerospike
Install Aerospike Database
To install the server and the tools packages, run the following from the command line:
For a description of files and directories that are installed, see Directory Structure.
Alternatively, you can install the RPMs directly.
22.214.171.124, and so on
sudo rpm -Uvh aerospike-server-enterprise-126.96.36.199-1.el7.aarch64.rpm
sudo rpm -Uvh aerospike-tools-8.1.0-1.el7.aarch64.rpm
Troubleshoot the installation
Installation establishes the server's default configuration. An in-memory test namespace is configured by default. See Configure Aerospike Database to modify and tune the configuration.
Add devices and more
Configure EE feature key file
Aerospike EE requires a feature-key file to start up and optionally enable gated features, such as compression.
Since server 6.1 the feature key file for a single-node cluster is provided, so the server will start up automatically.
To configure logging for the Aerospike database, refer to Configuring Log Files.
The Aerospike database can be controlled with standard
systemctl commands. For details, see Aerospike systemd Daemon Management.
Troubleshoot the startup
Verify Aerospike is running
For details on getting the status of the Aerospike database with
systemctl, see Aerospike systemd Daemon Management.