Linux/nginx/動的サムネイル生成
提供: 初心者エンジニアの簡易メモ
ngx_small_lightインストール
# yum install pcre-devel zlib-devel openssl-devel gd-devel # yum install ImageMagick ImageMagick-devel # yum install http://dl.fedoraproject.org/pub/epel/6/x86_64/imlib2-1.4.2-5.el6.x86_64.rpm # yum install http://dl.fedoraproject.org/pub/epel/6/x86_64/imlib2-devel-1.4.2-5.el6.x86_64.rpm # cd /usr/local/src # git clone https://github.com/cubicdaiya/ngx_small_light.git # cd ngx_small_light # ./setup --with-imlib2 --with-gd # ngx_small_light=`pwd`
yumのnginxを削除
yum remove nginx cd /usr/local/src/ wget http://nginx.org/download/nginx-1.9.0.tar.gz tar zxvf nginx-1.9.0.tar.gz cd nginx-1.9.0 ./configure --prefix=/usr/local/nginx-1.9.0 \ --user=nginx \ --group=nginx \ --with-pcre \ --with-http_ssl_module \ --with-http_realip_module \ --with-http_stub_status_module \ --add-module=/usr/local/src/ngx_small_light make make install wget -O /etc/init.d/nginx 'http://wiki.nginx.org/index.php?title=RedHatNginxInitScript&action=raw&anchor=nginx' # chmod +x /etc/init.d/nginx
参考
http://cubicdaiya.github.io/blog/ja/blog/2012/06/13/ngx-small-light/
(未完成)