LoginSignup
4
2

More than 5 years have passed since last update.

Amazon Linux 2016.09 で nginx 最新版(1.11.8)をyumでインストールする

Last updated at Posted at 2017-01-05

ポイント

  • 先にamazon linuxでnginxをインストールしておく必要がある。今まではamazon linux標準のnginxを削除してから、nginx公式のレポジトリを追加し、nginxをインストールする手順だったような..。

Amazon Linux 標準のnginxをインストール

yum update
yum install nginx

nginx-1.10.1-1.28.amzn1.x86_64.rpmをインストール

nginxの公式レポジトリを追加

(/etc/yum.repos.d/nginx.repo)
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/mainline/centos/6/$basearch/
gpgcheck=0
enabled=1
priority=1
  • ポイントはpriorityの設定とbaseurlが【mainline】,centosのヴァージョンが【6】

nginxの最新版を再度インストール

yum install nginx
4
2
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
4
2