LoginSignup
1
1

More than 5 years have passed since last update.

Nginx1.8のCentOS6へのインストール方法(2015/10月現在)

Last updated at Posted at 2015-09-30

普通にyumインストールすると、古いバージョンのNginxがインストールされてしまう。

リポジトリ設定

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

インストール

$ yum install nginx

自動起動設定

$ chkconfig nginx on
$ chkconfig nginx --list
  nginx             0:off   1:off   2:on    3:on    4:on    5:on    6:off

サーバの起動

$ nginx

ブラウザで確認

スクリーンショット 2015-09-30 13.29.17.png

サーバの停止

$ nginx -s stop

簡単です。

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