Skip to content
Kong Logo | Kong Docs Logo
search
  • We're Hiring!
  • Docs
    • Kong Gateway
    • Kong Konnect
    • Kong Mesh
    • Plugin Hub
    • decK
    • Kubernetes Ingress Controller
    • Insomnia
    • Kuma

    • Docs contribution guidelines
  • Plugin Hub
  • Support
  • Community
  • Kong Academy
Get a Demo Start Free Trial
  • Kong Gateway
  • Kong Konnect
  • Kong Mesh
  • Plugin Hub
  • decK
  • Kubernetes Ingress Controller
  • Insomnia
  • Kuma

  • Docs contribution guidelines
  • 3.3.x (latest)
  • 3.2.x
  • 3.1.x
  • 3.0.x
  • 2.8.x
  • 2.7.x
  • 2.6.x
  • Older Enterprise versions (2.1-2.5)
  • Older OSS versions (2.1-2.5)
  • Archive (pre-2.1)

github-edit-pageEdit this page

report-issueReport an issue

enterprise-switcher-iconSwitch to OSS

On this pageOn this page
  • Prerequisites
  • Installation
    • Verify install
    • Next steps
  • Advanced Installation
    • Package Install
Kong Gateway
3.2.x
  • Home
  • Kong Gateway
  • Install
  • Linux
  • Install Kong Gateway on Ubuntu
You are browsing documentation for an outdated version. See the latest documentation here.

Install Kong Gateway on Ubuntu

The Kong Gateway software is governed by the Kong Software License Agreement. Kong is licensed under an Apache 2.0 license.

This page will install Kong Gateway in traditional mode, where it acts as both the control plane and data plane. Running in this mode may have a small performance impact.  

 

We recommend using Konnect as your control plane to allow your data plane to run at maximum performance and decrease your deployment complexity

Prerequisites

  • A supported system with root or root-equivalent access.
  • (Enterprise only) A license.json file from Kong

Installation

Note: Kong Gateway supports running on AWS Graviton processors. It can run in all AWS Regions where AWS Graviton is supported.

The quickest way to get started with Kong Gateway is using our install script:

Kong Gateway
Kong Gateway (OSS)
bash <(curl -sS https://get.konghq.com/install) -v 3.2.2.2
bash <(curl -sS https://get.konghq.com/install) -p kong -v 3.2.2

This script detects your operating system and automatically installs the correct package. It will also install a Postgres database and bootstrap Kong Gateway for you.

If you’d prefer to install just the package, please see the Package Install section.

Verify install

Once the script completes, run the following in the same terminal window:

curl -i http://localhost:8001

You should receive a 200 status code.

Next steps

Once Kong Gateway is running, you may want to do the following:

  • Optional: Add your Enterprise license.
  • Enable Kong Manager
  • Enable Dev Portal
  • Create services and routes.

Advanced Installation

Package Install

You can install Kong Gateway by downloading an installation package or using our APT repository.

  • We currently package Kong Gateway for Ubuntu Bionic and Focal. If you are using a different release, replace $(lsb_release -sc) with focal in the commands below. To check your release name run lsb_release -sc.
  • Kong Gateway supports running on AWS Graviton processors. It can run in all AWS Regions where AWS Graviton is supported.
Package
APT repository

Install Kong Gateway on Ubuntu from the command line.

  1. Download the Kong package:

    Kong Gateway
    Kong Gateway (OSS)
    curl -Lo kong-enterprise-edition-3.2.2.2.amd64.deb "https://download.konghq.com/gateway-3.x-ubuntu-$(lsb_release -sc)/pool/all/k/kong-enterprise-edition/kong-enterprise-edition_3.2.2.2_amd64.deb"
    curl -Lo kong-3.2.2.amd64.deb "https://download.konghq.com/gateway-3.x-ubuntu-$(lsb_release -sc)/pool/all/k/kong/kong_3.2.2_amd64.deb"
  2. Install the package:

    Kong Gateway
    Kong Gateway (OSS)
    sudo apt install -y ./kong-enterprise-edition-3.2.2.2.amd64.deb
    sudo apt install -y ./kong-3.2.2.amd64.deb
Kong Gateway
Kong Gateway (OSS)

To uninstall the package, run: sudo apt remove kong-enterprise-edition.

To uninstall the package, run: sudo apt remove kong.

Install the APT repository from the command line.

  1. Setup the Kong APT repository:
     echo "deb [trusted=yes] https://download.konghq.com/gateway-3.x-ubuntu-$(lsb_release -sc)/ \
     default all" | sudo tee /etc/apt/sources.list.d/kong.list
    
  2. Update the repository:
     sudo apt-get update
    
  3. Install Kong:

    Kong Gateway
    Kong Gateway (OSS)
    sudo apt install -y kong-enterprise-edition=3.2.2.2
    apt install -y kong=3.2.2
  4. Optional: Prevent accidental upgrades by marking the package as hold:

    Kong Gateway
    Kong Gateway (OSS)
    sudo apt-mark hold kong-enterprise-edition
    sudo apt-mark hold kong
Thank you for your feedback.
Was this page useful?
  • Kong
    THE CLOUD CONNECTIVITY COMPANY

    Kong powers reliable digital connections across APIs, hybrid and multi-cloud environments.

    • Company
    • Customers
    • Events
    • Investors
    • Careers Hiring!
    • Partners
    • Press
    • Contact
  • Products
    • Kong Konnect
    • Kong Gateway
    • Kong Mesh
    • Get Started
    • Pricing
  • Resources
    • eBooks
    • Webinars
    • Briefs
    • Blog
    • API Gateway
    • Microservices
  • Open Source
    • Install Kong Gateway
    • Kong Community
    • Kubernetes Ingress
    • Kuma
    • Insomnia
  • Solutions
    • Decentralize
    • Secure & Govern
    • Create a Dev Platform
    • API Gateway
    • Kubernetes
    • Service Mesh
Star
  • Terms•Privacy
© Kong Inc. 2023