LoginSignup
5
6

More than 5 years have passed since last update.

RedHat Enterprise Linux 6.7 に nginx をインストールしてみた

Last updated at Posted at 2015-08-27

はじめに

RedHat Enterprise Linux 6.7 で、Proxy を使いたかったので、Nginx を導入する。
いきなり yum install しようとして、パッケージが見つからないって怒られたので、調べた結果の備忘録。

環境

$ more /etc/redhat-release
Red Hat Enterprise Linux Server release 6.7 (Santiago)

yum install で失敗

Redhat 公式のリポジトリにないにない様子

$ sudo yum install nginx
No package nginx available.

nginx 公式サイトにリポジトリ発見

Redhat 5,6,7/ CentOS 5,6,7 があるので、Redhat 6 のリポジトリを使用する。

$ sudo rpm -ivh http://nginx.org/packages/rhel/6/noarch/RPMS/nginx-release-rhel-6-0.el6.ngx.noarch.rpm

(注意: URL が変わる可能性があるから、公式サイトから直接コピーした方が良い)

(蛇足) このとき rpm の proxy でハマったから以下のページを参考に解決

yum install で成功

$ sudo yum install nginx

終わりに

単純にリポジトリの追加だけで、完了した。
次は、proxy の設定する予定。

5
6
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
5
6