Nginx のインストール

CentOS 5.6 に tarball からインストールする。

$ wget http://nginx.org/download/nginx-1.0.9.tar.gz
$ tar zxvf nginx-1.0.9.tar.gz
$ cd nginx-1.0.9
$ ./configure --prefix=/usr/local/nginx-1.0.9 --with-http_ssl_module
$ make
$ sudo make install
$ sudo cp -p /usr/local/nginx-1.0.2/conf/nginx.conf /usr/local/nginx-1.0.9/conf/nginx.conf
$ sudo ln -s /usr/local/nginx-1.0.9 /usr/local/nginx

via CentOS - Installing Nginx from source

でも、最近やっと yum のリポジトリができてるので、新規にインストールする場合はその方がよいと思います。

via http://nginx.org/en/download.html