Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

341
Views
How to install Nginx with an exact version on Amazon Linux 2?

How to install Nginx with an exact version on Amazon Linux 2?

What I tried

  • sudo yum install nginx
  • sudo amazon-linux-extras install nginx1
  • sudo yum install nginx:1.14.2

Both get nginx 1.20.0 or no package available. How can I get other versions, ex: nginx 1.14.2?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

The accepted answer isn't really good because it references installing direct RPM as opposed to using repositories which provides better security and easy updates in the future.

The Amazon Linux way is the following.

First, enable the NGINX repository provided by Amazon:

amazon-linux-extras enable nginx1

This enabled a sub-repository with NGINX.

Now, list available versions by running:

yum info nginx --showduplicates

From there, you can decipher that 1.14.2 is not available specifically for Amazon Linux. But that does not mean that you should install random other direct RPM via URL.

Use the closest nearest NGINX version to your requirements, e.g.

yum install nginx-1.16.1
over 4 years ago · Santiago Trujillo Report

0

You can install any nginx versions.

Check this: https://centos.pkgs.org/7/nginx-x86_64/nginx-1.14.2-1.el7_4.ngx.x86_64.rpm.html

If you wanna install nginx 1.14.2 follow this:

wget https://nginx.org/packages/centos/7/x86_64/RPMS/nginx-1.14.2-1.el7_4.ngx.x86_64.rpm
sudo rpm -Uvh nginx-1.14.2-1.el7_4.ngx.x86_64.rpm
nginx -v
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!