Cent5でyumからnginxをインストールしてみる
apacheからのリプレース候補として注目されるnginxがyumで入ると知ったのでやってみました。
やり方はnginx本家に書いてあったので楽々
vim /etc/yum.repos.d/nginx.repo --新規作成で以下をコピペ-- [nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=0 enabled=1
あとはyum installして /etc/nginx/nginx.conf 書いて終わり。
だが待って欲しい。
nginxが必要な時って場面ごとに特化させて使うものだと思う。
だからどのインストールオプションで入るのか気になるので実際に CentOS 5.5のyumでインストールしてから調べてみたらこんなでした。
nginx: nginx version: nginx/1.0.6 nginx: built by gcc 4.1.2 20080704 (Red Hat 4.1.2-50) nginx: TLS SNI support disabled nginx: configure arguments: --prefix=/etc/nginx/ --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwcgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-mail --with-mail_ssl_module --with-file-aio --with-ipv6
flvモジュールがデフォルトで入るのが意外でしたが、あとは便利な標準機能ですね。