Welcome! Log In Create A New Profile

Advanced

Re: [nginx] dso

April 27, 2016 12:10PM
On 27 Apr 2016, at 18:51, 洪志道 <hongzhidao@gmail.com> wrote:

> Thanks for your reply.
>
> Is it the only way to solve the problem?

This is a way to reload a module in production without service interruption.

> I think it will be common that developers try to use dso instead of static module.

Developers can simply stop and start nginx again.

--
Igor Sysoev
http://nginx.com

> Nginx offical site points out we could load in so modules using reload or restart, but it seems forget to instruct the details about reload.
> And it's a great design, thanks again.
>
> 2016-04-27 19:22 GMT+08:00 Igor Sysoev <igor@sysoev.ru>:
> On 27 Apr 2016, at 12:10, 洪志道 <hongzhidao@gmail.com> wrote:
>
>> Hi,
>>
>> for example following config:
>>
>> daemon on;
>> ...
>> load_module modules/ngx_http_test_module.so;
>> ...
>>
>> > start nginx
>> > change ngx_http_test_module.c, then regenerate so file
>> > kill -HUP pid
>>
>> I found nginx still run the old so file (load first time), and how to work with new so file?
>>
>> I tried .../sbin/nginx -s reload, It works as I expected. It seems there is some differences in 'kill -HUP' and 'sbin/nginx -s reload’;
>
> kill -USR2 `cat nginx.pid`; sleep 2; kill -QUIT `cat nginx.pid.oldbin`
>
>
> --
> Igor Sysoev
> http://nginx.com

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] dso

洪志道 747 April 27, 2016 05:12AM

Re: [nginx] dso

Igor Sysoev 663 April 27, 2016 07:24AM

Re: [nginx] dso

洪志道 439 April 27, 2016 11:52AM

Re: [nginx] dso

Igor Sysoev 637 April 27, 2016 12:10PM

Re: [nginx] dso

洪志道 396 April 27, 2016 12:34PM

Re: [nginx] dso

Igor Sysoev 716 April 27, 2016 03:04PM

Re: [nginx] dso

洪志道 358 June 15, 2016 01:30PM

Re: [nginx] dso

Maxim Dounin 357 June 15, 2016 04:16PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 129
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready