# nginx -V nginx version: nginx/1.5.2 TLS SNI support enabled configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --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 --with-cc-opt='-D FD_SETSIZE=2048' --http-client-body-temp-path=/var/cache/nginx/body_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --lock-path=/var/lock/nginx.lock --with-http_ssl_module --with-http_stub_status_module --with-http_flv_module --with-http_mp4_module --with-http_realip_module --with-http_gzip_static_module --with-http_secure_link_module --with-http_sub_module --with-file-aio --with-pcre=/root/build/deb-build/nginx-1.5.2/../pcre --with-pcre-jit --with-http_geoip_module --add-module=/root/build/deb-build/nginx-1.5.2/debian/modules/ngx-fancyindex
Обнаружил, что на другом сервере всё ок: после после kill -HUP /# ps auxfw | grep nginx root 14565 0.0 1.8 62696 47664 ? Ss Aug07 0:00 nginx: master process /usr/sbin/nginx nobody 9406 0.3 1.7 62628 45860 ? S Aug11 13:22 \_ nginx: worker process is shutting down nobody 9407 0.2 1.7 62628 45852 ? S Aug11 13:10 \_ nginx: worker process is shutting down nobody 24697 0.8 1.8 62700 47464 ? S 14:56 0:00 \_ nginx: worker process nobody 24698 0.0 1.8 62700 47444 ? S 14:56 0:00 \_ nginx: worker process Сборка nginx на обоих серверах одинаковая (у нас собственные сборки деб пакетов), на обоих серверах нгинх поставлен из одного деба, оба сервера OpenVZ с одним ядром и одной убунтой # lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04.2 LTS Release: 12.04 Codename: precise на которой стоят одинаковые пакеты. Проблема на первом сервере стабильно воспроизводится. 14.08.2013 16:55, Nick Knutov пишет: > В последних нескольких версиях nginx не перечитывает конфиг по сигналу > HUP (рестарт при этом приводит к запуску нгинх с новым конфигом). > > Что-то изменилось, или я что-то делаю не так? > > # cat /var/run/nginx.pid > 31162 > > # kill -HUP 31162 > > # ps auxfw | grep nginx > root 31162 0.0 1.0 50912 26612 ? Ss Aug11 0:00 nginx: > master process /usr/sbin/nginx > nobody 31163 0.1 1.0 51756 27440 ? S Aug11 6:50 \_ > nginx: worker process > nobody 31164 0.1 1.0 52152 27976 ? S Aug11 6:51 \_ > nginx: worker process > > Aug11 осталось как было (а сейчс Aug14), при обращении по хттп видно, > что конфиг старый. > > # nginx -t > nginx: [warn] low address bits of ***.***.***.***/27 are meaningless in > /etc/nginx/nginx.conf:96 > nginx: the configuration file /etc/nginx/nginx.conf syntax is ok > nginx: configuration file /etc/nginx/nginx.conf test is successful > -- Best Regards, Nick Knutov http://knutov.com ICQ: 272873706 Voice: +7-904-84-23-130 _______________________________________________ nginx-ru mailing list [email protected] http://mailman.nginx.org/mailman/listinfo/nginx-ru
