Witam was,
nginx 05.04.2016 – został zaktualizowany do wersji 1.9.14
Changelog:
Changes with nginx 1.9.14 05 Apr 2016 *) Feature: OpenSSL 1.1.0 compatibility. *) Feature: the "proxy_request_buffering", "fastcgi_request_buffering", "scgi_request_buffering", and "uwsgi_request_buffering" directives now work with HTTP/2. *) Bugfix: "zero size buf in output" alerts might appear in logs when using HTTP/2. *) Bugfix: the "client_max_body_size" directive might work incorrectly when using HTTP/2. *) Bugfix: of minor bugs in logging. Changes with nginx 1.9.13 29 Mar 2016 *) Change: non-idempotent requests (POST, LOCK, PATCH) are no longer passed to the next server by default if a request has been sent to a backend; the "non_idempotent" parameter of the "proxy_next_upstream" directive explicitly allows retrying such requests. *) Feature: the ngx_http_perl_module can be built dynamically. *) Feature: UDP support in the stream module. *) Feature: the "aio_write" directive. *) Feature: now cache manager monitors number of elements in caches and tries to avoid cache keys zone overflows. *) Bugfix: "task already active" and "second aio post" alerts might appear in logs when using the "sendfile" and "aio" directives with subrequests. *) Bugfix: "zero size buf in output" alerts might appear in logs if caching was used and a client closed a connection prematurely. *) Bugfix: connections with clients might be closed needlessly if caching was used. Thanks to Justin Li. *) Bugfix: nginx might hog CPU if the "sendfile" directive was used on Linux or Solaris and a file being sent was changed during sending. *) Bugfix: connections might hang when using the "sendfile" and "aio threads" directives. *) Bugfix: in the "proxy_pass", "fastcgi_pass", "scgi_pass", and "uwsgi_pass" directives when using variables. Thanks to Piotr Sikora. *) Bugfix: in the ngx_http_sub_filter_module. *) Bugfix: if an error occurred in a cached backend connection, the request was passed to the next server regardless of the proxy_next_upstream directive. *) Bugfix: "CreateFile() failed" errors when creating temporary files on Windows.
Przygotowałem dla was gotowe pliki (źródła) z moimi konfiguracjami.
Całośc opracowana do pracy z systemami: Debian 8 / Ubuntu 12.04 / Ubuntu 14.04 / Ubuntu 15.10 / Fedora 19 / Fedora20 / CentOS 7 / CentOS 6 oraz OpenSUSE i NOWOŚĆ – ARMBIAN oraz architektura ARM v7!
|
|
Ubuntu 12.04 – nginx 1.9.14 (mainline)
add-apt-repository ppa:ubuntu-toolchain-r/test apt-get update apt-get install dpkg-dev build-essential zlib1g-dev libpcre3 libpcre3-dev unzip curl libcurl4-openssl-dev libossp-uuid-dev autotools-dev libexpat-dev libgd2-noxpm-dev libgeoip-dev liblua5.1-dev libmhash-dev libpam0g-dev libperl-dev libxslt1-dev debhelper -y apt-get install gcc-4.8 g++-4.8 -y update-alternatives --remove-all gcc update-alternatives --remove-all g++ update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20 update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20 update-alternatives --config gcc update-alternatives --config g++ cd /root/ mkdir ~/custom-nginx cd ~/custom-nginx wget http://repo.linuxiarz.pl/NGINX-1.9.14-UNIX.tar.gz tar xvf NGINX-1.9.1*.tar.gz rm -rf NGINX-1.9.1*.tar.gz cd nginx-* ./configure.sh make make install cd ~ wget http://pliki.linuxiarz.pl/01-2016/nginx_start -O /etc/init.d/nginx chmod +x /etc/init.d/nginx rm -rf /etc/nginx/ cd /root/ ; mkdir nginx cd nginx ; wget http://pliki.linuxiarz.pl/01-2016/nginx_cfg1.zip unzip nginx_cfg1.zip ; cd /root mv nginx /etc/ mkdir -p /var/www/ mkdir -p /var/cache/nginx/client_temp service nginx start
Domyślny katalog www: /var/www/em
Debian 8 / Ubuntu 14.04 – nginx 1.9.14
apt-get update apt-get update; apt-get install dpkg-dev build-essential zlib1g-dev libpcre3 libpcre3-dev unzip curl libcurl4-openssl-dev libossp-uuid-dev nano curl git autotools-dev debhelper dh-systemd libexpat-dev libgd-dev libgeoip-dev libluajit-5.1-dev liblua5.1-0-dev libmhash-dev libpam0g-dev libperl-dev libxslt1-dev po-debconf libssl-dev -y wget http://repo.linuxiarz.pl/NGINX-1.9.14-custom.tar.gz tar xvf NGINX-1.9.1*.tar.gz rm NGINX-1.9.1*.tar.gz cd nginx-1.9.* dpkg-buildpackage -b cd .. dpkg -i nginx-common_1.9.*.deb nginx_1.9.*.deb nginx-extras_1.9.*.deb # START - DEBIAN 8 systemctl start nginx # START - UBUNTU 14.04 service nginx start
Domyślny katalog www: /usr/share/nginx/html
Ubuntu 15.04/15.10 – nginx 1.9.14
sudo apt-get update apt-get update; apt-get install dpkg-dev build-essential zlib1g-dev libpcre3 libpcre3-dev unzip curl libcurl4-openssl-dev libossp-uuid-dev nano curl git autotools-dev debhelper dh-systemd libexpat-dev libgd-dev libgeoip-dev libluajit-5.1-dev liblua5.1-0-dev libmhash-dev libpam0g-dev libperl-dev libxslt1-dev po-debconf libssl-dev -y curl http://repo.linuxiarz.pl/NGINX-1.9.14-custom.tar.gz | tar xz cd nginx* && dpkg-buildpackage -b cd .. ; dpkg -i nginx-common_1.9.*.deb nginx_1.9.*.deb nginx-extras_1.9.*.deb nginx-doc_1.9.*.deb systemctl start nginx
Domyślny katalog www: /usr/share/nginx/html
CentOS 6 – nginx 1.9.14
http://linuxiarz.pl/1874/centos-6-nginx-mariadb-phpmyadmin/
CentOS 7 – nginx 1.9.14
setenforce 0 useradd nginx yum install epel-release -y yum install wget curl unzip gcc-c++ pcre-devel zlib-devel openssl-devel lua-devel make -y cd /root/ mkdir ~/custom-nginx cd ~/custom-nginx wget http://repo.linuxiarz.pl/NGINX-1.9.14-UNIX.tar.gz tar xvf NGINX-1.9.1*.tar.gz rm -rf NGINX-1.9.1*.tar.gz cd nginx-* ./configure.sh make make install cd ~ mkdir -p /var/www chown nginx:nginx -R /var/www rm -rf /etc/nginx/ cd /root/ ; mkdir nginx cd nginx ; wget http://pliki.linuxiarz.pl/01-2016/nginx_cfg2.zip unzip nginx_cfg2.zip ; cd /root mv nginx /etc/ wget http://pliki.linuxiarz.pl/11-2015/nginx-init.d_centos -O /etc/init.d/nginx chmod +x /etc/init.d/nginx /etc/init.d/nginx start
Domyślny katalog www: /var/www
Fedora 19 – nginx 1.9.14
useradd nginx yum install epel-release -y yum install wget curl unzip gcc-c++ pcre-devel zlib-devel openssl-devel lua-devel make -y cd /root/ mkdir ~/custom-nginx cd ~/custom-nginx wget http://repo.linuxiarz.pl/NGINX-1.9.14-UNIX.tar.gz tar xvf NGINX-1.9.1*.tar.gz rm -rf NGINX-1.9.1*.tar.gz cd nginx-* rm configure.sh -rf wget http://pliki.linuxiarz.pl/01-2016/nginx_config_fedora2.sh -O configure.sh chmod +x configure.sh bash configure.sh make make install cd ~ mkdir -p /var/www useradd nginx chown nginx:nginx -R /var/www rm -rf /etc/nginx/ cd /root/ ; mkdir nginx cd nginx ; wget http://pliki.linuxiarz.pl/01-2016/nginx_cfg2.zip unzip nginx_cfg2.zip ; cd /root mv nginx /etc/ wget http://pliki.linuxiarz.pl/11-2015/nginx-init.d_centos -O /etc/init.d/nginx chmod +x /etc/init.d/nginx /etc/init.d/nginx start
Domyślny katalog www: /var/www
Fedora 20 – nginx 1.9.14
useradd nginx yum install epel-release -y yum install wget curl unzip gcc-c++ pcre-devel zlib-devel openssl-devel lua-devel make -y cd /root/ mkdir ~/custom-nginx cd ~/custom-nginx wget http://repo.linuxiarz.pl/NGINX-1.9.14-UNIX.tar.gz tar xvf NGINX-1.9.1*.tar.gz rm -rf NGINX-1.9.1*.tar.gz cd nginx-* rm configure.sh -rf wget http://pliki.linuxiarz.pl/01-2016/nginx_config_fedora2.sh -O configure.sh chmod +x configure.sh bash configure.sh make make install cd ~ rm -rf /etc/nginx/ cd /root/ ; mkdir nginx cd nginx ; wget http://pliki.linuxiarz.pl/01-2016/nginx_cfg2.zip unzip nginx_cfg2.zip ; cd /root mv nginx /etc/ mkdir -p /var/www chown nginx:nginx -R /var/www
Domyślny katalog www: /var/www
Fedora 23 – nginx 1.9.14
useradd nginx dnf install wget curl unzip gcc-c++ pcre-devel zlib-devel openssl-devel lua-devel make -y cd /root/ mkdir ~/custom-nginx cd ~/custom-nginx wget http://repo.linuxiarz.pl/NGINX-1.9.14-UNIX.tar.gz tar xvf NGINX-1.9.1*.tar.gz rm -rf NGINX-1.9.1*.tar.gz cd nginx-* rm configure.sh -rf wget http://pliki.linuxiarz.pl/01-2016/nginx_config_fedora2.sh -O configure.sh chmod +x configure.sh bash configure.sh make make install cd ~ rm -rf /etc/nginx/ cd /root/ ; mkdir nginx cd nginx ; wget http://pliki.linuxiarz.pl/01-2016/nginx_cfg2.zip unzip nginx_cfg2.zip ; cd /root mv nginx /etc/ wget http://pliki.linuxiarz.pl/02-2016/nginx.service -O /lib/systemd/system/nginx.service mkdir -p /var/www mkdir "/var/cache/nginx/client_temp" -p chown nginx:nginx -R /var/www sed -i s'/fastcgi_pass unix:\/var\/run\/php5-fpm.sock/fastcgi_pass unix:\/run\/php-fpm\/www.sock/' /etc/nginx/php.conf
Domyślny katalog www: /var/www
OpenSUSE – nginx 1.9.14
zypper install nano wget curl unzip gcc-c++ pcre-devel zlib-devel openssl-devel make -y mkdir ~/custom-nginx cd ~/custom-nginx wget http://repo.linuxiarz.pl/NGINX-1.9.14-UNIX.tar.gz tar xvf NGINX-1.9.1*.tar.gz cd nginx-* rm configure.sh wget wget http://nginx.linuxiarz.pl/opensuse/config.sh -O configure.sh chmod +x configure.sh bash configure.sh make make install rm -rf /etc/nginx/ cd /root/ ; mkdir nginx cd nginx ; http://pliki.linuxiarz.pl/01-2016/nginx_cfg3.zip nginx_cfg3.zip ; cd /root mv nginx /etc/ mkdir -p /var/www/ mkdir /var/cache/nginx/client_temp -p nginx -c /etc/nginx/nginx.conf
Domyślny katalog www: /var/www
ARM v7 – testowane na ARMBIAN
Wersja pozbawiona jest modułu ngx_pagespeed ponieważ nie jest ona zgodna z architekturą armhf
apt-get update; apt-get install dpkg-dev build-essential zlib1g-dev libpcre3 libpcre3-dev unzip curl libcurl4-openssl-dev libossp-uuid-dev nano curl git autotools-dev debhelper dh-systemd libexpat-dev libgd-dev libgeoip-dev libluajit-5.1-dev liblua5.1-0-dev libmhash-dev libpam0g-dev libperl-dev libxslt1-dev po-debconf libssl-dev -y curl http://repo.linuxiarz.pl/NGINX-1.9.14-custom-ARMv7.tar.gz | tar xz cd nginx* && dpkg-buildpackage -b cd .. ; dpkg -i nginx-common_1.9.*.deb nginx_1.9.*.deb nginx-extras_1.9.*.deb nginx-doc_1.9.*.deb systemctl start nginx
LUB GOTOWE PACZKI:
apt-get update apt-get install fontconfig-config fonts-dejavu-core libfontconfig1 libgd3 libjbig0 liblua5.1-0 libperl5.20 libtiff5 libxpm4 libxslt1.1 libpython-stdlib libpython2.7-minimal libpython2.7-stdlib python python-minimal python2.7 python2.7-minimal fcgiwrap ssl-cert libossp-uuid16 -y wget http://kompilacje.linuxiarz.pl/Debian_8/nginx-1.9.14-OUT-OF-THE-BOX-ARM/nginx-common_1.9.14-1-linuxiarz.pl_all.deb wget http://kompilacje.linuxiarz.pl/Debian_8/nginx-1.9.14-OUT-OF-THE-BOX-ARM/nginx-extras_1.9.14-1-linuxiarz.pl_armhf.deb wget http://kompilacje.linuxiarz.pl/Debian_8/nginx-1.9.14-OUT-OF-THE-BOX-ARM/nginx_1.9.14-1-linuxiarz.pl_all.deb wget http://kompilacje.linuxiarz.pl/Debian_8/nginx-1.9.14-OUT-OF-THE-BOX-ARM/nginx-doc_1.9.14-1-linuxiarz.pl_all.deb dpkg --install *.deb systemctl start nginx
Domyślny katalog www: /usr/share/nginx/html
Testowane i kompilowane na OrangePi i system Debian 8 Jessie (ARMBIAN)
Całość powinna działać na RASPBERRY PI i innych mikrokomputerach.