2
1

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系でnginxをインストール

Last updated at Posted at 2017-06-10

yumでそのまま入れれるものは結構古そうなので、本家のドキュメントにしたがってインストールしておく。

#CentOS7系でnginxをインストール

リポジトリの設定

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

インストール

$ sudo yum install nginx

確認

$ nginx -v
nginx version: nginx/1.12.0

ドキュメントのままでした :sunny:

参考:http://nginx.org/en/linux_packages.html

2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?