Dies ist eine alte Version des Dokuments!


nginx

Packete Installieren:

apt-get install g++ libpcre++-dev libssl-dev make

Beschaffen und entpacken:

cd /opt
wget http://nginx.org/download/nginx-0.8.52.tar.gz
tar xzf nginx-0.8.52.tar.gz
cd nginx-0.8.52

Upstream Modul:

wget http://wiki.nginx.org/images/1/11/Nginx_upstream_hash-0.3.1.tar.gz
tar xzf Nginx_upstream_hash-0.3.1.tar.gz
patch -p0 < /opt/nginx-0.8.52/nginx_upstream_hash-0.3.1/nginx.patch

Configure:

Loki:

./configure --prefix=/usr --user=www-data --group=www-data --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/cache/nginx/client-body --http-proxy-temp-path=/var/cache/nginx/proxy --http-fastcgi-temp-path=/var/cache/nginx/fastcgi --add-module=/opt/nginx-0.8.52/nginx_upstream_hash-0.3.1 --with-http_stub_status_module--with-http_realip_module --with-poll_module --with-http_ssl_module --with-http_geoip_module

Magni:

./configure --prefix=/usr --user=www-data --group=www-data --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/cache/nginx/client-body --http-proxy-temp-path=/var/cache/nginx/proxy --http-fastcgi-temp-path=/var/cache/nginx/fastcgi --add-module=/opt/nginx-0.8.52/nginx_upstream_hash-0.3.1 --with-poll_module --with-http_ssl_module --with-http_stub_status_module

Thor, Fosta, Idun, Hoedur:

./configure --prefix=/usr --user=www-data --group=www-data --conf-path=/etc/nginxw/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/cache/nginx/client-body --http-proxy-temp-path=/var/cache/nginx/proxy --http-fastcgi-temp-path=/var/cache/nginx/fastcgi --with-http_realip_module --with-http_stub_status_module --with-poll_module

Hel:

./configure --with-poll_module --prefix=/usr --user=www-data --group=www-data --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/cache/nginx/client-body --http-proxy-temp-path=/var/cache/nginx/proxy --http-fastcgi-temp-path=/var/cache/nginx/fastcgi --with-http_stub_status_module --with-http_ssl_module

Heimdallx1:

./configure --with-poll_module --prefix=/usr --user=www-data --group=www-data --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/cache/nginx/client-body --http-proxy-temp-path=/var/cache/nginx/proxy --http-fastcgi-temp-path=/var/cache/nginx/fastcgi --with-http_stub_status_module --with-http_ssl_module

Tyr:

./configure 
--with-poll_module 
--prefix=/usr --user=www --group=www --conf-path=/etc/nginxw/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/cache/nginx/client-body --http-proxy-temp-path=/var/cache/nginx/proxy --http-fastcgi-temp-path=/var/cache/nginx/fastcgi 
--with-http_stub_status_module
--with-http_ssl_module

Test:

./configure --prefix=/usr --user=www-data --group=www-data --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/cache/nginx/client-body --http-proxy-temp-path=/var/cache/nginx/proxy --http-fastcgi-temp-path=/var/cache/nginx/fastcgi --with-http_stub_status_module --with-http_realip_module --with-poll_module --with-http_ssl_module --with-http_geoip_module

Test:

./configure --prefix=/usr --user=www-data --group=www-data --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/cache/nginx/client-body --http-proxy-temp-path=/var/cache/nginx/proxy --http-fastcgi-temp-path=/var/cache/nginx/fastcgi --with-http_stub_status_module --with-poll_module

Fertig:

make
make install
mkdir /var/cache/nginx/

server/nginx.1286621550.txt.gz · Zuletzt geändert: 2025/01/25 16:55 (Externe Bearbeitung)
Nach oben
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0