このブログは、旧・はてなダイアリー「檜山正幸のキマイラ飼育記 メモ編」(http://d.hatena.ne.jp/m-hiyama-memo/)のデータを移行・保存したものであり、今後(2019年1月以降)更新の予定はありません。

今後の更新は、新しいブログ http://m-hiyama-memo.hatenablog.com/ で行います。

nginxを手動でインストール

$ wget http://sysoev.ru/nginx/nginx-0.7.64.tar.gz して $ tar zxvf nginx-0.7.64.tar.gz する。

ビルド/インストールに関しては、http://wiki.nginx.org/NginxInstall と、 http://wiki.nginx.org/NginxInstallOptions を読めばいい。SSIとFastCGIは要らないので、次のcofigureオプションにする。sslとssiを絶対に間違えないように!!


./configure \
--with-http_ssl_module --with-debug \
--without-http_ssi_module --without-http_fastcgi_module

ビルド。


[hiyama@microapplications nginx-0.7.64]$ ./configure \
> --with-http_ssl_module --with-debug \
> --without-http_ssi_module --without-http_fastcgi_module
checking for OS
+ Linux 2.6.9-78.0.5.plus.c4 i686
...
...

Configuration summary
+ using system PCRE library
+ using system OpenSSL library
+ md5: using OpenSSL library
+ sha1 library is not used
+ using system zlib library

nginx path prefix: "/usr/local/nginx"
nginx binary file: "/usr/local/nginx/sbin/nginx"
nginx configuration prefix: "/usr/local/nginx/conf"
nginx configuration file: "/usr/local/nginx/conf/nginx.conf"
nginx pid file: "/usr/local/nginx/logs/nginx.pid"
nginx error log file: "/usr/local/nginx/logs/error.log"
nginx http access log file: "/usr/local/nginx/logs/access.log"
nginx http client request body temporary files: "client_body_temp"
nginx http proxy temporary files: "proxy_temp"
nginx http fastcgi temporary files: "fastcgi_temp"

[hiyama@microapplications nginx-0.7.64]$

あとは、make; sudo make install 。

インストール直後のシンプルさは感激もの。


[hiyama@microapplications nginx]$ ls -Rl
.:
total 16
drwxr-xr-x 2 root root 4096 Jan 28 12:07 conf
drwxr-xr-x 2 root root 4096 Jan 28 12:07 html
drwxr-xr-x 2 root root 4096 Jan 28 12:07 logs
drwxr-xr-x 2 root root 4096 Jan 28 12:07 sbin

./conf:
total 36
-rw-r--r-- 1 root root 909 Jan 28 12:07 fastcgi_params
-rw-r--r-- 1 root root 909 Jan 28 12:07 fastcgi_params.default
-rw-r--r-- 1 root root 2837 Jan 28 12:07 koi-utf
-rw-r--r-- 1 root root 2223 Jan 28 12:07 koi-win
-rw-r--r-- 1 root root 3128 Jan 28 12:07 mime.types
-rw-r--r-- 1 root root 3128 Jan 28 12:07 mime.types.default
-rw-r--r-- 1 root root 2726 Jan 28 12:07 nginx.conf
-rw-r--r-- 1 root root 2726 Jan 28 12:07 nginx.conf.default
-rw-r--r-- 1 root root 3610 Jan 28 12:07 win-utf

./html:
total 8
-rw-r--r-- 1 root root 383 Jan 28 12:07 50x.html
-rw-r--r-- 1 root root 151 Jan 28 12:07 index.html

./logs:
total 0

./sbin:
total 3228
-rwxr-xr-x 1 root root 3297507 Jan 28 12:07 nginx
[hiyama@microapplications nginx]$