Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
nginx维护手册.pdf
Search
Lei Yang
September 27, 2011
Technology
170
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
nginx维护手册.pdf
Lei Yang
September 27, 2011
Transcript
7 slides
nginxົ൭Ҩ Lei Yang <
[email protected]
> ୍ᄅರྒ௹
nginxശࠩ ۵ෛnginx stable release ֒stable releaseശࠩުđᄝ1ᇛଽശࠩ֞ቋྍb ҂ေ৫ࠧശࠩđٝᆸstableԛགྷᇗ໙ี щၲҕඔЌӻ໗קđૄՑטᆜႯࡱಞቆଽ൙ ᆩ֡ğ/opt/app/nginx/sbin/nginx -V
୍ᄅರྒ௹
ֻٚଆॶശࠩ щၲൈႨ--add-module֥൞ֻٚଆॶ ҰଆॶაྍϱЧnginx֥࡙ಸྟbೂݔીႵཌྷ ܱඪૼđᆰࢤemailଆॶቔᆀ࿘໙ githubഈ֥ଆॶႨDownloads֥tarЇ ୍ᄅರྒ௹
ֻٚଆॶശࠩ ୍ᄅರྒ௹
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 ୍ᄅರྒ௹
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ቓᇀഒਆ۱ ୍ᄅರྒ௹
nginx debugč3) backtraceࠆ౼ປުđཿႇ໓Ⴏࡱؿෂ֞
[email protected]
Ⴏࡱਙі Ⴏࡱଽಸğ ༵૭ඍౢԣ໙ีđಖުڸഈbacktraceđቋު۳ ԛҠቔ༢ϱЧđnginxщၲҕඔb Ⴏࡱ২ሰğhttp:/ /forum.nginx.org/read.php?
2,212274 ୍ᄅರྒ௹
More Decks by Lei Yang
See All by Lei Yang
webis chronicle.pdf
hydra35
1
85
Intro. to No Man's Land
hydra35
1
78
Other Decks in Technology
See All in Technology
コーディングできない僕にBobが舞い降りた
shumpei3
0
200
AWS Blocksで AIエージェント作れるの知ってます?
kmiya84377
1
170
エンタープライズIAMについて - ID・権限をどう統制するか
oidfj
1
320
フロントエンドのテストカバレッジは 100%強制がいい
bengo4com
5
1.7k
Welcome JXL!
dynamis
0
120
現地速報! Microsoft Ignite アップデートレポート
kasada
1
460
リリースしたで終わらない。 観測できるフロントエンド開発
yamakenji24
2
230
Go でトランザクション、どう書いてますか?
knwoop
1
590
HTTP通信に使おうとすると実はめんどくさいfile_get_contents
maguroalternative
0
260
Context parameters で作る!はじめての型クラス
kworkdev
PRO
1
180
NutanixへのSSHアクセスの今後について
shadowhat
0
170
新規事業開発でのAWS活用成功談&失敗談! 〜新規事業開発を専門に行うRelicならではのAWS活用〜
amixedcolor
1
140
Featured
See All Featured
What the history of the web can teach us about the future of AI
inesmontani
PRO
3
830
Claude Code のすすめ
schroneko
67
230k
Utilizing Notion as your number one productivity tool
mfonobong
4
650
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.7k
Technical Leadership for Architectural Decision Making
baasie
4
660
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
30 Presentation Tips
portentint
PRO
1
480
Reality Check: Gamification 10 Years Later
codingconduct
0
2.4k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
Amusing Abliteration
ianozsvald
1
400
Done Done
chrislema
187
17k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
370