Skip to content

Install on Google Compute Engine

This quickstart walks you through creating a Google Compute Engine VM, configuring firewall rules, and installing Aerospike Database on Ubuntu. When you’re done, you’ll have a single-node Aerospike cluster running with an in-memory namespace, ready for development and testing.

Prerequisites

  • Root access or permission to run sudo.
  • Verify that you have the version of libcurl that goes with your Database version. Ubuntu 22.04 and 24.04 use libcurl4.
  • Aerospike is compatible with OpenSSL 3, supporting Ubuntu 22.04 and 24.04 LTS.

Create and configure your GCP VM

  1. Sign in to Google Cloud Platform. If you have not already signed up, create an account.

  2. Open the Google Cloud Console at https://console.cloud.google.com/ and select or create a Project.

  3. Create a VM instance. On the Project Dashboard, click Create Instance and use the following options:

    OptionValue
    Nameaerospike-server
    Zoneus-central-1f (choose a zone geographically close to your location)
    Machine Typen1-standard-2
    Boot SourceNew disk from image
    ImageUbuntu 24.04 LTS
    Boot diskStandard persistent disk

    Use defaults for other options and click Create. Your instance should be listed in about a minute.

  4. Configure firewall rules. On the instance page, click the default link under the Network section.

    • Under Firewall Rules, click Create New.
    • Create a rule for the Aerospike server:
      • Name: Aerospike Server
      • Source IP Ranges: 0.0.0.0/0
      • Protocols and Ports: tcp:3000-3004
    • Create another rule for the Aerospike Management Console:
      • Name: Aerospike Management Console
      • Source IP Ranges: 0.0.0.0/0
      • Protocols and Ports: tcp:8081
  5. Connect to your instance. Click SSH to connect using the browser or the gcloud command line tool.

Install Aerospike Database

You can download the software from the download page, or download from the command line with the example URL in Step 1.

We recommend that you read the release notes of the version you download.

To learn about automating downloads from the artifact repository, see the FAQ on downloads.

Aerospike Community, Enterprise, and Federal editions are available for all supported Linux distributions, and use the following naming convention: aerospike-server-EDITION_VERSION_tools-TOOLS-VERSION_DISTRO_ARCHITECTURE.tgz

  1. Update packages and download Aerospike.

    Base URL:

    https://download.aerospike.com/artifacts/aerospike-server-edition/server-version/

    Example download command. The following command is an example only. Choose the edition and version from the artifact index and update the URL accordingly.

    Terminal window
    apt-get update
    wget -O aerospike-server.tgz "https://download.aerospike.com/artifacts/aerospike-server-enterprise/8.1.1.0/aerospike-server-enterprise_8.1.1.0_tools-12.1.1_ubuntu24.04_x86_64.tgz"
  2. Extract and install.

    Terminal window
    tar -xvf aerospike-server.tgz
    cd aerospike-server-enterprise-*
    sudo ./asinstall
  3. Start Aerospike.

    Terminal window
    sudo service aerospike start

Next steps

Feedback

Was this page helpful?

What type of feedback are you giving?

What would you like us to know?

+Capture screenshot

Can we reach out to you?