Welcome! Log In Create A New Profile

Advanced

Re: Максиму Дунину ngx http upstream keepalive + upstream keepalive patch 100% загрузка CPU

September 07, 2011 04:59AM
Максим nginx-1.1.2 с патчем http://nginx.org/patches/patch-nginx-keepalive-full-5.txt при

./configure \
--user=%{nginx_user} \
--group=%{nginx_group} \
--prefix=%{nginx_datadir} \
--sbin-path=%{_sbindir}/%{name} \
--conf-path=%{nginx_confdir}/%{name}.conf \
--error-log-path=%{nginx_logdir}/error.log \
--http-log-path=%{nginx_logdir}/access.log \
--http-client-body-temp-path=%{nginx_home_tmp}/client_body \
--http-proxy-temp-path=%{nginx_home_tmp}/proxy \
--http-fastcgi-temp-path=%{nginx_home_tmp}/fastcgi \
--pid-path=%{_localstatedir}/run/%{name}.pid \
--lock-path=%{_localstatedir}/lock/subsys/%{name} \
--with-http_secure_link_module \
--with-http_random_index_module \
--with-http_ssl_module \
--with-http_realip_module \
--with-http_addition_module \
--with-http_sub_module \
--with-http_dav_module \
--with-http_flv_module \
--with-http_gzip_static_module \
--with-http_stub_status_module \
--with-http_perl_module \
--with-http_geoip_module \
--with-mail \
--with-mail_ssl_module \
--with-cc-opt="%{optflags} $(pcre-config --cflags)" \
--with-ipv6 \
--with-file-aio \
--add-module=%{_builddir}/nginx-%{version}/nginx-upstream-fair \
--add-module=%{_builddir}/nginx-%{version}/nginx-upload-progress-module \
--add-module=%{_builddir}/nginx-%{version}/mod_zip-1.1.6 \
--add-module=%{_builddir}/nginx-%{version}/nginx_upload_module-2.2.0 \
--add-module=%{_builddir}/nginx-%{version}/nginx_mod_h264_streaming-2.2.7 \
--add-module=%{_builddir}/nginx-%{version}/ngx_http_auth_pam_module-1.2 \
--add-module=%{_builddir}/nginx-%{version}/ngx_http_upstream_keepalive-0.6


получаю ошибку

objs/addon/ngx_http_upstream_keepalive-0.6/ngx_http_upstream_keepalive_module.o:(.data+0x0): multiple definition of `ngx_http_upstream_keepalive_module'
objs/src/http/modules/ngx_http_upstream_keepalive_module.o:(.data+0x0): first defined here
collect2: ld returned 1 exit status
make[1]: *** [objs/nginx] Error 1
make[1]: Leaving directory `/home/mock/BUILD_ROOT/BUILD/nginx-1.1.2'
make: *** [build] Error 2

правильно ли я понимаю, что в патче http://nginx.org/patches/patch-nginx-keepalive-full-5.txt строки

diff --git a/auto/sources b/auto/sources
--- a/auto/sources
+++ b/auto/sources
@@ -471,6 +471,11 @@ HTTP_UPSTREAM_IP_HASH_MODULE=ngx_http_up
HTTP_UPSTREAM_IP_HASH_SRCS=src/http/modules/ngx_http_upstream_ip_hash_module.c


+HTTP_UPSTREAM_KEEPALIVE_MODULE=ngx_http_upstream_keepalive_module
+HTTP_UPSTREAM_KEEPALIVE_SRCS=" \
+ src/http/modules/ngx_http_upstream_keepalive_module.c"
+
+
MAIL_INCS="src/mail"

MAIL_DEPS="src/mail/ngx_mail.h"

в моем случае лишние ?
Subject Author Posted

Re: Максиму Дунину ngx http upstream keepalive + upstream keepalive patch 100% загрузка CPU

Maxim Dounin September 07, 2011 03:12AM

Re: Максиму Дунину ngx http upstream keepalive + upstream keepalive patch 100% загрузка CPU

INF[SZ] September 07, 2011 04:31AM

Re: Максиму Дунину ngx http upstream keepalive + upstream keepalive patch 100% загрузка CPU

INF[SZ] September 07, 2011 04:59AM

Re: Максиму Дунину ngx http upstream keepalive + upstream keepalive patch 100% загрузка CPU

Maxim Dounin September 07, 2011 05:44AM

Re: Максиму Дунину ngx http upstream keepalive + upstream keepalive patch 100% загрузка CPU

INF[SZ] September 12, 2011 01:36AM

Re: Максиму Дунину ngx http upstream keepalive + upstream keepalive patch 100% загрузка CPU

Maxim Dounin September 12, 2011 09:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 190
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready