Installing NGINX Plus
This guide provides step-by-step instructions for installing NGINX Plus from an official repository on different operating systems. It also covers installing and enabling dynamic modules, as well as enabling NGINX Plus in rootless or offline environments.
Since May 13, 2026, NGINX Plus is published in two release types:
- Long-Term Support (LTS) — stability and security-focused
- Continuous Release (CR) — feature and performance-focused
The NGINX Plus LTS release model is intended for mission-critical production environments. During an LTS lifecycle, F5 delivers security fixes and CVE mitigations without introducing new features. New features are delivered in Continuous Releases (CR) during the same annual cycle.
- Cadence: annual (one LTS per year)
- Patching model: security/CVE fixes only (no feature changes within the LTS line)
- Support window: up to 3 years
- Concurrency: up to 3 LTS versions supported at the same time
- Version format: an LTS release has
0as the second numeric component, for example:PLS.37.0.0.1. LTS updates increment the third component, for example:PLS.37.0.1.1.
To use the LTS release, update your repository configuration to point to the LTS package URL, replacing the default URL. See Installing NGINX Plus LTS.
NGINX Plus Continuous Releases (CR) are published several times within an annual LTS cycle. Each CR contains the latest features and performance improvements. The CR cycle ends when a new LTS is released.
- Cadence: every 2–6 months
- Patching model: CRs are never patched; fixes, including CVEs, are delivered as the next CR
- Support window: latest CR only; when a new CR is released, the previous CR immediately reaches End of Support
- Version format: CRs increment the second numeric component, for example:
PLS.37.1.0.0,PLS.37.2.0.0
By default, NGINX Plus repositories are configured to receive Continuous Releases. To use LTS, update your repository configuration to point to the LTS package URL, replacing the default URL. See Installing NGINX Plus LTS.
Available repository configuration options:
- Default: receive Continuous Releases within the current LTS release, upgrade to each new LTS when it is released annually and then receive its CRs. Follow the steps for your operating system in this guide.
- Pin to current LTS only: receive only security updates for this LTS, no CRs, no upgrade to next LTS; supported up to three years. See Installing NGINX Plus LTS.
- Pin to LTS track: upgrade to the newest LTS when it is released annually, no CRs. See Installing NGINX Plus LTS.
Before you begin, make sure you have:
- MyF5 Customer Portal access, credentials are provided in the email from F5, Inc.
- An active paid or trial NGINX Plus subscription. Details can be verified on the MyF5 Customer Portal.
- A supported operating system and architecture.
- Administrative privileges:
rootaccess orsudo, or see Unprivileged installation. - Internet access, or see Offline installation.
-
Check if your operating system and architecture are supported. For a complete list of supported platforms and architectures, see the Technical Specifications.
-
Back up your NGINX Plus configuration and log files if you have an older NGINX Plus package installed. For more information, see Upgrading NGINX Plus.
-
Download the SSL certificate, private key, and the JWT license file associated with your NGINX Plus subscription from the MyF5 Customer Portal:
- Log in to MyF5.
- Go to My Products & Plans > Subscriptions to see your active subscriptions.
- Find your NGINX products or services subscription, and select the Subscription ID for details.
- Download the <nginx-repo>.crt and <nginx-repo>.key from the subscription page.
- Download the JSON Web Token (JWT) from the subscription page. See About Subscription Licenses for details.
-
Install the ca-certificates dependency:
shell sudo dnf update && \ sudo dnf install ca-certificates -
Create the /etc/ssl/nginx directory:
sudo mkdir -p /etc/ssl/nginx -
Copy the downloaded .crt and .key files to the /etc/ssl/nginx/ directory and make sure they are named nginx-repo.crt and nginx-repo.key:
shell sudo cp <DOWNLOADED_FILE_NAME>.crt /etc/ssl/nginx/nginx-repo.crt sudo cp <DOWNLOADED_FILE_NAME>.key /etc/ssl/nginx/nginx-repo.keyIn each command, replace
<DOWNLOADED_FILE_NAME>with the corresponding downloaded filename without its.crtor.keyextension. -
Add the NGINX Plus repository to your Amazon Linux 2023 instance. Download the plus-amazonlinux2023.repo file to /etc/yum.repos.d:
sudo wget -P /etc/yum.repos.d https://cs.nginx.com/static/files/plus-amazonlinux2023.repo -
Install the nginx-plus package. Any older NGINX Plus package is automatically replaced.
sudo dnf install nginx-plus -
Copy the downloaded JWT file to the /etc/nginx/ directory and make sure it is named license.jwt:
sudo cp <DOWNLOADED_FILE_NAME>.jwt /etc/nginx/license.jwtReplace
<DOWNLOADED_FILE_NAME>with the downloaded filename without the.jwtextension. -
Check the
nginxversion to verify that NGINX Plus is installed correctly:nginx -v -
Make sure license reporting to F5 licensing endpoint is configured. By default, no configuration is required. However, it becomes necessary when NGINX Plus is installed in a disconnected environment, uses NGINX Instance Manager for usage reporting, or uses a custom path for the license file. Configuration can be done in the
mgmt {}block of the NGINX Plus configuration file (/etc/nginx/nginx.conf). For more information, see About Subscription Licenses. -
If you are using NGINX Instance Manager in your infrastructure, install and enable NGINX Agent. See Install and Configure NGINX Agent for details.
Supported RHEL-based systems include RHEL 8.1+, Oracle Linux 8.1+, AlmaLinux 8, and Rocky Linux 8.
-
Check if your operating system and architecture are supported. For a complete list of supported platforms and architectures, see the Technical Specifications.
-
Back up your NGINX Plus configuration and log files if you have an older NGINX Plus package installed. For more information, see Upgrading NGINX Plus.
-
Download the SSL certificate, private key, and the JWT license file associated with your NGINX Plus subscription from the MyF5 Customer Portal:
- Log in to MyF5.
- Go to My Products & Plans > Subscriptions to see your active subscriptions.
- Find your NGINX products or services subscription, and select the Subscription ID for details.
- Download the <nginx-repo>.crt and <nginx-repo>.key from the subscription page.
- Download the JSON Web Token (JWT) from the subscription page. See About Subscription Licenses for details.
-
Install the ca-certificates dependency:
shell sudo dnf update && \ sudo dnf install ca-certificates -
Create the /etc/ssl/nginx directory:
sudo mkdir -p /etc/ssl/nginx -
Copy the downloaded .crt and .key files to the /etc/ssl/nginx/ directory and make sure they are named nginx-repo.crt and nginx-repo.key:
shell sudo cp <DOWNLOADED_FILE_NAME>.crt /etc/ssl/nginx/nginx-repo.crt sudo cp <DOWNLOADED_FILE_NAME>.key /etc/ssl/nginx/nginx-repo.keyIn each command, replace
<DOWNLOADED_FILE_NAME>with the corresponding downloaded filename without its.crtor.keyextension. -
Add the NGINX Plus repository by downloading the nginx-plus-8.repo file to /etc/yum.repos.d:
sudo wget -P /etc/yum.repos.d https://cs.nginx.com/static/files/plus-8.repoPin NGINX Plus to a specific version
To pin NGINX Plus to a specific version (for example, R33):
-
Edit the
/etc/yum.repos.d/nginx-plus-8.repofile. -
Update the repository base URL to the desired version:
baseurl=https://pkgs.nginx.com/plus/R33/centos/8/$basearch/ -
Save the changes and exit.
-
Update the repository information:
sudo dnf update
-
-
Install the nginx-plus package. Any older NGINX Plus package is automatically replaced.
sudo dnf install nginx-plus -
Copy the downloaded JWT file to the /etc/nginx/ directory and make sure it is named license.jwt:
sudo cp <DOWNLOADED_FILE_NAME>.jwt /etc/nginx/license.jwtReplace
<DOWNLOADED_FILE_NAME>with the downloaded filename without the.jwtextension. -
To enable the NGINX service to start at boot, run the following command:
sudo systemctl enable nginx.service -
Check the
nginxversion to verify that NGINX Plus is installed correctly:nginx -v -
Make sure license reporting to F5 licensing endpoint is configured. By default, no configuration is required. However, it becomes necessary when NGINX Plus is installed in a disconnected environment, uses NGINX Instance Manager for usage reporting, or uses a custom path for the license file. Configuration can be done in the
mgmt {}block of the NGINX Plus configuration file (/etc/nginx/nginx.conf). For more information, see About Subscription Licenses. -
If you are using NGINX Instance Manager in your infrastructure, install and enable NGINX Agent. See Install and Configure NGINX Agent for details.
Supported RHEL-based systems include RHEL 9.0+, Oracle Linux 9, AlmaLinux 9, Rocky Linux 9.
-
Check if your operating system and architecture are supported. For a complete list of supported platforms and architectures, see the Technical Specifications.
-
Back up your NGINX Plus configuration and log files if you have an older NGINX Plus package installed. For more information, see Upgrading NGINX Plus.
-
Download the SSL certificate, private key, and the JWT license file associated with your NGINX Plus subscription from the MyF5 Customer Portal:
- Log in to MyF5.
- Go to My Products & Plans > Subscriptions to see your active subscriptions.
- Find your NGINX products or services subscription, and select the Subscription ID for details.
- Download the <nginx-repo>.crt and <nginx-repo>.key from the subscription page.
- Download the JSON Web Token (JWT) from the subscription page. See About Subscription Licenses for details.
-
Install the ca-certificates dependency:
shell sudo dnf update && \ sudo dnf install ca-certificates -
Create the /etc/ssl/nginx directory:
sudo mkdir -p /etc/ssl/nginx -
Copy the downloaded .crt and .key files to the /etc/ssl/nginx/ directory and make sure they are named nginx-repo.crt and nginx-repo.key:
shell sudo cp <DOWNLOADED_FILE_NAME>.crt /etc/ssl/nginx/nginx-repo.crt sudo cp <DOWNLOADED_FILE_NAME>.key /etc/ssl/nginx/nginx-repo.keyIn each command, replace
<DOWNLOADED_FILE_NAME>with the corresponding downloaded filename without its.crtor.keyextension. -
Add the NGINX Plus repository by downloading the plus-9.repo file to /etc/yum.repos.d:
sudo wget -P /etc/yum.repos.d https://cs.nginx.com/static/files/plus-9.repoPin NGINX Plus to a specific version
To pin NGINX Plus to a specific version (for example, R33):
-
Edit the
/etc/yum.repos.d/plus-9.repofile. -
Update the repository base URL to the desired version:
baseurl=https://pkgs.nginx.com/plus/R33/centos/9/$basearch/ -
Save the changes and exit.
-
Update the repository information:
sudo dnf update
-
-
Install the nginx-plus package. Any older NGINX Plus package is automatically replaced.
sudo dnf install nginx-plus -
Copy the downloaded JWT file to the /etc/nginx/ directory and make sure it is named license.jwt:
sudo cp <DOWNLOADED_FILE_NAME>.jwt /etc/nginx/license.jwtReplace
<DOWNLOADED_FILE_NAME>with the downloaded filename without the.jwtextension. -
To enable the NGINX service to start at boot, run the following command:
sudo systemctl enable nginx.service -
Check the
nginxversion to verify that NGINX Plus is installed correctly:nginx -v -
Make sure license reporting to F5 licensing endpoint is configured. By default, no configuration is required. However, it becomes necessary when NGINX Plus is installed in a disconnected environment, uses NGINX Instance Manager for usage reporting, or uses a custom path for the license file. Configuration can be done in the
mgmt {}block of the NGINX Plus configuration file (/etc/nginx/nginx.conf). For more information, see About Subscription Licenses. -
If you are using NGINX Instance Manager in your infrastructure, install and enable NGINX Agent. See Install and Configure NGINX Agent for details.
Supported RHEL-based systems include RHEL 10.0+, Oracle Linux 10.0+, AlmaLinux 10.0+, Rocky Linux 10.0+.
-
Check if your operating system and architecture are supported. For a complete list of supported platforms and architectures, see the Technical Specifications.
-
Back up your NGINX Plus configuration and log files if you have an older NGINX Plus package installed. For more information, see Upgrading NGINX Plus.
-
Download the SSL certificate, private key, and the JWT license file associated with your NGINX Plus subscription from the MyF5 Customer Portal:
- Log in to MyF5.
- Go to My Products & Plans > Subscriptions to see your active subscriptions.
- Find your NGINX products or services subscription, and select the Subscription ID for details.
- Download the <nginx-repo>.crt and <nginx-repo>.key from the subscription page.
- Download the JSON Web Token (JWT) from the subscription page. See About Subscription Licenses for details.
-
Install the ca-certificates dependency:
shell sudo dnf update && \ sudo dnf install ca-certificates -
Create the /etc/ssl/nginx directory:
sudo mkdir -p /etc/ssl/nginx -
Copy the downloaded .crt and .key files to the /etc/ssl/nginx/ directory and make sure they are named nginx-repo.crt and nginx-repo.key:
shell sudo cp <DOWNLOADED_FILE_NAME>.crt /etc/ssl/nginx/nginx-repo.crt sudo cp <DOWNLOADED_FILE_NAME>.key /etc/ssl/nginx/nginx-repo.keyIn each command, replace
<DOWNLOADED_FILE_NAME>with the corresponding downloaded filename without its.crtor.keyextension. -
Add the NGINX Plus repository by downloading the plus-10.repo file to /etc/yum.repos.d:
sudo wget -P /etc/yum.repos.d https://cs.nginx.com/static/files/plus-10.repoPin NGINX Plus to a specific version
To pin NGINX Plus to a specific version (for example, R33):
-
Edit the
/etc/yum.repos.d/plus-9.repofile. -
Update the repository base URL to the desired version:
baseurl=https://pkgs.nginx.com/plus/R33/centos/9/$basearch/ -
Save the changes and exit.
-
Update the repository information:
sudo dnf update
-
-
Install the nginx-plus package. Any older NGINX Plus package is automatically replaced.
sudo dnf install nginx-plus -
Copy the downloaded JWT file to the /etc/nginx/ directory and make sure it is named license.jwt:
sudo cp <DOWNLOADED_FILE_NAME>.jwt /etc/nginx/license.jwtReplace
<DOWNLOADED_FILE_NAME>with the downloaded filename without the.jwtextension. -
To enable the NGINX service to start at boot, run the following command:
sudo systemctl enable nginx.service -
Check the
nginxversion to verify that NGINX Plus is installed correctly:nginx -v -
Make sure license reporting to F5 licensing endpoint is configured. By default, no configuration is required. However, it becomes necessary when NGINX Plus is installed in a disconnected environment, uses NGINX Instance Manager for usage reporting, or uses a custom path for the license file. Configuration can be done in the
mgmt {}block of the NGINX Plus configuration file (/etc/nginx/nginx.conf). For more information, see About Subscription Licenses. -
If you are using NGINX Instance Manager in your infrastructure, install and enable NGINX Agent. See Install and Configure NGINX Agent for details.
-
Check if your operating system and architecture are supported. For a complete list of supported platforms and architectures, see the Technical Specifications.
-
Back up your NGINX Plus configuration and log files if you have an older NGINX Plus package installed. For more information, see Upgrading NGINX Plus.
-
Download the SSL certificate, private key, and the JWT license file associated with your NGINX Plus subscription from the MyF5 Customer Portal:
- Log in to MyF5.
- Go to My Products & Plans > Subscriptions to see your active subscriptions.
- Find your NGINX products or services subscription, and select the Subscription ID for details.
- Download the <nginx-repo>.crt and <nginx-repo>.key from the subscription page.
- Download the JSON Web Token (JWT) from the subscription page. See About Subscription Licenses for details.
-
Create the /etc/ssl/nginx directory:
sudo mkdir -p /etc/ssl/nginx -
Copy the downloaded .crt and .key files to the /etc/ssl/nginx/ directory and make sure they are named nginx-repo.crt and nginx-repo.key:
shell sudo cp <DOWNLOADED_FILE_NAME>.crt /etc/ssl/nginx/nginx-repo.crt sudo cp <DOWNLOADED_FILE_NAME>.key /etc/ssl/nginx/nginx-repo.keyIn each command, replace
<DOWNLOADED_FILE_NAME>with the corresponding downloaded filename without its.crtor.keyextension. -
Install the prerequisites packages:
shell sudo apt update && \ sudo apt install apt-transport-https \ lsb-release \ ca-certificates \ wget \ gnupg2 \ debian-archive-keyring -
Download and add NGINX signing key:
shell wget -qO - https://cs.nginx.com/static/keys/nginx_signing.key \ | gpg --dearmor \ | sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null -
Add the NGINX Plus repository:
shell printf "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] \ https://pkgs.nginx.com/plus/debian `lsb_release -cs` nginx-plus\n" \ | sudo tee /etc/apt/sources.list.d/nginx-plus.list -
Download the nginx-plus apt configuration to /etc/apt/apt.conf.d:
sudo wget -P /etc/apt/apt.conf.d https://cs.nginx.com/static/files/90pkgs-nginxPin NGINX Plus to a specific version
To pin NGINX Plus to a specific version (for example, R33):
-
Edit the
/etc/apt/sources.list.d/nginx-plus.listfile. -
Update the repository base URL to the desired version:
-
For Ubuntu:
https://pkgs.nginx.com/plus/R33/ubuntu -
For Debian:
https://pkgs.nginx.com/plus/R33/debian
-
-
Save the changes and exit.
-
Update the repository information:
sudo apt update
-
-
Update the repository information:
sudo apt update -
Install the nginx-plus package. Any older NGINX Plus package is automatically replaced.
sudo apt install -y nginx-plus -
Copy the downloaded JWT file to the /etc/nginx/ directory and make sure it is named license.jwt:
sudo cp <DOWNLOADED_FILE_NAME>.jwt /etc/nginx/license.jwtReplace
<DOWNLOADED_FILE_NAME>with the downloaded filename without the.jwtextension. -
Check the
nginxversion to verify that NGINX Plus is installed correctly:nginx -v -
Make sure license reporting to F5 licensing endpoint is configured. By default, no configuration is required. However, it becomes necessary when NGINX Plus is installed in a disconnected environment, uses NGINX Instance Manager for usage reporting, or uses a custom path for the license file. Configuration can be done in the
mgmt {}block of the NGINX Plus configuration file (/etc/nginx/nginx.conf). For more information, see About Subscription Licenses. -
If you are using NGINX Instance Manager in your infrastructure, install and enable NGINX Agent. See Install and Configure NGINX Agent for details.
-
Check if your operating system and architecture are supported. For a complete list of supported platforms and architectures, see the Technical Specifications.
-
Back up your NGINX Plus configuration and log files if you have an older NGINX Plus package installed. For more information, see Upgrading NGINX Plus.
-
Download the SSL certificate, private key, and the JWT license file associated with your NGINX Plus subscription from the MyF5 Customer Portal:
- Log in to MyF5.
- Go to My Products & Plans > Subscriptions to see your active subscriptions.
- Find your NGINX products or services subscription, and select the Subscription ID for details.
- Download the <nginx-repo>.crt and <nginx-repo>.key from the subscription page.
- Download the JSON Web Token (JWT) from the subscription page. See About Subscription Licenses for details.
-
Create the /etc/ssl/nginx directory:
sudo mkdir -p /etc/ssl/nginx -
Copy the downloaded .crt and .key files to the /etc/ssl/nginx/ directory and make sure they are named nginx-repo.crt and nginx-repo.key:
shell sudo cp <DOWNLOADED_FILE_NAME>.crt /etc/ssl/nginx/nginx-repo.crt sudo cp <DOWNLOADED_FILE_NAME>.key /etc/ssl/nginx/nginx-repo.keyIn each command, replace
<DOWNLOADED_FILE_NAME>with the corresponding downloaded filename without its.crtor.keyextension. -
Install the prerequisites packages:
shell sudo apt update && \ sudo apt install apt-transport-https \ lsb-release \ ca-certificates \ wget \ gnupg2 \ ubuntu-keyring -
Download and add NGINX signing key:
shell wget -qO - https://cs.nginx.com/static/keys/nginx_signing.key \ | gpg --dearmor \ | sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null -
Add the NGINX Plus repository:
shell printf "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] \ https://pkgs.nginx.com/plus/ubuntu `lsb_release -cs` nginx-plus\n" \ | sudo tee /etc/apt/sources.list.d/nginx-plus.list -
Download the nginx-plus apt configuration to /etc/apt/apt.conf.d:
sudo wget -P /etc/apt/apt.conf.d https://cs.nginx.com/static/files/90pkgs-nginxPin NGINX Plus to a specific version
To pin NGINX Plus to a specific version (for example, R33):
-
Edit the
/etc/apt/sources.list.d/nginx-plus.listfile. -
Update the repository base URL to the desired version:
-
For Ubuntu:
https://pkgs.nginx.com/plus/R33/ubuntu -
For Debian:
https://pkgs.nginx.com/plus/R33/debian
-
-
Save the changes and exit.
-
Update the repository information:
sudo apt update
-
-
Update the repository information:
sudo apt update -
Install the nginx-plus package. Any older NGINX Plus package is automatically replaced.
sudo apt install -y nginx-plus -
Copy the downloaded JWT file to the /etc/nginx/ directory and make sure it is named license.jwt:
sudo cp <DOWNLOADED_FILE_NAME>.jwt /etc/nginx/license.jwtReplace
<DOWNLOADED_FILE_NAME>with the downloaded filename without the.jwtextension. -
Check the
nginxversion to verify that NGINX Plus is installed correctly:nginx -v -
Make sure license reporting to F5 licensing endpoint is configured. By default, no configuration is required. However, it becomes necessary when NGINX Plus is installed in a disconnected environment, uses NGINX Instance Manager for usage reporting, or uses a custom path for the license file. Configuration can be done in the
mgmt {}block of the NGINX Plus configuration file (/etc/nginx/nginx.conf). For more information, see About Subscription Licenses. -
If you are using NGINX Instance Manager in your infrastructure, install and enable NGINX Agent. See Install and Configure NGINX Agent for details.
-
Check if your operating system and architecture are supported. For a complete list of supported platforms and architectures, see the Technical Specifications.
-
Back up your NGINX Plus configuration and log files if you have an older NGINX Plus package installed. For more information, see Upgrading NGINX Plus.
-
Download the SSL certificate, private key, and the JWT license file associated with your NGINX Plus subscription from the MyF5 Customer Portal:
- Log in to MyF5.
- Go to My Products & Plans > Subscriptions to see your active subscriptions.
- Find your NGINX products or services subscription, and select the Subscription ID for details.
- Download the <nginx-repo>.crt and <nginx-repo>.key from the subscription page.
- Download the JSON Web Token (JWT) from the subscription page. See About Subscription Licenses for details.
-
Install the prerequisite ca_root_nss package:
shell sudo pkg update sudo pkg install ca_root_nss -
Create the /etc/ssl/nginx directory:
sudo mkdir -p /etc/ssl/nginx -
Copy the downloaded .crt and .key files to the /etc/ssl/nginx/ directory and make sure they are named nginx-repo.crt and nginx-repo.key:
shell sudo cp <DOWNLOADED_FILE_NAME>.crt /etc/ssl/nginx/nginx-repo.crt sudo cp <DOWNLOADED_FILE_NAME>.key /etc/ssl/nginx/nginx-repo.keyIn each command, replace
<DOWNLOADED_FILE_NAME>with the corresponding downloaded filename without its.crtor.keyextension. -
Copy the nginx-plus.conf file to the /etc/pkg/ directory:
sudo fetch -o /etc/pkg/nginx-plus.conf http://cs.nginx.com/static/files/nginx-plus.conf -
Add the following lines to the /usr/local/etc/pkg.conf file:
PKG_ENV: { SSL_NO_VERIFY_PEER: "1", SSL_CLIENT_CERT_FILE: "/etc/ssl/nginx/nginx-repo.crt", SSL_CLIENT_KEY_FILE: "/etc/ssl/nginx/nginx-repo.key" } -
Install the nginx-plus package. Any older NGINX Plus package is automatically replaced. Back up your NGINX Plus configuration and log files if you have an older NGINX Plus package installed. For more information, see Upgrading NGINX Plus.
sudo pkg install nginx-plus -
Copy the downloaded JWT file to the /usr/local/etc/nginx directory and make sure it is named license.jwt:
sudo cp license.jwt /usr/local/etc/nginx -
Check the
nginxversion to verify that NGINX Plus is installed correctly:nginx -v -
Make sure license reporting to F5 licensing endpoint is configured. By default, no configuration is required. However, it becomes necessary when NGINX Plus is installed in a disconnected environment, uses NGINX Instance Manager for usage reporting, or uses a custom path for the license file. Configuration can be done in the
mgmt {}block of the NGINX Plus configuration file (/usr/local/etc/nginx/nginx.conf). For more information, see About Subscription Licenses. -
If you are using NGINX Instance Manager in your infrastructure, install and enable NGINX Agent. See Install and Configure NGINX Agent for details.
NGINX Plus can be installed on SUSE Linux Enterprise Server.
-
Check if your operating system and architecture are supported. For a complete list of supported platforms and architectures, see the Technical Specifications.
-
Back up your NGINX Plus configuration and log files if you have an older NGINX Plus package installed. For more information, see Upgrading NGINX Plus.
-
Download the SSL certificate, private key, and the JWT license file associated with your NGINX Plus subscription from the MyF5 Customer Portal:
- Log in to MyF5.
- Go to My Products & Plans > Subscriptions to see your active subscriptions.
- Find your NGINX products or services subscription, and select the Subscription ID for details.
- Download the <nginx-repo>.crt and <nginx-repo>.key from the subscription page.
- Download the JSON Web Token (JWT) from the subscription page. See About Subscription Licenses for details.
-
Create the /etc/ssl/nginx directory:
sudo mkdir -p /etc/ssl/nginx -
Copy the downloaded .crt and .key files to the /etc/ssl/nginx/ directory and make sure they are named nginx-repo.crt and nginx-repo.key:
shell sudo cp <DOWNLOADED_FILE_NAME>.crt /etc/ssl/nginx/nginx-repo.crt sudo cp <DOWNLOADED_FILE_NAME>.key /etc/ssl/nginx/nginx-repo.keyIn each command, replace
<DOWNLOADED_FILE_NAME>with the corresponding downloaded filename without its.crtor.keyextension. -
Create a file bundle of the certificate and key:
cat /etc/ssl/nginx/nginx-repo.crt /etc/ssl/nginx/nginx-repo.key > /etc/ssl/nginx/nginx-repo-bundle.crt -
Install the required ca-certificates dependency:
shell zypper refresh zypper install ca-certificates -
Add the nginx-plus repo.
For SLES 15:
shell zypper addrepo -G -t yum -c \ "https://pkgs.nginx.com/plus/sles/15?ssl_clientcert=/etc/ssl/nginx/nginx-repo-bundle.crt&ssl_verify=peer" \ nginx-plusFor SLES 16:
shell zypper addrepo -G -t yum -c \ "https://pkgs.nginx.com/plus/sles/16?ssl_clientcert=/etc/ssl/nginx/nginx-repo-bundle.crt&ssl_verify=peer" \ nginx-plus -
Install the nginx-plus package. Any older NGINX Plus package is automatically replaced.
zypper install nginx-plus -
Copy the downloaded JWT file to the /etc/nginx/ directory and make sure it is named license.jwt:
sudo cp <DOWNLOADED_FILE_NAME>.jwt /etc/nginx/license.jwtReplace
<DOWNLOADED_FILE_NAME>with the downloaded filename without the.jwtextension. -
Check the
nginxversion to verify that NGINX Plus is installed correctly:nginx -v -
Make sure license reporting to F5 licensing endpoint is configured. By default, no configuration is required. However, it becomes necessary when NGINX Plus is installed in a disconnected environment, uses NGINX Instance Manager for usage reporting, or uses a custom path for the license file. Configuration can be done in the
mgmt {}block of the NGINX Plus configuration file (/etc/nginx/nginx.conf). For more information, see About Subscription Licenses. -
If you are using NGINX Instance Manager in your infrastructure, install and enable NGINX Agent. See Install and Configure NGINX Agent for details.
-
Check if your operating system and architecture are supported. For a complete list of supported platforms and architectures, see the Technical Specifications.
-
Back up your NGINX Plus configuration and log files if you have an older NGINX Plus package installed. For more information, see Upgrading NGINX Plus.
-
Download the SSL certificate, private key, and the JWT license file associated with your NGINX Plus subscription from the MyF5 Customer Portal:
- Log in to MyF5.
- Go to My Products & Plans > Subscriptions to see your active subscriptions.
- Find your NGINX products or services subscription, and select the Subscription ID for details.
- Download the <nginx-repo>.crt and <nginx-repo>.key from the subscription page.
- Download the JSON Web Token (JWT) from the subscription page. See About Subscription Licenses for details.
-
Upload nginx-repo.key to /etc/apk/cert.key and nginx-repo.crt to /etc/apk/cert.pem. Ensure these files contain only the specific key and certificate — Alpine Linux doesn’t support mixing client certificates for multiple repositories.
-
Put the NGINX signing public key in the /etc/apk/keys directory:
sudo wget -O /etc/apk/keys/nginx_signing.rsa.pub https://cs.nginx.com/static/keys/nginx_signing.rsa.pub -
Add the NGINX repository to the /etc/apk/repositories file:
shell printf "https://pkgs.nginx.com/plus/alpine/v`egrep -o '^[0-9]+\.[0-9]+' /etc/alpine-release`/main\n" \ | sudo tee -a /etc/apk/repositories -
Remove all community-supported NGINX packages. Note that this will also remove all NGINX modules:
sudo apk del -r nginx -
Install the NGINX Plus package:
sudo apk add nginx-plus -
Copy the downloaded JWT file to the /etc/nginx/ directory and make sure it is named license.jwt:
sudo cp <DOWNLOADED_FILE_NAME>.jwt /etc/nginx/license.jwtReplace
<DOWNLOADED_FILE_NAME>with the downloaded filename without the.jwtextension. -
Check the
nginxversion to verify that NGINX Plus is installed correctly:nginx -v -
Make sure license reporting to F5 licensing endpoint is configured. By default, no configuration is required. However, it becomes necessary when NGINX Plus is installed in a disconnected environment, uses NGINX Instance Manager for usage reporting, or uses a custom path for the license file. Configuration can be done in the
mgmt {}block of the NGINX Plus configuration file (/etc/nginx/nginx.conf). For more information, see About Subscription Licenses. -
If you are using NGINX Instance Manager in your infrastructure, install and enable NGINX Agent. See Install and Configure NGINX Agent for details.
NGINX Plus functionality can be extended with dynamic modules, which are shared object (.so) files installed and updated independently of the core NGINX Plus binary. Modules are installed as packaged binaries from NGINX official repository, and then loaded through the load_module directive into NGINX Plus.
From the official repository, NGINX provides packaged binaries of their own modules and most popular third-party community modules. You can also compile and connect your own or other community dynamic module.
Full information about dynamic modules is available in the Dynamic Modules section.
NGINX‑authored and NGINX‑certified Community dynamic modules can be installed as packaged binaries directly from the official nginx-plus repository.
To install a binary package, run the command in a terminal that corresponds to your operating system, replacing <MODULE_NAME> with the actual binary package name, for example, nginx-plus-module-njs.
-
For RHEL, CentOS, Oracle Linux:
shell sudo yum update && \ sudo yum install <MODULE_NAME>The resulting
.sofile will be installed to:/usr/lib64/nginx/modules/ -
For Amazon Linux 2023, AlmaLinux and Rocky Linux:
shell sudo dnf update && \ sudo dnf install <MODULE_NAME>The resulting
.sofile will be installed to:/usr/lib64/nginx/modules/ -
For Debian and Ubuntu:
shell sudo apt update && \ sudo apt install <MODULE_NAME>The resulting
.sofile will be installed to:/usr/lib/nginx/modules -
For FreeBSD:
shell sudo pkg update && \ sudo pkg install <MODULE_NAME>The resulting
.sofile will be installed to:/usr/local/etc/nginx/modules -
For SUSE Linux Enterprise:
shell sudo zypper refresh && \ sudo zypper install <MODULE_NAME>The resulting
.sofile will be installed to:/usr/lib64/nginx/modules/ -
For Alpine Linux:
shell sudo apk update && \ sudo apk add <MODULE_NAME>The resulting
.sofile will be installed to:/usr/lib/nginx/modules
For detailed description and installation steps for each dynamic module, see NGINX Plus Dynamic Modules.
Some modules may not be available on specific operating systems due to platform-level limitations. For detailed modules compatibility, see the Dynamic Modules section of the NGINX Plus Technical Specifications.
After installing the module, you will need to:
- enable it with the
load_moduledirective - configure it according to the module’s documentation
To enable a dynamic module:
-
In a text editor, open the NGINX Plus configuration file:
/etc/nginx/nginx.conffor Linux/usr/local/etc/nginx/nginx.conffor FreeBSD
-
On the top-level (or the “
main” context, before anyhttporstreamblocks), specify the path to the.sofile with theload_moduledirective. By default, the files are expected to be in the/modulesdirectory. The path to the directory depends on your operating system:/usr/lib64/nginx/modules/for most Linux operating systems/usr/lib/nginx/modulesfor Debian, Ubuntu, Alpine/usr/local/etc/nginx/modulesfor FreeBSD
If there are several dynamic modules, specify each module with a separate
load_moduledirective:nginx load_module modules/<MODULE_NAME_1>.so; load_module modules/<MODULE_NAME_2>.so; http { #... } stream { #... }Replace
<MODULE_NAME_1>with the name of the first dynamic module and<MODULE_NAME_2>with the name of the second dynamic module. -
Save the changes.
-
Check the new configuration for syntactic validity:
nginx -t -
Reload the NGINX Plus configuration:
nginx -s reloadAfter installing the module, you will need to configure the module in the NGINX Plus configuration file. Follow the usage and setup instructions provided in the module’s official documentation.
In some environments, access to the root account is restricted for security reasons. On Linux systems, this limitation prevents the use of package managers to install NGINX Plus without root privileges.
As a workaround, in such environments NGINX Plus can be installed with a special script that modifies NGINX Plus configuration file to allow it to run from a non-root user. This script performs the following actions:
-
Downloads the NGINX Plus packages
-
Extracts the content of the archives into a user-defined directory of the packages
-
Updates the paths in the NGINX configuration file to use relative paths in the specified directory
-
Makes a backup copy of the configuration directory
-
Provides an option to upgrade an existing unprivileged installation of NGINX Plus
Comparing to a standard installation of NGINX Plus, an unprivileged installation has certain limitations and restrictions:
-
Root privileges are still required in order to listen on ports below
1024. -
The script is not intended to replace your operating system’s package manager and does not allow for the installation of any software other than NGINX Plus and its modules. Modifications to the script for other installations are not covered by the support program.
-
NGINX Plus will not start automatically, so, you must add a custom
initscript or asystemdunit file for each unprivileged installation on the host. -
all dependencies and libraries required by the NGINX Plus binary and its modules are not installed automatically and should be checked and installed manually.
The script can be run on the following operating systems:
- RedHat, CentOS
- Amazon Linux 2023
- Debian, Ubuntu
- Alpine Linux
- AlmaLinux, Rocky Linux
Before starting the unprivileged installation, make sure you have all the prerequisites listed in the Prerequisites section (excluding root privileges). For RPM-based distributions, verify that you have rpm2cpio installed.
To perform an unprivileged installation of NGINX Plus:
-
Download the SSL certificate, private key, and the JWT license file associated with your NGINX Plus subscription from the MyF5 Customer Portal:
- Log in to MyF5.
- Go to My Products & Plans > Subscriptions to see your active subscriptions.
- Find your NGINX products or services subscription, and select the Subscription ID for details.
- Download the <nginx-repo>.crt and <nginx-repo>.key from the subscription page.
- Download the JSON Web Token (JWT) from the subscription page. See About Subscription Licenses for details.
-
Ensure that the downloaded JWT license file is named license.jwt.
-
Obtain the script:
wget https://raw.githubusercontent.com/nginxinc/nginx-plus-install-tools/main/ngxunprivinst.sh -
Make the script executable:
chmod +x ngxunprivinst.sh -
Download NGINX Plus and its module packages for your operating system. The
<CERT_FILE>and<KEY_FILE>are your NGINX Plus certificate and a private key required to access the NGINX Plus repo:./ngxunprivinst.sh fetch -c <CERT_FILE> -k <KEY_FILE>If you need to install a particular version of NGINX Plus:
-
first, list all available NGINX Plus versions from the repository:
./ngxunprivinst.sh list -c <CERT_FILE> -k <KEY_FILE> -
then specify a particular NGINX Plus version with the
-vparameter:./ngxunprivinst.sh fetch -c <CERT_FILE> -k <KEY_FILE> -v <VERSION>Replace
<VERSION>with the version of the NGINX Plus API.
-
-
Extract the downloaded packages to the program prefix
<INSTALL_PATH>specified by the-pparameter and specify the license.jwt<LICENSE_FILE>with the-jparameter. The optional-yparameter allows overwriting an existing installation:./ngxunprivinst.sh install [-y] -p <INSTALL_PATH> -j <LICENSE_FILE> <FILE1.RPM> <FILE2.RPM>Replace
<FILE1.RPM>with the name of the first downloaded RPM package and<FILE2.RPM>with the name of the second downloaded RPM package. -
When the installation procedure is finished, run NGINX Plus. The
-pparameter sets a path to the directory that keeps nginx files. The-cparameter sets a path to an alternative NGINX configuration file. Please note NGINX Plus must listen on ports above1024:<INSTALL_PATH>/usr/sbin/nginx -p <INSTALL_PATH>/etc/nginx -c <INSTALL_PATH>/etc/nginx/conf.d
With this script, you can also upgrade an existing unprivileged installation of NGINX Plus in the provided <INSTALL_PATH>. The optional -y parameter performs a forced upgrade without any confirmation:
./ngxunprivinst.sh upgrade [-y] -p <INSTALL_PATH> <FILE1.RPM> <FILE2.RPM>This section explains how to install NGINX Plus and its dynamic modules on a server with limited or no Internet access.
To install NGINX Plus offline, you will need a machine connected to the Internet to get the NGINX Plus package, JWT license, SSL certificate and key. Then your can transfer these files to the target server for offline installation.
-
Download the SSL certificate, private key, and the JWT license file associated with your NGINX Plus subscription from the MyF5 Customer Portal:
- Log in to MyF5.
- Go to My Products & Plans > Subscriptions to see your active subscriptions.
- Find your NGINX products or services subscription, and select the Subscription ID for details.
- Download the <nginx-repo>.crt and <nginx-repo>.key from the subscription page.
- Download the JSON Web Token (JWT) from the subscription page. See About Subscription Licenses for details.
-
Transfer the files to the target server that doesn’t have online access and where NGINX Plus will be installed.
-
Back up your NGINX Plus configuration and log files if you have an older NGINX Plus package installed. For more information, see Upgrading NGINX Plus.
-
Make sure you’ve downloaded the SSL certificate, private key, and the JWT file required for your NGINX Plus subscription. You can find these files in the MyF5 Customer Portal. For details on how to obtain these files, see Step 1: Obtaining files on the machine connected to the Internet.
-
Create the /etc/ssl/nginx directory:
sudo mkdir -p /etc/ssl/nginx -
Copy the downloaded .crt and .key files to the /etc/ssl/nginx/ directory and make sure they are named nginx-repo.crt and nginx-repo.key:
shell sudo cp <DOWNLOADED_FILE_NAME>.crt /etc/ssl/nginx/nginx-repo.crt sudo cp <DOWNLOADED_FILE_NAME>.key /etc/ssl/nginx/nginx-repo.keyIn each command, replace
<DOWNLOADED_FILE_NAME>with the corresponding downloaded filename without its.crtor.keyextension. -
Install the NGINX Plus package or a dynamic module. Any older NGINX Plus package is automatically replaced.
-
For RHEL, Amazon Linux, CentOS, Oracle Linux, AlmaLinux and Rocky Linux:
sudo rpm -ihv <RPM_PACKAGE_NAME>Replace
<RPM_PACKAGE_NAME>with the name of the RPM package. -
For Debian, Ubuntu:
sudo dpkg -i <DEB_PACKAGE_NAME>Replace
<DEB_PACKAGE_NAME>with the name of the DEB package. -
For Alpine:
apk add <APK_PACKAGE_NAME>Replace
<APK_PACKAGE_NAME>with the name of the APK package. -
For SLES:
rpm -ivh <RPM_PACKAGE_NAME>
-
-
Copy the downloaded JWT file to the /etc/nginx/ directory and make sure it is named license.jwt:
sudo cp <DOWNLOADED_FILE_NAME>.jwt /etc/nginx/license.jwtReplace
<DOWNLOADED_FILE_NAME>with the downloaded filename without the.jwtextension. -
Check the
nginxversion to verify that NGINX Plus is installed correctly:nginx -v -
Install NGINX Instance Manager 2.18 or later in your local environment to enable usage reporting, which is mandatory since R33. For more information, see Disconnected environments and About Subscription Licenses.
-
Configure usage reporting of the NGINX Plus instance to NGINX Instance Manager which is mandatory starting from R33.
In the
nginx.confconfiguration file, specify the following directives:-
the
mgmt {}block that handles NGINX Plus licensing and usage reporting configuration, -
the
usage_reportdirective that sets the domain name or IP address of NGINX Instance Manager, -
the
enforce_initial_reportdirective that enables the 180-day grace period for sending the initial usage report. The initial usage report must be received by F5 licensing endpoint during the grace period, otherwise traffic processing will be stopped:
nginx mgmt { usage_report endpoint=NIM_FQDN; enforce_initial_report off; } -
-
In NGINX Instance Manager, prepare and send the usage report to F5 licensing endpoint. For more information, see Report usage to F5 in a disconnected environment.
-
Upload the usage acknowledgement to NGINX Instance Manager. For more information, see Report usage to F5 in a disconnected environment.
To install F5 WAF for NGINX, follow the steps in the F5 WAF for NGINX install section.
For upgrade instructions, see Upgrading NGNIX Plus