How to install nginx on Amazon Linux
High performance web server
Availability
Compare package tracks by distribution and architecture. Checkmarks show the architectures available in each repository channel.
| Distro | Channel | aarch64 | x86_64 | Version |
|---|---|---|---|---|
| Amazon Linux 2023 | Stable | 1.30.4 | ||
| NGINX mainline | 1.31.4 | |||
| Amazon Linux 2012.03 | Stable | — | 1.20.2 | |
| NGINX mainline | — | 1.21.6 | ||
| Amazon Linux 2 | Stable | 1.30.4 | ||
| NGINX mainline | 1.31.4 | |||
| Angie | — | 1.23.3 |
Description
nginx [engine x] is an HTTP and reverse proxy server, as well as a mail proxy server.
Built for Amazon Linux.
Install
Stable
Amazon Linux 2, 2012.03, 2023
nginx on Amazon Linux 2, 2012.03, 2023
sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm sudo dnf -y install nginx
NGINX mainline
Amazon Linux 2, 2012.03, 2023
nginx on Amazon Linux 2, 2012.03, 2023
sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm sudo dnf -y install dnf-plugins-core sudo dnf config-manager --enable getpagespeed-extras-mainline sudo dnf -y install nginx
Angie
Amazon Linux 2
nginx on Amazon Linux 2
sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm sudo dnf -y install dnf-plugins-core sudo dnf config-manager --enable getpagespeed-extras-angie sudo dnf -y install nginx
Package downloads require an active GetPageSpeed subscription — one repository for nginx and thousands more packages for Amazon Linux.
Subscribe — from $10/moFrequently asked questions
How do I install nginx on Amazon Linux?
Add the GetPageSpeed repository, then install the nginx package with your system package manager.
Which Amazon Linux versions is nginx available for?
nginx is available for Amazon Linux 2, 2012.03, 2023.