Upgrade to Pro — share decks privately, control downloads, hide ads and more …

nginx维护手册.pdf

Lei Yang
September 27, 2011

 nginx维护手册.pdf

Lei Yang

September 27, 2011

Transcript

7 slides
  1. nginx debugč1) ֒ಒಪ൞nginxႵ໙ีҌቓđն҆ٳൈީnginx ી໙ีbປӮުcore dumpေЌ਽ netscaler> disable server nginx_ip nginx>

    gdb attach nginx_pid gdb> gcore nginx> gdb /opt/app/nginx/sbin/nginx core.pid gdb> backtrace nginx> /etc/init.d/nginx restart netscaler> enable server nginx_ip ୍ᄅರྒ௹೘
  2. 20485 20485 20485 ? Ss 0:00 nginx: master process /opt/app/nginx/sbin/nginx

    -c /opt/conf/ nginx/nginx.conf 20486 20485 20485 ? S 19:55 \_ nginx: worker process 20488 20485 20485 ? S 19:58 \_ nginx: worker process 20489 20485 20485 ? S 20:09 \_ nginx: worker process 20490 20485 20485 ? S 20:01 \_ nginx: worker process 20491 20485 20485 ? S 20:04 \_ nginx: worker process 20492 20485 20485 ? S 20:10 \_ nginx: worker process 20493 20485 20485 ? S 20:11 \_ nginx: worker process 20494 20485 20485 ? S 19:55 \_ nginx: worker process 20495 20485 20485 ? S 0:00 \_ nginx: cache manager process nginx debugč2) ഈඍ҄ᇧ҂ֆؓ၂۱nginxࣉӱğ pgrep nginx #ࠆ֤nginxࣉӱݼ master, cache managerࣉӱсቓĠworker processቓᇀഒਆ۱ ୍ᄅರྒ௹೘

More Decks by Lei Yang

Other Decks in Technology