Скачиваем модули
git clone https://github.com/vkholodkov/nginx-upload-module.git
git clone -b 2.2 git://github.com/vkholodkov/nginx-upload-module.git nginx-upload-module-2.2m
(git clone https://github.com/masterzen/nginx-upload-progress-module.git)
Скачиваем стабильную версию nginx:
http://nginx.org/ru/download.html
Собираем nginx
./configure --sbin-path=/usr/sbin/nginx --prefix=/usr/share/nginx \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--http-client-body-temp-path=/var/lib/nginx/tmp/client_body \
--http-proxy-temp-path=/var/lib/nginx/tmp/proxy \
--http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi \
--http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi \
--http-scgi-temp-path=/var/lib/nginx/tmp/scgi \
--pid-path=/var/run/nginx.pid \
--lock-path=/var/lock/subsys/nginx \
--user=nginx --group=nginx \
--with-file-aio --with-ipv6 \
--with-http_ssl_module \
--with-http_realip_module \
--with-http_addition_module \
--with-http_xslt_module \
--with-http_image_filter_module \
--with-http_geoip_module \
--with-http_sub_module \
--with-http_dav_module \
--with-http_flv_module \
--with-http_mp4_module \
--with-http_gzip_static_module \
--with-http_random_index_module \
--with-http_secure_link_module \
--with-http_degradation_module \
--with-http_stub_status_module \
--with-http_perl_module \
--with-mail --with-mail_ssl_module \
--add-module="/root/BUILD/nginx-upload-module-2.2m" \
--add-module="/root/BUILD/nginx-upload-progress-module" \
--add-module="/root/BUILD/nginx-upstream-fair" \
--with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --with-ld-opt=-Wl,-E
make
make install
Осталось собрать пакет с помощью checkinstall
git clone https://github.com/vkholodkov/nginx-upload-module.git
git clone -b 2.2 git://github.com/vkholodkov/nginx-upload-module.git nginx-upload-module-2.2m
(git clone https://github.com/masterzen/nginx-upload-progress-module.git)
Ставим пакеты необходимые для сборки nginx
yum install pcre pcre-devel yum install perl-devel perl-ExtUtils-Embed perl-ExtUtils-CBuilder perl-CPAN yum install openssl-devel yum install libxml2-devel libxslt-devel yum install gd-devel yum install GeoIP-devel
Скачиваем стабильную версию nginx:
http://nginx.org/ru/download.html
Собираем nginx
./configure --sbin-path=/usr/sbin/nginx --prefix=/usr/share/nginx \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--http-client-body-temp-path=/var/lib/nginx/tmp/client_body \
--http-proxy-temp-path=/var/lib/nginx/tmp/proxy \
--http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi \
--http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi \
--http-scgi-temp-path=/var/lib/nginx/tmp/scgi \
--pid-path=/var/run/nginx.pid \
--lock-path=/var/lock/subsys/nginx \
--user=nginx --group=nginx \
--with-file-aio --with-ipv6 \
--with-http_ssl_module \
--with-http_realip_module \
--with-http_addition_module \
--with-http_xslt_module \
--with-http_image_filter_module \
--with-http_geoip_module \
--with-http_sub_module \
--with-http_dav_module \
--with-http_flv_module \
--with-http_mp4_module \
--with-http_gzip_static_module \
--with-http_random_index_module \
--with-http_secure_link_module \
--with-http_degradation_module \
--with-http_stub_status_module \
--with-http_perl_module \
--with-mail --with-mail_ssl_module \
--add-module="/root/BUILD/nginx-upload-module-2.2m" \
--add-module="/root/BUILD/nginx-upload-progress-module" \
--add-module="/root/BUILD/nginx-upstream-fair" \
--with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --with-ld-opt=-Wl,-E
make
make install
Осталось собрать пакет с помощью checkinstall
Комментариев нет:
Отправить комментарий