Nginx维护手册
Upcoming SlideShare
Loading in...5
×
 

Nginx维护手册

on

  • 1,152 views

写个同事的nginx维护手册

写个同事的nginx维护手册

Statistics

Views

Total Views
1,152
Views on SlideShare
1,152
Embed Views
0

Actions

Likes
3
Downloads
24
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Nginx维护手册 Nginx维护手册 Presentation Transcript

  • 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 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
  • 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
  • nginx debug 3)backtracenginx@nginx.org backtrace nginx http://forum.nginx.org/read.php?2,212274