9
10

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.

CentOS7にNginx1.9をインストールする方法

Last updated at Posted at 2015-06-02

レポジトリファイルを自分で作る

nano /etc/yum.repos.d/nginx.repo
/etc/yum.repos.d/nginx.repo
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/mainline/centos/7/$basearch/
gpgcheck=0
enabled=0

enabled=0にしておくのは、nginx.repoをyumコマンドのデフォルトの探索対象から除外するため。

バージョン確認

sudo yum info --enablerepo=nginx nginx

インストール

sudo yum install --enablerepo=nginx nginx

追記 : Chef化しました。

9
10
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
9
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?