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