0
0

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.

CentOS 6にNginx 1.8をインストール(SCL)

Posted at

はじめに

Software Collection(SCL)を利用してCentOS6にNginx1.8をインストール
親記事:Nginxの各種インストール方法とEOLまとめ
参考:Quick Start — Software Collections

サポート

本手法で導入した場合、Red Hat Software Collections Product Life Cycle - Red Hat Customer Portalより、2018-11がEOLだと思われる。
それ以降に報告された脆弱性や不具合への対応は実施されない可能性がある。

LOG

レポジトリ登録

# yum install -y centos-release-scl

インストール

# cat /etc/redhat-release
CentOS release 6.10 (Final)

# yum install -y rh-nginx18
# scl enable rh-nginx18 bash
... 略

nginx起動/停止

# service rh-nginx18-nginx start
Starting nginx:                                            [  OK  ]

# service rh-nginx18-nginx status
nginx (pid 190) is running...
# service rh-nginx18-nginx stop
Stopping nginx:                                            [  OK  ]

# service rh-nginx18-nginx status
nginx is stopped

nginx自動起動設定/設定解除

# chkconfig rh-nginx18-nginx on

# chkconfig --list  rh-nginx18-nginx
rh-nginx18-nginx        0:off   1:off   2:on    3:on    4:on    5:on    6:off
# chkconfig rh-nginx18-nginx off

# chkconfig --list  rh-nginx18-nginx
rh-nginx18-nginx        0:off   1:off   2:off   3:off   4:off   5:off   6:off

各種確認

# which nginx
/opt/rh/rh-nginx18/root/usr/sbin/nginx

# nginx -v
nginx version: nginx/1.8.1

# yum info rh-nginx18
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: ty1.mirror.newmediaexpress.com
 * centos-sclo-rh: ty1.mirror.newmediaexpress.com
 * centos-sclo-sclo: ty1.mirror.newmediaexpress.com
 * extras: ty1.mirror.newmediaexpress.com
 * updates: ty1.mirror.newmediaexpress.com
Installed Packages
Name        : rh-nginx18
Arch        : x86_64
Version     : 2.1
Release     : 4.el6
Size        : 0.0
Repo        : installed
From repo   : centos-sclo-rh
Summary     : Package that installs rh-nginx18
License     : GPLv2+
Description : This is the main package for rh-nginx18 Software Collection.
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?