浜斿垎閽熺湅鎳?Nginx 璐熻浇鍧囪
Posted 鏀块噰浜戝墠绔洟闃?/a>
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了浜斿垎閽熺湅鎳?Nginx 璐熻浇鍧囪相关的知识,希望对你有一定的参考价值。
鏈枃棣栧彂浜庢斂閲囦簯鍓嶇鍥㈤槦鍗氬锛氫簲鍒嗛挓鐪嬫噦 nginx 璐熻浇鍧囪
https://www.zoo.team/article/nginx
鍓嶈█
瀵逛簬鐢靛晢骞冲彴鑰岃█锛岄殢鐫€涓氬姟鐨勪笉鏂彂灞曞.澶э紝缃戠珯璁块棶閲忓拰鏁版嵁閲忎篃闅忎箣鎬ュ墽澧為暱锛岃鎯呭喌鐨勪骇鐢熺粰鏈嶅姟鍣ㄥ甫鏉ヤ簡涓€瀹氱殑璐熸媴銆備粠鐢ㄦ埛浣撻獙灞傞潰鑰岃█锛岀敱浜庢湇鍔″櫒绔暟鎹鐞嗗甫鏉ョ殑鏃跺欢锛屽線寰€瀵艰嚧椤甸潰鐨勫搷搴旈€熷害杩囨參銆佹搷浣滄祦鐣呮€у彈闃荤瓑闂銆傝繖鍦ㄦ煇绉嶇▼搴︿笂鐢氳嚦浼氭綔鍦ㄥ奖鍝嶅钩鍙扮殑鎴愪氦閲忋€傛彁渚涢珮鏁堢巼锛岄珮璐ㄩ噺鐨勬湇鍔℃垚涓轰簾寰呰В鍐崇殑闂銆傝礋杞藉潎琛$瓥鐣ョ殑鍑虹幇鍜屽彂灞曟垚涓虹紦瑙d笂杩伴棶棰樼殑鏈夋晥閫斿緞銆傛湰鏂囧皢甯︿綘浜嗚В鍩轰簬 Nginx 瀹炵幇鐨勮礋杞藉潎琛°€?/p>
浠€涔堟槸璐熻浇鍧囪
璐熻浇鍧囪 锛圠oad Balance锛夛紝瀹冨湪缃戠粶鐜版湁缁撴瀯涔嬩笂鍙互鎻愪緵涓€绉嶅粔浠枫€佹湁鏁堛€侀€忔槑鐨勬柟娉曟潵鎵╁睍缃戠粶璁惧鍜屾湇鍔″櫒鐨勫甫瀹斤紝骞跺彲浠ュ湪涓€瀹氱▼搴︿笂澧炲姞鍚炲悙閲忋€佸姞寮虹綉缁滄暟鎹鐞嗚兘鍔涖€佹彁楂樼綉缁滅殑鐏垫椿鎬у拰鍙敤鎬х瓑銆傜敤瀹樼綉鐨勮瘽璇达紝瀹冨厖褰撶潃缃戠粶娴佷腑鈥滀氦閫氭寚鎸ュ畼鈥濈殑瑙掕壊锛屸€滅珯鍦ㄢ€濇湇鍔″櫒鍓嶅鐞嗘墍鏈夋湇鍔″櫒绔拰瀹㈡埛绔箣闂寸殑璇锋眰锛屼粠鑰屾渶澶х▼搴﹀湴鎻愰珮鍝嶅簲閫熺巼鍜屽閲忓埄鐢ㄧ巼锛屽悓鏃剁‘淇濅换浣曟湇鍔″櫒閮芥病鏈夎秴璐熻嵎宸ヤ綔銆傚鏋滃崟涓湇鍔″櫒鍑虹幇鏁呴殰锛岃礋杞藉潎琛$殑鏂规硶浼氬皢娴侀噺閲嶅畾鍚戝埌鍏朵綑鐨勯泦缇ゆ湇鍔″櫒锛屼互淇濊瘉鏈嶅姟鐨勭ǔ瀹氭€с€傚綋鏂扮殑鏈嶅姟鍣ㄦ坊鍔犲埌鏈嶅姟鍣ㄧ粍鍚庯紝涔熷彲閫氳繃璐熻浇鍧囪 鐨勬柟娉曚娇鍏跺紑濮嬭嚜鍔ㄥ鐞嗗鎴风鍙戞潵鐨勮姹傘€傝鎯呭彲鍙傝€冿細What Is Load Balancing? (https://www.Nginx.com/resources/glossary/load-balancing/)
绠€瑷€涔嬶紝璐熻浇鍧囪 瀹為檯涓婂氨鏄皢澶ч噺璇锋眰杩涜鍒嗗竷寮忓鐞嗙殑绛栫暐銆?/p>
浠€涔堟槸 Nginx 璐熻浇鍧囪
閫氳繃涓婃枃绠€鍗曠殑姒傚康浠嬬粛锛屼綘鍙兘瀵硅礋杞藉潎琛℃湁浜嗕竴涓垵姝ョ殑浜嗚В锛岀煡閬撳畠鏄竴绉嶈皟搴︾瓥鐣ャ€傞偅涔堥棶棰樻潵浜嗭紝Nginx 鍙堟槸浠€涔堝憿锛烴ginx 濡備綍瀹炵幇璐熻浇鍧囪 锛熻繖灏辫浠庢鍚戜唬鐞嗗拰鍙嶅悜浠g悊璇磋捣浜嗐€?/p>
-
姝e悜浠g悊
姝e悜浠g悊锛團orward Proxy锛夋渶澶х殑鐗圭偣鏄紝瀹㈡埛绔潪甯告槑纭璁块棶鐨勬湇鍔″櫒鍦板潃锛屽畠浠g悊瀹㈡埛绔紝鏇垮鎴风鍙戝嚭璇锋眰銆傛瘮濡傦細绉戝涓婄綉锛屼織绉扮炕澧欙紙璀﹀憡鈿狅笍锛氱炕澧欐搷浣滆繚鍙嶇浉鍏虫硶寰嬭瀹氾紝鏈枃鍙槸涓轰簡瑙i噴姝e悜浠g悊鍚戣鑰呬妇涓緥瀛愶紝浠呬緵瀛︿範鍙傝€冿紝鍒囧嬁鐩茬洰缈诲锛夈€? -
鍙嶅悜浠g悊
閭d箞锛岄殢鐫€璇锋眰閲忕殑鐖嗗彂寮忓闀匡紝鏈嶅姟鍣ㄨ寰楄嚜宸变竴涓汉濮嬬粓鏄簲浠樹笉杩囨潵锛岄渶瑕佸厔寮熸湇鍔″櫒浠府蹇欙紝浜庢槸瀹冨枈鏉ヤ簡鑷繁鐨勫厔寮熶互鍙婁唬鐞嗘湇鍔″櫒鏈嬪弸銆傛鏃讹紝鏉ヨ嚜涓嶅悓瀹㈡埛绔殑鎵€鏈夎姹傚疄闄呬笂閮藉彂鍒颁簡浠g悊鏈嶅姟鍣ㄥ锛屽啀鐢变唬鐞嗘湇鍔″櫒鎸夌収涓€瀹氱殑瑙勫垯灏嗚姹傚垎鍙戠粰鍚勪釜鏈嶅姟鍣ㄣ€?/p>
杩欏氨鏄弽鍚戜唬鐞嗭紙Reverse Proxy锛夛紝鍙嶅悜浠g悊闅愯棌浜嗘湇鍔″櫒鐨勪俊鎭紝瀹冧唬鐞嗙殑鏄湇鍔″櫒绔紝浠e叾鎺ユ敹璇锋眰銆傛崲鍙ヨ瘽璇达紝鍙嶅悜浠g悊鐨勮繃绋嬩腑锛屽鎴风骞朵笉鐭ラ亾鍏蜂綋鏄摢鍙版湇鍔″櫒澶勭悊浜嗚嚜宸辩殑璇锋眰銆傚姝や竴鏉ワ紝鏃㈡彁楂樹簡璁块棶閫熷害锛屽張涓哄畨鍏ㄦ€ф彁渚涗簡淇濊瘉銆?
鍦ㄨ繖涔嬩腑锛屽弽鍚戜唬鐞嗛渶瑕佽€冭檻鐨勯棶棰樻槸锛屽浣曡繘琛屽潎琛″垎宸ワ紝鎺у埗娴侀噺锛岄伩鍏嶅嚭鐜板眬閮ㄨ妭鐐硅礋杞借繃澶х殑闂銆?/span>閫氫織鐨勮锛屽氨鏄浣曚负姣忓彴鏈嶅姟鍣ㄥ悎鐞嗙殑鍒嗛厤璇锋眰锛屼娇鍏舵暣浣撳叿鏈夋洿楂樼殑宸ヤ綔鏁堢巼鍜岃祫婧愬埄鐢ㄧ巼銆?/span>
-
Nginx 鏄粈涔堬紵
Nginx 浣滀负涓€涓熀浜?C 瀹炵幇鐨勯珮鎬ц兘 Web 鏈嶅姟鍣紝鍙互閫氳繃绯诲垪绠楁硶瑙e喅涓婅堪鐨勮礋杞藉潎琛¢棶棰樸€傚苟涓旂敱浜庡畠鍏锋湁楂樺苟鍙戙€侀珮鍙潬鎬с€侀珮鎵╁睍鎬с€佸紑婧愮瓑鐗圭偣锛屾垚涓哄紑鍙戜汉鍛樺父鐢ㄧ殑鍙嶅悜浠g悊宸ュ叿銆?/p>
璐熻浇鍧囪 甯哥敤绠楁硶
1. 杞 锛坮ound-robin锛?/strong>
杞涓鸿礋杞藉潎琛′腑杈冧负鍩虹涔熻緝涓虹畝鍗曠殑绠楁硶锛屽畠涓嶉渶瑕侀厤缃澶栧弬鏁般€傚亣璁鹃厤缃枃浠朵腑鍏辨湁 鍙版湇鍔″櫒锛岃绠楁硶閬嶅巻鏈嶅姟鍣ㄨ妭鐐瑰垪琛紝骞舵寜鑺傜偣娆″簭姣忚疆閫夋嫨涓€鍙版湇鍔″櫒澶勭悊璇锋眰銆傚綋鎵€鏈夎妭鐐瑰潎琚皟鐢ㄨ繃涓€娆″悗锛岃绠楁硶灏嗕粠绗竴涓妭鐐瑰紑濮嬮噸鏂颁竴杞亶鍘嗐€?/p>
鐗圭偣锛氱敱浜庤绠楁硶涓瘡涓姹傛寜鏃堕棿椤哄簭閫愪竴鍒嗛厤鍒颁笉鍚岀殑鏈嶅姟鍣ㄥ鐞嗭紝鍥犳閫傜敤浜庢湇鍔″櫒鎬ц兘鐩歌繎鐨勯泦缇ゆ儏鍐碉紝鍏朵腑姣忎釜鏈嶅姟鍣ㄦ壙杞界浉鍚岀殑璐熻浇銆備絾瀵逛簬鏈嶅姟鍣ㄦ€ц兘涓嶅悓鐨勯泦缇よ€岃█锛岃绠楁硶瀹规槗寮曞彂璧勬簮鍒嗛厤涓嶅悎鐞嗙瓑闂銆?/p>
2銆佸姞鏉冭疆璇?/strong> 涓轰簡閬垮厤鏅€氳疆璇㈠甫鏉ョ殑寮婄锛屽姞鏉冭疆璇㈠簲杩愯€岀敓銆傚湪鍔犳潈杞涓紝姣忎釜鏈嶅姟鍣ㄤ細鏈夊悇鑷殑 鐗圭偣锛氬姞鏉冭疆璇㈠彲浠ュ簲鐢ㄤ簬鏈嶅姟鍣ㄦ€ц兘涓嶇瓑鐨勯泦缇や腑锛屼娇璧勬簮鍒嗛厤鏇村姞鍚堢悊鍖栥€?/p>
鐗圭偣锛氳绠楁硶鍦ㄤ竴瀹氱▼搴︿笂瑙e喅浜嗛泦缇ら儴缃茬幆澧冧笅 Session 涓嶅叡浜殑闂銆?/p>
Session 涓嶅叡浜棶棰樻槸璇达紝鍋囪鐢ㄦ埛宸茬粡鐧诲綍杩囷紝姝ゆ椂鍙戝嚭鐨勮姹傝鍒嗛厤鍒颁簡 A 鏈嶅姟鍣紝浣?A 鏈嶅姟鍣ㄧ獊鐒跺畷鏈猴紝鐢ㄦ埛鐨勮姹傚垯浼氳杞彂鍒?B 鏈嶅姟鍣ㄣ€備絾鐢变簬 Session 涓嶅叡浜紝B 鏃犳硶鐩存帴璇诲彇鐢ㄦ埛鐨勭櫥褰曚俊鎭潵缁х画鎵ц鍏朵粬鎿嶄綔銆?/p>
瀹為檯搴旂敤涓紝鎴戜滑鍙互鍒╃敤 4銆佸叾浠栫畻娉?/strong> URL hash 鏈€灏忚繛鎺ユ暟锛圠east Connections锛?/p>
鍋囪鍏辨湁
鍙版湇鍔″櫒锛屽綋鏈夋柊鐨勮姹傚嚭鐜版椂锛岄亶鍘嗘湇鍔″櫒鑺傜偣鍒楄〃骞堕€夊彇鍏朵腑杩炴帴鏁版渶灏忕殑涓€鍙版湇鍔″櫒鏉ュ搷搴斿綋鍓嶈姹傘€傝繛鎺ユ暟鍙互鐞嗚В涓哄綋鍓嶅鐞嗙殑璇锋眰鏁般€?/p>
璇翠簡杩欎箞澶氱悊璁猴紝绌剁珶鍩轰簬 Nginx 鐨勮礋杞藉潎琛¤鎬庝箞鐢ㄥ憿锛熸帴涓嬫潵锛屽皢浠ュ姞鏉冭疆璇㈢畻娉曚负渚嬶紝甯﹀ぇ瀹跺皾璇曢€氳繃鑷繁鐨勪竴鍙扮瑪璁版湰 + Nginx + Node 娴嬭瘯涓€涓嬭礋杞藉潎琛°€傜敱浜庢病鏈夊鍙版湇鍔″櫒锛屼簬鏄€氳繃鑷繁绗旇鏈殑澶氫釜涓嶅悓绔彛鏉ユā鎷熶笉鍚岀殑鏈嶅姟鍣ㄣ€?/p>
Step 1锛氱‘淇濊嚜宸辩殑鐢佃剳涓紝Nginx 宸插畨瑁呭苟鑳藉鎴愬姛鍚姩锛堜互 Mac 涓轰緥锛?/p>
濡傛灉浣犱篃閬囧埌浜嗗儚鎴戜竴鏍风敱浜庣鍙e崰鐢ㄥ鑷?Nginx 鍚姩澶辫触鐨勯棶棰橈紝鍙互灏濊瘯涓嬭堪姝ラ淇敼閰嶇疆鏂囦欢涓殑绔彛鍙?/p>
鐩稿叧鏂囦欢璺緞 server锛氫富鏈烘湇鍔$浉鍏宠缃紝涓昏鐢ㄤ簬鎸囧畾铏氭嫙涓绘満鍩熷悕銆両P 鍜岀鍙?/p>
location锛歎RL 鍖归厤鐗瑰畾浣嶇疆鍚庣殑璁剧疆锛屽弽鍚戜唬鐞嗚缃?/p>
upstream锛氳礋杞藉潎琛$浉鍏抽厤缃?/p>
鏆傚仠 Nginx 骞堕噸鍚?/p>
鎵撳紑 http://localhost:8086/ 娴嬭瘯鏄惁鎴愬姛锛屽鏋滄樉绀轰笅鍥撅紝鍒欒瘉鏄庡惎鍔ㄦ垚鍔燂綖 Step 2锛氬熀浜?Node + Express 妗嗘灦鏉ユ惌寤虹畝鍗曠殑鏈嶅姟鍣?/p>
Express 鏄竴涓畝娲佽€岀伒娲荤殑杞婚噺绾?node.js Web 搴旂敤妗嗘灦锛岃鎯呭彲浜嗚В Express (http://www.expressjs.com.cn/)锛屽鏋滅涓€娆′娇鐢紝璇峰厛瀹夎銆?/p>
瀹夎 Express Step 3锛氬湪 nginx.conf 鏂囦欢涓厤缃ソ闇€瑕佽疆璇㈢殑鏈嶅姟鍣ㄥ拰浠g悊 杞鐨勬湇鍔″櫒锛屽啓鍦?http 涓殑 upstream 瀵硅薄閲岋細 閲嶅惎 Nginx 鏈嶅姟 閫氳繃澶氭鍒锋柊鍙互鍙戠幇锛岀敱浜庤缃簡涓嶅悓鐨? Nginx 浣滀负涓€娆句紭绉€鐨勫弽鍚戜唬鐞嗘湇鍔″櫒锛屽彲浠ラ€氳繃涓嶅悓鐨勮礋杞藉潎琛$畻娉曟潵瑙e喅璇锋眰閲忚繃澶ф儏鍐典笅鐨勬湇鍔″櫒璧勬簮鍒嗛厤闂銆傝緝涓哄父瑙佺殑璐熻浇鍧囪 绠楁硶鏈夎疆璇€佸姞鏉冭疆璇€両P 鍝堝笇绛夌瓑锛屽彲鍒嗗埆搴斿涓嶅悓鐨勮姹傚満鏅€傚鏋滄湁鍏磋叮鍙互鍘?Github 鐞嗚В涓嬪ぇ绁炵殑婧愮爜锛屾湁闂涔熸杩庝竴璧锋潵鎺㈣锝?/p>
鍏充簬杞绛栫暐鍘熺悊鐨勮嚜鎴戠悊瑙?/strong> (https://blog.csdn.net/BlacksunAcheron/article/details/84439302) Nginx 鐩稿叧浠嬬粛(Nginx鏄粈涔?鑳藉共鍢?) (https://www.cnblogs.com/wcwnina/p/8728391.html)weight
銆備竴鑸儏鍐典笅锛?code class="mq-72">weight 鐨勫€艰秺澶ф剰鍛崇潃璇ユ湇鍔″櫒鐨勬€ц兘瓒婂ソ锛屽彲浠ユ壙杞芥洿澶氱殑璇锋眰銆傝绠楁硶涓紝瀹㈡埛绔殑璇锋眰鎸夋潈鍊兼瘮渚嬪垎閰嶏紝褰撲竴涓姹傚埌杈炬椂锛屼紭鍏堜负鍏跺垎閰嶆潈鍊兼渶澶х殑鏈嶅姟鍣ㄣ€?/p>
current_weight
涓庡叾瀵瑰簲鐨?
effective_weight
涔嬪拰锛屾瘡杞亶鍘嗕腑閫夊嚭鏉冨€兼渶澶х殑鑺傜偣浣滀负鏈€浼樻湇鍔″櫒鑺傜偣銆傚叾涓?
effective_weight
浼氬湪绠楁硶鐨勬墽琛岃繃绋嬩腑闅忚祫婧愭儏鍐靛拰鍝嶅簲鎯呭喌鑰屾敼鍙樸€傝緝涓烘牳蹇冪殑閮ㄥ垎濡備笅锛?
for (peer = rrp->peers->peer, i = 0;
peer; /* peer 涓哄綋鍓嶉亶鍘嗙殑鏈嶅姟鍣ㄧ粨鐐?/
peer = peer->next, i++)
{
...
/* 姣忚疆閬嶅巻浼氭洿鏂?peer 褰撳墠鐨勬潈鍊?/
peer->current_weight += peer->effective_weight;
...
/* best 涓哄綋鍓嶆湇鍔″櫒涓殑鏈€浼樿妭鐐癸紝鍗虫湰杞腑閫変腑鐨勬湇鍔″櫒鑺傜偣*/
if (best == NULL || peer->current_weight > best->current_weight) {
best = peer;
p = i;
}
...
}ip_hash
渚濇嵁鍙戝嚭璇锋眰鐨勫鎴风 IP 鐨?hash 鍊兼潵鍒嗛厤鏈嶅姟鍣紝璇ョ畻娉曞彲浠ヤ繚璇佸悓 IP 鍙戝嚭鐨勮姹傛槧灏勫埌鍚屼竴鏈嶅姟鍣紝鎴栬€呭叿鏈夌浉鍚?hash 鍊肩殑涓嶅悓 IP 鏄犲皠鍒板悓涓€鏈嶅姟鍣ㄣ€?/p>
鈥?/span>
ip_hash
锛屽皢涓€閮ㄥ垎 IP 涓嬬殑璇锋眰杞彂鍒拌繍琛屾柊鐗堟湰鏈嶅姟鐨勬湇鍔″櫒锛屽彟涓€閮ㄥ垎杞彂鍒版棫鐗堟湰鏈嶅姟鍣ㄤ笂锛屽疄鐜扮伆搴﹀彂甯冦€傚啀鑰咃紝濡傞亣鍒版枃浠惰繃澶у鑷磋姹傝秴鏃剁殑鎯呭喌锛屼篃鍙互鍒╃敤 ip_hash
杩涜鏂囦欢鐨勫垎鐗囦笂浼狅紝瀹冨彲浠ヤ繚璇佸悓瀹㈡埛绔彂鍑虹殑鏂囦欢鍒囩墖杞彂鍒板悓涓€鏈嶅姟鍣紝鍒╀簬鍏舵帴鏀跺垏鐗囦互鍙婂悗缁殑鏂囦欢鍚堝苟鎿嶄綔銆?/p>
url_hash
鏄牴鎹姹傜殑 URL 鐨?hash 鍊兼潵鍒嗛厤鏈嶅姟鍣ㄣ€傝绠楁硶鐨勭壒鐐规槸锛岀浉鍚?URL 鐨勮姹備細鍒嗛厤缁欏浐瀹氱殑鏈嶅姟鍣紝褰撳瓨鍦ㄧ紦瀛樼殑鏃跺€欙紝鏁堢巼涓€鑸緝楂樸€傜劧鑰?Nginx 榛樿涓嶆敮鎸佽繖绉嶈礋杞藉潎琛$畻娉曪紝闇€瑕佷緷璧栫涓夋柟搴撱€?/p>
搴旂敤鍦烘櫙
server {
# listen 8080;
listen 8086;
server_name localhost;
}
// 鏆傚仠 Nginx 鏈嶅姟
sudo nginx -s stop
// 鍚姩 Nginx 鏈嶅姟
nginx
npm i express
const express = require('express');
const app = express();
// 瀹氫箟瑕佺洃鍚殑绔彛鍙?/span>
const listenedPort = '8087';
app.get('/', (req, res) => res.send(`Hello World! I am port ${listenedPort}锝瀈));
// 鐩戝惉绔彛
app.listen(listenedPort, () => console.log(`success: ${listenedPort}`));
node index.js
send
涓嶅悓鐨勬枃妗堢敤浠ュ尯鍒嗕笉鍚岀殑 Server銆?
upstream testServer {
server localhost:8087 weight=10;
server localhost:8088 weight=2;
server localhost:8089;
}
location / {
root html;
index index.html index.htm;
proxy_pass http://testServer; // testServer 涓鸿嚜宸卞畾涔夌殑鏈嶅姟鍣ㄩ泦缇?br>}
weight
锛岀鍙e彿涓?8087 鐨勬湇鍔″櫒鍑虹幇鐨勬鏁版渶澶氾紝鍚屾椂璇佸疄浜嗘潈鍊艰秺楂橈紝鏈嶅姟鍣ㄥ鐞嗚姹傚嚑鐜囪秺澶х殑瑙勫垯銆?/p>
鎬荤粨
鍙傝€冩枃鐚?/span>
鐪嬪畬涓や欢浜?/span>
濡傛灉浣犺寰楄繖绡囧唴瀹瑰浣犳尯鏈夊惎鍙戯紝鎴戞兂閭€璇蜂綘甯垜涓や欢灏忎簨
1.鐐逛釜銆?span class="mq-234">鍦ㄧ湅銆嶏紝璁╂洿澶氫汉涔熻兘鐪嬪埌杩欑瘒鍐呭锛堝枩娆笉鐐瑰湪鐪嬬殑锛岄兘鏄€嶆祦姘擄級
鎷涜搐绾冲+
鏀块噰浜戝墠绔洟闃燂紙ZooTeam锛夛紝涓€涓勾杞诲瘜鏈夋縺鎯呭拰鍒涢€犲姏鐨勫墠绔洟闃燂紝闅跺睘浜庢斂閲囦簯浜у搧鐮斿彂閮紝Base 鍦ㄩ鏅鐢荤殑鏉窞銆傚洟闃熺幇鏈?50 浣欎釜鍓嶇灏忎紮浼达紝骞冲潎骞撮緞 27 宀侊紝杩?3 鎴愭槸鍏ㄦ爤宸ョ▼甯堬紝濡ュΕ鐨勯潚骞撮鏆村洟銆傛垚鍛樻瀯鎴愭棦鏈夋潵鑷簬闃块噷銆佺綉鏄撶殑鈥滆€佲€濆叺锛屼篃鏈夋禉澶с€佷腑绉戝ぇ銆佹澀鐢电瓑鏍$殑搴斿眾鏂颁汉銆傚洟闃熷湪鏃ュ父鐨勪笟鍔″鎺ヤ箣澶栵紝杩樺湪鐗╂枡浣撶郴銆佸伐绋嬪钩鍙般€佹惌寤哄钩鍙般€佹€ц兘浣撻獙銆佷簯绔簲鐢ㄣ€佹暟鎹垎鏋愬強鍙鍖栫瓑鏂瑰悜杩涜鎶€鏈帰绱㈠拰瀹炴垬锛屾帹鍔ㄥ苟钀藉湴浜嗕竴绯诲垪鐨勫唴閮ㄦ妧鏈骇鍝侊紝鎸佺画鎺㈢储鍓嶇鎶€鏈綋绯荤殑鏂拌竟鐣屻€?/p>
ZooTeam@cai-inc.com
以上是关于浜斿垎閽熺湅鎳?Nginx 璐熻浇鍧囪的主要内容,如果未能解决你的问题,请参考以下文章