Help us understand the problem. What is going on with this article?

Amazon Linux2にnginxをinstallするメモ

More than 1 year has passed since last update.

Extrasというレポジトリにあるらしい

$ amazon-linux-extras | grep nginx
3 nginx1.12=latest enabled [ =1.12.2 ]

インストール
sudo amazon-linux-extras install nginx1.12

起動
sudo systemctl start nginx.service

自動起動
$sudo systemctl enable nginx.service

自動起動の確認
[ec2-user@ip-10-40-0-142 ~]$ systemctl is-enabled nginx.service
enabled

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away