Nginx维护手册

  • 1,032 views
Uploaded on

写个同事的nginx维护手册

写个同事的nginx维护手册

More in: Technology , Business
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
1,032
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
24
Comments
0
Likes
3

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. nginxLei Yang <clanherb@gmail.com>
  • 2. nginx nginx stable releasestable release 1 stable /opt/app/nginx/sbin/nginx -V
  • 3. --add-module nginx emailgithub Downloads tar
  • 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. 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. nginx debug 3)backtracenginx@nginx.org backtrace nginx http://forum.nginx.org/read.php?2,212274