How to install nginx on Amazon Linux
High performance web server
Availability
| Distro | aarch64 | noarch | x86_64 | Version |
|---|---|---|---|---|
| Amazon Linux 2023 | ✓ | — | ✓ | 1.30.4 |
| Amazon Linux 2012.03 | — | — | ✓ | 1.20.2 |
| Amazon Linux 2 | ✓ | — | ✓ | 1.30.4 |
Description
nginx [engine x] is an HTTP and reverse proxy server, as well as a mail proxy server.
Built for Amazon Linux.
Install
nginx on Amazon Linux 2, 2012.03, 2023
sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm 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.