30
29

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.

CentOS6.x に yum で nginx をインストール

Posted at

参考: http://d.hatena.ne.jp/yoshi-ken/20120205

公式 rpm パッケージをインストール

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

起動確認

以下のコマンドでバージョン確認

$ nginx -v

以下のコマンドでサーバ起動し、ブラウザでアクセスしてみて"Welcome to nginx" が表示されればOK

  136  nginx -c /etc/nginx/nginx.conf
30
29
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
30
29

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?