Command To Install Nginx On Amazon Linux 2

[Solved] Command To Install Nginx On Amazon Linux 2 | Shell - Code Explorer | yomemimo.com
Question : install nginx amazon linux 2

Answered by : lonely-lyrebird-lzlny6l5z59c

$ sudo amazon-linux-extras list | grep nginx 38 nginx1=latest disabled [ =stable ]
$ sudo amazon-linux-extras enable nginx1 38 nginx1=latest enabled [ =stable ]
Now you can install:
$ sudo yum clean metadata
$ sudo yum -y install nginx
$ nginx -v
nginx version: nginx/1.16.1

Source : https://stackoverflow.com/questions/57784287/how-to-install-nginx-on-aws-ec2-linux-2 | Last Update : Thu, 06 May 21

Question : install nginx in amazon linux 2

Answered by : biplove-giri

$ sudo amazon-linux-extras list | grep nginx 38 nginx1=latest disabled [ =stable ]
$ sudo amazon-linux-extras enable nginx1 38 nginx1=latest enabled [ =stable ]
Now you can install:
$ sudo yum clean metadata
$ sudo yum -y install nginx
$ nginx -v
nginx version: nginx/1.16.1

Source : https://stackoverflow.com/questions/57784287/how-to-install-nginx-on-aws-ec2-linux-2# | Last Update : Thu, 07 Apr 22

Answers related to command to install nginx on amazon linux 2

Code Explorer Popular Question For Shell