0
nginxLei Yang <clanherb@gmail.com>
nginx  nginx stable releasestable release            1                 stable    /opt/app/nginx/sbin/nginx -V
--add-module                nginx            emailgithub            Downloads   tar
nginx debug                               1)         nginx                                   nginx                  core d...
nginx debug                                                       2)                                            nginxpgrep...
nginx debug                 3)backtracenginx@nginx.org                          backtrace                  nginx          ...
Nginx维护手册
Upcoming SlideShare
Loading in...5
×

Nginx维护手册

1,066

Published on

写个同事的nginx维护手册

Published in: Technology, Business
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,066
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
25
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Transcript of "Nginx维护手册"

  1. 1. nginxLei Yang <clanherb@gmail.com>
  2. 2. nginx nginx stable releasestable release 1 stable /opt/app/nginx/sbin/nginx -V
  3. 3. --add-module nginx emailgithub Downloads tar
  4. 4. nginx debug 1) nginx nginx core dumpnetscaler> disable server nginx_ipnginx> gdb attach nginx_pidgdb> gcorenginx> gdb /opt/app/nginx/sbin/nginx core.pidgdb> backtracenginx> /etc/init.d/nginx restartnetscaler> enable server nginx_ip
  5. 5. nginx debug 2) nginxpgrep nginx # nginxmaster, cache manager workerprocess20485 20485 20485 ? Ss 0:00 nginx: master process /opt/app/nginx/sbin/nginx -c /opt/conf/nginx/nginx.conf20486 20485 20485 ? S 19:55 _ nginx: worker process20488 20485 20485 ? S 19:58 _ nginx: worker process20489 20485 20485 ? S 20:09 _ nginx: worker process20490 20485 20485 ? S 20:01 _ nginx: worker process20491 20485 20485 ? S 20:04 _ nginx: worker process20492 20485 20485 ? S 20:10 _ nginx: worker process20493 20485 20485 ? S 20:11 _ nginx: worker process20494 20485 20485 ? S 19:55 _ nginx: worker process20495 20485 20485 ? S 0:00 _ nginx: cache manager process
  6. 6. nginx debug 3)backtracenginx@nginx.org backtrace nginx http://forum.nginx.org/read.php?2,212274
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×