13
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Amazon Linux2にnginxをinstallするメモ

Posted at

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

13
14
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?