锘??xml version="1.0" encoding="utf-8" standalone="yes"?>BlogJava-The NoteBook of EricKonghttp://www.8634070.com/jjshcc/zh-cnTue, 26 Mar 2019 20:16:47 GMTTue, 26 Mar 2019 20:16:47 GMT60linux鎶撳寘宸叿http://www.8634070.com/jjshcc/archive/2015/08/10/426702.htmlEric_jiangEric_jiangMon, 10 Aug 2015 00:51:00 GMThttp://www.8634070.com/jjshcc/archive/2015/08/10/426702.htmlhttp://www.8634070.com/jjshcc/comments/426702.htmlhttp://www.8634070.com/jjshcc/archive/2015/08/10/426702.html#Feedback0http://www.8634070.com/jjshcc/comments/commentRss/426702.htmlhttp://www.8634070.com/jjshcc/services/trackbacks/426702.html1.wireshark

wireshark瀹夎
銆#yum install wireshark wireshark-gnome
wireshark浣跨敤
   #wireshark

2.tcpdump

tcpdump閲囩敤鍛戒护琛屾柟寮忥紝瀹冪殑鍛戒护鏍?#23534;?#28051;猴細
    銆銆tcpdump [ -adeflnNOpqStvx ] [ -c 鏁?#38322;?] [ -F 鏂囦欢鍚?]
銆銆銆銆銆銆銆銆銆銆[ -i 缃戠粶鎺彛 ] [ -r 鏂囦欢鍚峕 [ -s snaplen ]
銆銆銆銆銆銆銆銆銆銆[ -T 绫诲瀷 ] [ -w 鏂囦欢鍚?] [琛揪寮?]

(1). tcpdump?#27537;閫夐浠嬬粛 
銆銆銆-a 銆銆銆灏?#32515;戠粶?#28276;鍧鍜屽箍鎾湴鍧杞彉鎴?#37722;?#28699;楋紱
銆銆銆-d 銆銆銆灏嗗尮閰嶄俊鎭寘?#27537;浠?#37934;?#28000;?#27996;?#28000;?#38003;藉鐞嗚?#27537;姹囩紪鏍?#23534;?#32513;?#37713;猴紱
銆銆銆-dd 銆銆 灏嗗尮閰嶄俊鎭寘?#27537;浠?#37934;?#28000;c璇言绋嬪簭娈电殑鏍?#23534;?#32513;?#37713;猴紱
銆銆銆-ddd 銆銆灏嗗尮閰嶄俊鎭寘?#27537;浠?#37934;?#28000;?#37719;佽繘鍒剁殑褰?#23534;?#32513;?#37713;猴紱
銆銆銆-e 銆銆銆鍦?#26440;撳嚭琛屾?#25779;嵃鍑?#37825;?#37817;摼璺眰?#27537;澶?#38318;俊鎭紱
銆銆銆-f 銆銆銆灏嗗閮殑Internet?#28276;鍧浠?#37825;?#28699;楃殑褰?#23534;?#37813;撳嵃鍑烘潵?#32049;
銆銆銆-l 銆銆銆浣?#37837;?#37713;嗚?#25779;嚭?#24393;涓?#32514;撳琛屽舰寮忥紱
銆銆銆-n 銆銆銆涓?#37814;?#32515;戠粶?#28276;鍧杞?#37817;?#37812;?#37722;?#28699;楋紱
銆銆銆-t 銆銆銆鍦?#26440;撳嚭?#27537;姣?#28051;琛?#28051;?#37813;撳嵃鏃堕棿鎴筹紱
銆銆銆-v 銆銆銆杈撳嚭涓涓?#32459;?#23536;?#29831;?#32513;嗙殑?#20426;鎭紝渚嬪鍦ip?#23512;涓?#37721;?#28000;寘?#23277;ttl鍜屾湇鍔?#32491;诲瀷?#27537;?#20426;鎭紱
銆銆銆-vv 銆銆 杈撳嚭璇?#32513;嗙殑鎶?#37826;囦俊鎭紱
銆銆銆-c 銆銆銆鍦敹鍒版寚瀹氱殑?#23512;?#27537;鏁扮洰鍚庯紝tcpdump灏变細鍋滄?#32049;
銆銆銆-F 銆銆銆浠庢寚瀹氱殑鏂囦欢涓?#29831;诲彇琛揪寮?蹇界暐鍏?#28729;冪殑琛揪寮忥紱
銆銆銆-i 銆銆銆?#23514;瀹氱洃鍚殑缃戠粶鎺彛?#32049;
銆銆銆-r 銆銆銆浠庢寚瀹氱殑鏂囦欢涓?#29831;诲?#26663;寘(杩?#27996;涘寘涓鑸?#38315;?#26473;?w閫夐浜敓)?#32049;
銆銆銆-w 銆銆銆鐩?#37818;?#28751;嗗寘鍐欏叆鏂囦欢涓紝骞?#28051;?#37714;嗘瀽鍜屾?#25779;嵃鍑烘潵?#32049;
銆銆銆-T 銆銆銆灏嗙洃鍚?#37714;扮殑?#23512;鐩?#37818;?#29785;?#38322;?#28051;烘寚瀹氱殑绫诲瀷?#27537;鎶?#37826;囷紝甯?#29785;佺殑绫诲瀷?#28225;rpc 锛?#26473;?#32459;?#26473;囩?#23341;?#20906;敤锛?#37724;宻nmp锛堢畝鍗?#32515;戠粶绠?#37918;嗗崗璁紱锛?/p>

Ethereal鍜孲niffit涓?#28051;?#32515;戠粶鍒嗘瀽宸叿


PS?#32048;tcpdump鏄?#28051;涓敤浜?#37812;?#37721;?#32515;戠粶鍒嗙?#21238;紝骞?#26440;撳嚭鍒嗙?#21227;唴瀹圭殑宸叿?#32029;?#30045;鍗?#29831;?#28751;?#37828;?#37825;?#37817;寘鎶撳寘宸叿銆倀cpdump鍑?#37706;?#23534;哄?#27537;鍔?#38003;?#37724;岀伒娲荤殑鎴?#37721;栫?#26667;暐?#32029;浣?#37711;?#37812;?#28051;?a style="border-bottom: rgb(0,102,0) 1px dashed; padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; color: rgb(0,102,0); text-decoration: none; padding-top: 0px" title="Linux" href="http://www.ha97.com/category/linux">Linux绯?#32513;?#28051;嬬敤浜?#32515;戠粶鍒嗘瀽鍜?#38338;?#26864;?#37818;掓煡?#27537;棣?#38315;?#23480;叿銆?/strong>

tcpdump鎻愪緵浜嗘簮浠?#37934;侊紝鍏?#23534;浜?#37818;彛?#32029;鍥犳?#21503;澶?#23536;?#23534;虹殑鍙?#37813;睍鎬紝瀵?#27996;?#32515;戠粶缁?#37814;?#37724;屽叆渚佃?#38318;?#37828;潪甯告湁?#25956;?#27537;宸叿銆倀cpdump瀛?#37734;?#27996;庡?#28888;湰?#27537;Linux绯?#32513;?#28051;紝鐢?#27996;?#28729;冮渶瑕?#28751;?#32515;戠粶鐣岄潰璁?#32515;?#28051;烘贩鏉傛寮忥?#23678;櫘閫氱敤鎴?#28051;?#38003;芥甯?#37813;?#29723;岋紝浣嗗叿澶?a style="border-bottom: rgb(0,102,0) 1px dashed; padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; color: rgb(0,102,0); text-decoration: none; padding-top: 0px" title="root" href="http://www.ha97.com/tag/root">root鏉冮檺?#27537;?#25956;鎴?#37721;?#28000;?#37929;?#37818;?#37813;?#29723;?#28729;冩潵?#24143;鍙?#32515;戠粶涓婄殑?#20426;鎭?#37510;傚?#29363;绯?#32513;?#28051;?#28699;?#37734;?#32515;戠粶鍒嗘瀽宸叿涓?#29781;?#28051;嶆槸瀵?#37832;?#37832;?#28729;?#37711;殑濞?#38003;侊紝鑰屾槸瀵?#32515;戠粶涓婄殑鍏?#28000;栬绠?#37832;虹殑瀹?#37711;?#28699;?#37734;?#28638;?#38003;?#37510;?/p>

涓銆佹杩?/strong>
椤?#37722;嶆濅箟?#32029;tcpdump鍙?#28000;?#28751;?#32515;戠粶涓?#28028;?#38315;佺殑鏁?#37817;寘?#27537;“澶?#8221;瀹屽叏鎴幏涓嬫潵鎻愪緵鍒嗘瀽銆?#28729;?#37824;?#37816;?#38333;堝缃戠粶?#30512;銆?#37719;?#29825;?#37510;?#28051;?#37832;?#37510;?#32515;戠粶鎴栫?#24411;?#27537;杩囨护?#32029;骞舵?#24874;緵and銆乷r銆乶ot绛夐?#26440;?#29831;?#37721;潵甯?#37716;?#28003;?#37720;?#37818;?#37827;犵敤?#27537;?#20426;鎭?#37510;?/p>


# tcpdump -vv
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
11:53:21.444591 IP (tos 0x10, ttl  64, id 19324, offset 0, flags [DF], proto 6, length: 92) asptest.localdomain.ssh > 192.168.228.244.1858: P 3962132600:3962132652(52) ack 2726525936 win 1266
asptest.localdomain.1077 > 192.168.228.153.domain: [bad udp cksum 166e!]  325+ PTR? 244.228.168.192.in-addr.arpa. (46)
11:53:21.446929 IP (tos 0x0, ttl  64, id 42911, offset 0, flags [DF], proto 17, length: 151) 192.168.228.153.domain > asptest.localdomain.1077:  325 NXDomain q: PTR? 244.228.168.192.in-addr.arpa. 0/1/0 ns: 168.192.in-addr.arpa. (123)
11:53:21.447408 IP (tos 0x10, ttl  64, id 19328, offset 0, flags [DF], proto 6, length: 172) asptest.localdomain.ssh > 192.168.228.244.1858: P 168:300(132) ack 1 win 1266
347 packets captured
1474 packets received by filter
745 packets dropped by kernel

涓?#29999;?#37721;?#37825;扮殑tcpdump?#32048;鏀堕泦缃戠粶涓?#37813;?#28225;?#27537;?#20426;鎭寘澶?#38171;屾暟鎹?#38322;?#23480;?#28598;紝蹇呴杩囨护銆?/p>

浜?#37510;?#38315;夐浠嬬粛

-A 浠ASCII鏍?#23534;?#37813;撳嵃鍑?#37813;?#28225;鍒嗙?#21238;紝骞?#28751;嗛摼璺眰?#27537;澶存渶灏?#37718;?#37510;?/p>

-c 鍦敹鍒版寚瀹氱殑鏁?#38322;忕殑鍒嗙粍鍚庯紝tcpdump灏变細鍋滄銆?/p>

-C 鍦?#28751;?#28051;涓?#37720;熷?#23338;?#21977;?#21227;?#27407;叆鏂囦欢涔嬪墠锛屾?#29025;鏂囦欢褰撳?#23943;殑澶?#28751;?#37828;?#37722;?#29906;?#26473;囦?#21975;弬鏁癴ile_size 涓寚瀹氱殑澶?#28751;?#37510;?#28641;?#37835;?#29906;?#26473;囦?#21976;寚瀹?#28598;?#28751;忥紝鍒欏叧闂?#35120;撳墠鏂囦欢?#32029;?#21159;鍚?#37734;?#37813;撳紑涓涓?#37826;扮殑鏂囦欢銆傚弬鏁?file_size ?#27537;鍗?#28003;嶆槸鍏?#28699;?#38010;?#38171;?#37828;?,000,000瀛?#38010;傦紝鑰?#28051;嶆槸1,048,576瀛?#38010;?#38171;?#37510;?/p>

-d 灏嗗尮閰嶄俊鎭寘?#27537;浠?#37934;?#28000;?#27996;?#28000;?#38003;藉鐞嗚?#27537;姹囩紪鏍?#23534;?#32513;?#37713;?#37510;?/p>

-dd 灏嗗尮閰嶄俊鎭寘?#27537;浠?#37934;?#28000;c璇言绋嬪簭娈电殑鏍?#23534;?#32513;?#37713;?#37510;?/p>

-ddd 灏嗗尮閰嶄俊鎭寘?#27537;浠?#37934;?#28000;?#37719;佽繘鍒剁殑褰?#23534;?#32513;?#37713;?#37510;?/p>

-D 鎵撳嵃鍑虹郴缁?#28051;?#37813;?#28225;鍙?#28000;敤tcpdump鎴寘?#27537;缃戠粶鎺彛銆?/p>

-e 鍦?#26440;撳嚭琛屾?#25779;嵃鍑?#37825;?#37817;摼璺眰?#27537;澶?#38318;俊鎭?#37510;?/p>

-E ?#25956;spi@ipaddr algo:secret瑙?#28725;?#38317;?#27996;?#28000;addr浣?#28051;哄湴鍧?#32029;骞?#28051;斿寘鍚?#27996;?#28729;?#37711;?#37721;?#37825;扮寮?#37706;約pi?#27537;IPsec ESP鍒嗙粍銆?/p>

-f 灏嗗閮殑Internet?#28276;鍧浠?#37825;?#28699;楃殑褰?#23534;?#37813;撳嵃鍑烘潵銆?/p>

-F 浠庢寚瀹氱殑鏂囦欢涓?#29831;诲彇琛揪寮忥紝蹇界暐鍛戒护琛?#28051;?#32513;?#37713;虹殑琛揪寮?#37510;?/p>

-i ?#23514;瀹氱洃鍚殑缃戠粶鎺彛銆?/p>

-l 浣?#37837;?#37713;嗚?#25779;嚭?#24393;涓?#32514;撳琛屽舰寮忥紝鍙?#28000;?#37814;?#37825;?#37817;?#28725;煎嚭鍒?#37826;囦欢銆?/p>

-L 鍒?#37713;?#32515;戠粶鎺彛?#27537;宸茬煡鏁?#37817;摼璺?#37510;?/p>

-m 浠?#37826;囦欢module涓?#28725;煎叆SMI MIB妯?#37735;?#28729;氫箟銆?#29831;?#37721;?#37825;板彲浠?#29722;?#28003;跨敤澶氭?#32029;浠?#28725;煎叆澶?#28051;狹IB妯?#37735;?#37510;?/p>

-M 濡?#37835;tcp鎶?#37826;?#28051;?#28699;?#37734;TCP-MD5閫夐?#30328;紝鍒欓渶瑕佺敤secret浣?#28051;哄叡浜殑?#29529;璇?#37934;佺敤浜庨獙璇乀CP-MD5閫夐夐?#35268;瑕?#38171;?#29831;?#37807;?#37721;?#37721;傝僐FC 2385锛?#37510;?/p>

-b 鍦?#37825;?#37817;??#25724;璺眰涓?#38315;夋嫨鍗?#29825;紝?#23512;?#23277;ip銆乤rp銆乺arp銆乮px閮?#37828;?#26473;?#28051;?#30512;?#27537;銆?/p>

-n 涓?#37814;?#32515;戠粶?#28276;鍧杞?#37817;?#37812;?#37722;?#28699;?#37510;?/p>

-nn 涓嶈繘琛岀?#24411;鍚嶇?#25198;殑杞?#37817;?#37510;?/p>

-N 涓?#26440;撳嚭涓?#37832;?#37722;?#28051;殑鍩?#37722;?#38318;?#37714;?#37510;?#28186;嬪?#20646;紝‘nic.ddn.mil‘鍙?#26440;撳嚭’nic‘銆?/p>

-t 鍦?#26440;撳嚭?#27537;姣?#28051;琛?#28051;?#37813;撳嵃鏃堕棿鎴?#37510;?/p>

-O 涓?#26473;?#29723;屽?#21977;粍鍒嗙?#21227;尮閰?#38171;packet-matching锛?#28000;?#37934;佷紭鍖?#32459;嬪簭銆?/p>

-P 涓?#28751;?#32515;戠粶鎺彛璁?#32515;?#37812;愭贩鏉傛寮?#37510;?/p>

-q 蹇?#38315;?#26440;撳嚭銆傚彧杈撳嚭杈?#28751;戠殑鍗?#29825;俊鎭?#37510;?/p>

-r 浠庢寚瀹氱殑鏂囦欢涓?#29831;诲?#26663;寘(杩?#27996;涘寘涓鑸?#38315;?#26473;?w閫夐浜敓)銆?/p>

-S 灏唗cp?#27537;?#31789;鍒?#37721;?#28000;?#32513;?#28725;?#37706;煎舰寮?#26440;撳?#29492;紝鑰?#28051;嶆槸鐩?#28725;?#37706;?#37510;?/p>

-s 浠?#23011;?#28051;?#37714;嗙粍涓?#29831;诲?#26664;渶寮濮嬬殑snaplen涓?#28699;?#38010;傦紝鑰?#28051;嶆槸?#31919;璁殑68涓?#28699;?#38010;?#37510;?/p>

-T 灏嗙洃鍚?#37714;扮殑?#23512;鐩?#37818;?#29785;?#38322;?#28051;烘寚瀹氱殑绫诲瀷?#27537;鎶?#37826;囷紝甯?#29785;佺殑绫诲瀷?#28225;rpc杩?#32459;?#26473;囩?#23341;?#20906;敤锛?#37724;宻nmp锛堢畝鍗?#32515;戠粶绠?#37918;嗗崗璁紱锛?#37510;?/p>

-t 涓?#37734;?#23011;?#28051;琛?#28051;?#26440;撳嚭鏃堕棿鎴?#37510;?/p>

-tt 鍦?#23011;?#28051;琛?#28051;?#26440;撳嚭?#28522;鏍?#23534;?#37718;栫殑鏃堕棿鎴?#37510;?/p>

-ttt 杈撳嚭鏈?#29723;?#37724;屽墠?#28528;涓琛屼箣?#26879;?#27537;鏃堕棿宸?#37510;?/p>

-tttt 鍦?#23011;?#28051;琛?#28051;?#26440;撳嚭鐢眃ate澶?#37918;嗙殑?#31919;璁?#37837;?#23534;忕殑鏃堕棿鎴?#37510;?/p>

-u 杈撳嚭鏈?#29785;?#37934;佺殑NFS鍙?#37836;?#37510;?/p>

-v 杈撳嚭涓涓?#32459;?#23536;?#29831;?#32513;嗙殑?#20426;鎭紝渚嬪鍦ip?#23512;涓?#37721;?#28000;寘?#23277;ttl鍜屾湇鍔?#32491;诲瀷?#27537;?#20426;鎭?#37510;?/p>

-vv 杈撳嚭璇?#32513;嗙殑鎶?#37826;囦俊鎭?#37510;?/p>

-w 鐩?#37818;?#28751;嗗?#21977;?#21227;?#27407;叆鏂囦欢涓紝鑰?#28051;嶆槸涓?#37714;嗘?#24876;苟鎵撳嵃鍑烘潵銆?/p>

涓?#37510;乼cpdump?#27537;琛揪寮?#28000;嬬粛

琛揪寮?#37828;?#28051;涓?#23005;?#37714;?#29723;揪寮忥紝tcpdump鍒敤瀹?#28003;?#28051;鸿繃?#25252;鎶?#37826;囩殑鏉欢?#32029;濡?#37835;?#28051;涓?#37814;?#37826;?#23114;?#29906;?#29723;??#25578;寮忕殑鏉欢?#32029;鍒?#26473;?#28051;?#37814;?#37826;?#28751;嗕細琚?#37817;曡幏銆?#28641;?#37835;滄病?#28225;缁?#37713;?#28000;?#28003;?#37833;欢?#32029;鍒?#32515;戠粶涓?#37813;?#28225;?#27537;?#20426;鎭寘 灏嗕細琚?#37812;幏銆?/p>

鍦?#29723;揪寮?#28051;?#28051;鑸?#28641;?#28051;?#37713;犵绫诲瀷?#27537;鍏抽敭瀛楋細

绗?#28051;绉?/strong>鏄?#37711;?#27996;?#32491;诲瀷?#27537;鍏抽敭瀛楋紝涓?#29781;佸寘?#23277;host?#32029;net?#32029;port?#32029;渚嬪 host 210.27.48.2?#32029; ?#23514;鏄?210.27.48.2鏄?#28051;鍙?#28051;?#37832;猴紝net 202.0.0.0?#23514;鏄?02.0.0.0鏄?#28051;涓?#32515;戠粶?#28276;鍧?#32029;port 23 ?#23514;鏄庣?#24411;鍙?#37828;?3銆?#28641;?#37835;滄病?#28225;?#23514;瀹?#32491;诲瀷?#32029;缂虹?#20346;殑绫诲瀷鏄host銆?/p>

绗?#27996;岀鏄?#32429;?#28729;?#28028;犺緭?#26591;鍚戠殑鍏抽敭瀛楋紝涓?#29781;佸寘?#23277;src?#32029;dst?#32029;dst or src?#32029;dst and src?#32029; 杩?#27996;?#37711;抽敭瀛楁寚鏄?#27996;?#28028;犺緭?#27537;?#26591;鍚?#37510;?#28051;句緥璇存?#24239;紝src 210.27.48.2 锛屾寚鏄巌p?#23512;涓?#23143;愬湴鍧鏄?210.27.48.2 ?#32029; dst net 202.0.0.0 ?#23514;鏄庣洰?#27537;缃戠粶?#28276;鍧鏄?02.0.0.0銆?#28641;?#37835;滄病?#28225;?#23514;鏄??#26591;鍚?#37711;抽敭瀛楋紝鍒?#32514;虹渷鏄src or dst鍏抽敭瀛?#37510;?/p>

绗?#28051;夌鏄?#37719;?#29825;殑鍏抽敭瀛楋紝涓?#29781;佸寘?#23277;fddi?#32029;ip?#32029;arp?#32029;rarp?#32029;tcp?#32029;udp绛?#32491;诲瀷銆侳ddi?#23514;鏄庢槸鍦FDDI (鍒嗗竷寮?#37711;夌氦鏁?#37817;?#37818;彛缃戠粶)涓婄殑鐗?#28729;氱殑缃戠粶鍗?#29825;紝瀹為檯涓?#28729;?#37828;?#8221;ether”?#27537;鍒?#37722;嶏紝fddi鍜宔ther ?#21503;?#28225;绫?#28028;殑婧愬湴鍧鍜岀洰?#27537;?#28276;鍧锛屾墍浠?#37721;?#28000;?#28751;fddi鍗?#29825;寘褰?#28003;渆ther?#27537;?#23512;?#32344;琛屽鐞?#37724;屽?#21976;瀽銆?鍏?#28000;栫殑鍑?#28051;?#37711;抽敭瀛?#28751;?#37828;寚鏄?#27996;嗙洃鍚殑?#23512;?#27537;鍗?#29825;?#37712;?#28729;?#37510;?#28641;?#37835;滄病?#28225;?#23514;瀹?#28000;?#28003;?#37719;?#29825;紝鍒檛cpdump 灏嗕細 鐩?#37722;?#37813;?#28225;鍗?#29825;殑?#20426;鎭寘銆?/p>

闄?#27996;嗚繖涓夌绫诲瀷?#27537;鍏抽敭瀛椾?#23338;?#26677;紝鍏?#28000;?#38322;?#29781;佺殑鍏抽敭瀛?#28641;?#28051;嬶細gateway?#32029; broadcast?#32029;less?#32029; greater?#32029; 杩樻湁涓夌閫?#26440;?#26473;?#32480;楋紝鍙栭潪杩?#32480;?#37828;?‘not ‘ ‘! ‘?#32029; 涓?#26473;?#32480;?#37828;?#8217;and’?#32029;’&&’;鎴栬繍绠?#37828;?#8217;or’ ?#32029;’||’?#32049; 杩?#27996;?#37711;抽敭瀛?#37721;?#28000;?#32513;?#37722;堣?#38155;潵鏋?#37812;?#23534;哄?#27537;缁?#37722;?#37833;欢?#28533;婊?#29906;?#27996;?#28000;殑?#28214;瑕?#37510;?/p>

鍥?#37510;佽?#25779;嚭缁?#37835;?#28000;嬬粛

涓嬮潰鎴?#28000;?#28000;嬬粛鍑犵鍏稿瀷?#27537;tcpdump鍛戒护?#27537;杈撳?#36720;俊鎭?/p>

(1) 鏁?#37817;摼璺眰澶翠俊鎭?/strong>
浣跨敤鍛戒护?#32048;
#tcpdump --e host ICE
ICE 鏄?#28051;鍙拌?#21614;湁linux?#27537;涓?#37832;?#37510;?#28729;冪殑MAC?#28276;鍧鏄??#32048;90?#32048;27?#32048;58?#32048;AF?#32048;1A H219鏄?#28051;鍙拌?#21614;湁Solaris?#27537;SUN宸?#28003;滅珯銆?#28729;冪殑MAC?#28276;鍧鏄??#32048;0?#32048;20?#32048;79?#32048;5B?#32048;46?#32049; 涓?#28051;鏉?#37723;戒护?#27537;杈撳嚭缁?#37835;滃涓?#37813;绀猴細

21:50:12.847509 eth0 < 8:0:20:79:5b:46 0:90:27:58:af:1a ip 60: h219.33357 > ICE.  telne t 0:0(0) ack 22535 win 8760 (DF)

21?#32048;50?#32048;12鏄?#37828;剧?#34425;殑鏃堕棿?#32029; 847509鏄疘D鍙凤紝eth0 <琛?#32448;?#28000;?#32515;戠粶鎺彛eth0鎺敹璇?#37714;嗙?#21238;紝 eth0 >琛?#32448;?#28000;?#32515;戠粶鎺彛璁惧鍙?#38315;?#37714;嗙?#21238;紝 8:0:20:79:5b:46鏄?#28051;?#37832;篐219?#27537;MAC?#28276;鍧?#32029; 瀹?#29723;?#37828;庢槸浠庢?#24876;湴鍧H219鍙戞潵?#27537;鍒嗙粍. 0:90:27:58:af:1a鏄?#28051;?#37832;篒CE?#27537;MAC?#28276;鍧?#32029; 琛?#32448;?#29831;?#37714;嗙?#21229;殑?#27952;?#27537;?#28276;鍧鏄疘CE銆?ip 鏄?#29723;?#37828;?#29831;?#37714;嗙?#21228;槸IP鍒嗙?#21238;紝60 鏄?#37714;嗙?#21229;殑闀?#25652;紝 h219.33357 > ICE. telnet 琛?#37828;?#29831;?#37714;嗙?#21228;槸浠?#28051;?#37832;篐219?#27537;33357绔彛鍙?#23536;涓?#37832;篒CE?#27537; TELNET(23)绔彛銆?ack 22535 琛?#37828;?#28725;瑰簭鍒?#37721;?#37828;?22535?#27537;?#23512;?#32344;琛屽?#23941;簲銆?win 8760琛?#37828;?#37721;?閫佺?#26944;彛?#27537;澶?#28751;?#37828;?760銆?/p>

(2) ARP?#23512;?#27537;tcpdump杈撳?#36720;俊鎭?/strong>

浣跨敤鍛戒护?#32048;
#tcpdump arp

寰?#37714;扮殑杈撳嚭缁?#37835;滄槸?#32048;

22:32:42.802509 eth0 > arp who-has route tell ICE (0:90:27:58:af:1a)
22:32:42.802902 eth0 < arp reply route is-at 0:90:27:12:10:66 (0:90:27:58:af:1a)

22:32:42鏄?#37827;堕棿鎴筹紝 802509鏄疘D鍙凤紝 eth0 >琛?#37828;?#28000;?#28051;?#37832;哄彂鍑?#29831;?#37714;嗙?#21238;紝arp琛?#37828;庢槸ARP璇锋眰?#23512;?#32029; who-has route tell ICE琛?#37828;庢槸涓?#37832;篒CE璇锋眰涓?#37832;簉oute?#27537;MAC?#28276;鍧銆?0:90:27:58:af:1a鏄?#28051;?#37832;?ICE?#27537;MAC?#28276;鍧銆?/p>

(3) TCP?#23512;?#27537;杈撳?#36720;俊鎭?/strong>

?#25956;tcpdump鎹曡幏?#27537;TCP?#23512;?#27537;涓鑸?#26440;撳?#36720;俊鎭?#37828;細

src > dst: flags data-seqno ack window urgent options

src > dst:琛?#37828;?#28000;庢?#24876;湴鍧鍒扮洰?#27537;?#28276;鍧?#32029; flags鏄疶CP鎶?#37826;?#28051;殑鏍?#36423;椾俊鎭紝S 鏄疭YN鏍?#36423;楋紝 F (FIN)?#32029; P (PUSH) ?#32029; R (RST) “.” (?#30149;?#28225;鏍?#29825;?; data-seqno鏄?#37814;?#37826;?#28051;殑鏁?#37817;??#27537;椤哄簭鍙凤紝 ack鏄?#28051;嬫鏈?#37832;涚殑椤哄簭鍙凤紝 window鏄?#37818;敹缂撳瓨?#27537;绐楀彛澶?#28751;忥紝 urgent琛?#37828;?鎶?#37826;?#28051;?#37828;?#37722;湁绱?#37804;寚閽?#37510;?Options鏄?#38315;夐銆?/p>

(4) UDP?#23512;?#27537;杈撳?#36720;俊鎭?/strong>

?#25956;tcpdump鎹曡幏?#27537;UDP?#23512;?#27537;涓鑸?#26440;撳?#36720;俊鎭?#37828;細

route.port1 > ICE.port2: udp lenth

UDP鍗?#37714;嗙畝鍗曪紝涓婇潰?#27537;杈撳嚭琛?#29723;?#37828;?#28000;?#28051;?#37832;簉oute?#27537;port1绔彛鍙?#37713;虹殑涓涓猆DP鎶?#37826;?鍒?#28051;?#37832;篒CE?#27537;port2绔彛?#32029;绫诲瀷鏄UDP?#32029; ?#23512;?#27537;闀?#25652;?#37828;痩enth銆?/p>

浜?#37510;?#28051;句緥

(1) 鎯?#29781;?#37812;幏鎵?#28225;210.27.48.1 ?#27537;涓?#37832;烘敹鍒扮殑鍜屽彂鍑虹殑鎵?#28225;?#27537;鍒嗙?#21238;細
#tcpdump host 210.27.48.1

(2) 鎯?#29781;?#37812;幏涓?#37832;?10.27.48.1 鍜?#28051;?#37832;?10.27.48.2鎴?10.27.48.3?#27537;閫氫俊?#32029;浣跨敤鍛戒护锛?#23049;?#37808;忥細?#23277;鍙峰?#23943;殑鍙?#37826;滄潬鏄?#36423;呴?#33636;殑锛夛細
#tcpdump host 210.27.48.1 and (210.27.48.2 or 210.27.48.3 )

(3) 濡?#37835;滄兂瑕佽幏鍙?#28051;?#37832;?10.27.48.1闄?#27996;?#37724;?#28051;?#37832;?10.27.48.2涔嬪?#26664;墍?#28225;涓?#37832;?#38315;氫俊?#27537;ip?#23512;?#32029;浣跨敤鍛戒护?#32048;
#tcpdump ip host 210.27.48.1 and ! 210.27.48.2

(4) 濡?#37835;滄兂瑕佽幏鍙?#28051;?#37832;?92.168.228.246鎺敹鎴?#37721;?#37713;虹殑ssh?#23512;?#32029;骞?#28051;?#28051;?#26462;?#37817;?#28051;?#37832;?#37722;?#28003;跨敤濡?#28051;?#37723;戒护?#32048;
#tcpdump -nn -n src host 192.168.228.246 and port 22 and tcp

(5) ?#24143;鍙?#28051;?#37832;?92.168.228.246鎺敹鎴?#37721;?#37713;虹殑ssh?#23512;?#32029;骞?#37814;mac?#28276;鍧涔?#28051;鍚屾?#21095;?#29492;細
# tcpdump -e src host 192.168.228.246 and port 22 and tcp -n -nn

(6) 杩囨护?#27537;鏄簮涓?#37832;?#28051;?92.168.0.1涓庣洰?#27537;缃戠粶涓?92.168.0.0?#27537;鎶?#28598;达細
tcpdump src host 192.168.0.1 and dst net 192.168.0.0/24

(7) 杩囨护?#31790;涓?#37832;虹墿鐞嗗湴鍧涓篨XX?#27537;鎶?#28598;达細
tcpdump ether src 00:50:04:BA:9B and dst……
锛?#28051;?#28000;涔坋ther src鍚庨潰?#30149;?#28225;host鎴栬卬et锛?#37911;?#37918;嗗湴鍧褰撶劧涓?#37721;?#38003;芥湁缃戠粶鍠?#38171;?#37510;?/p>

(8) 杩囨护?#31790;涓?#37832;?92.168.0.1鍜岀洰?#27537;绔彛涓嶆槸telnet?#27537;鎶?#28598;达紝骞跺?#29006;叆鍒皌es.t.txt鏂囦欢涓細
Tcpdump src host 192.168.0.1 and dst port not telnet -l > test.txt

ip icmp arp rarp 鍜?tcp銆乽dp銆乮cmp杩?#27996;?#38315;夐?#22317;?#22800;兘瑕佹斁鍒扮涓涓?#37721;?#37825;扮殑浣?#32515;紝?#25956;?#28533;杩囨护鏁?#37817;?#37814;殑绫诲瀷銆?/strong>

?#32229;棰橈細濡?#28003;?#28003;跨敤tcpdump鐩?#37722;潵?#22172;eth0閫?#38320;?#37719;?#28051;?#38315;氫俊鍗?#29825;?#28051;簆ort 22?#32029;?#27952;鏍囨潵?#31790;涓?92.168.1.100?#27537;鏁?#37817;寘璧?#37826;?#38171;?/strong>

绛旓細tcpdump -i eth0 -nn port 22 and src host 192.168.1.100

?#32229;棰橈細濡?#28003;?#28003;跨敤tcpdump鎶撳?#26668;闂eth0閫?#38320;?#37719;?#28051;?#29825;?#38338;?#32468;彛涓簍cp 9080锛?/strong>

绛?tcpdump -i eth0 dst 172.168.70.35 and tcp port 9080

?#32229;棰橈細濡?#28003;?#28003;跨敤tcpdump鎶撳彇涓?#28051;?#37832;?92.168.43.23鎴栫潃涓?#28051;?#37832;?92.168.43.24閫氫俊鎶?#37826;囷紝骞?#28051;?#37828;剧鍦?#37818;?#37714;?#37721;?#28051;?/strong>

tcpdump -X -s 1024 -i eth0 host (192.168.43.23 or 192.168.43.24) and  host 172.16.70.35



]]>
Linux iostat鐩戞祴IO鐘舵?/title><link>http://www.8634070.com/jjshcc/archive/2015/07/29/426481.html</link><dc:creator>Eric_jiang</dc:creator><author>Eric_jiang</author><pubDate>Wed, 29 Jul 2015 02:54:00 GMT</pubDate><guid>http://www.8634070.com/jjshcc/archive/2015/07/29/426481.html</guid><wfw:comment>http://www.8634070.com/jjshcc/comments/426481.html</wfw:comment><comments>http://www.8634070.com/jjshcc/archive/2015/07/29/426481.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.8634070.com/jjshcc/comments/commentRss/426481.html</wfw:commentRss><trackback:ping>http://www.8634070.com/jjshcc/services/trackbacks/426481.html</trackback:ping><description><![CDATA[<p style="text-align: justify; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 28px; margin: 0px 0px 12px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, Helvetica, sans-serif; white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">Linux绯?#32513;?#37713;虹幇浜嗘?#38003;?#38338;?#26864;橈紝涓鑸?#37812;?#28000;?#37721;?#28000;?#38315;?#26473;噒op銆乮ostat銆乫ree銆乿mstat绛?#37723;戒护?#28533;?#29025;鐪嬪姝?#28729;?#28003;?#38338;?#26864;?#37510;傚叾涓璱ostat鍙?#28000;?#32513;?#37812;?#28000;?#37819;愪緵涓板?#23680;殑IO鐘舵?#37825;?#37817;?#37510;?/p> <p style="text-align: justify; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 28px; margin: 0px 0px 12px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, Helvetica, sans-serif; white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><font style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: Arial, Helvetica, sans-serif; padding-top: 0px" color="red">1. 鍩烘湰浣跨敤</font></p><pre style="padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, Helvetica, sans-serif; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><div style="border-left: rgb(22,100,217) 6px solid; padding-bottom: 10px; background-color: rgb(34,34,34); margin: 0px 0px 12px; padding-left: 10px; width: 724px; padding-right: 10px; display: block; font: 1em Fixedsys, 'Courier New', Courier, monospace; color: rgb(0,204,0); overflow: scroll; padding-top: 10px" class="mycode">$iostat -d -k 1 10</div></pre> <p style="text-align: justify; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 28px; margin: 0px 0px 12px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, Helvetica, sans-serif; white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">鍙?#37825;?-d 琛?#32448;猴?#23678;?#21095;?#40511;?#24807;锛堢鐩?#38171;?#28003;跨敤鐘舵侊紱-k鏌?#27996;?#28003;跨敤block涓?#37719;?#28003;嶇殑鍒?#23534;?#37714;?#28003;跨敤Kilobytes涓?#37719;?#28003;嶏紱1 10琛?#32448;猴?#23678;暟鎹?#37828;剧?#28888;瘡闅?绉?#37714;?#37826;?#28051;娆紝鍏?#37828;剧10娆?#37510;?span style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: Arial, Helvetica, sans-serif; padding-top: 0px" id="more-1228"></span></p><pre style="padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, Helvetica, sans-serif; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><div style="border-left: rgb(22,100,217) 6px solid; padding-bottom: 10px; background-color: rgb(34,34,34); margin: 0px 0px 12px; padding-left: 10px; width: 724px; padding-right: 10px; display: block; font: 1em Fixedsys, 'Courier New', Courier, monospace; color: rgb(0,204,0); overflow: scroll; padding-top: 10px" class="mycode">$iostat -d -k 1 10 Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn sda 39.29 21.14 1.44 441339807 29990031 sda1 0.00 0.00 0.00 1623 523 sda2 1.32 1.43 4.54 29834273 94827104 sda3 6.30 0.85 24.95 17816289 520725244 sda5 0.85 0.46 3.40 9543503 70970116 sda6 0.00 0.00 0.00 550 236 sda7 0.00 0.00 0.00 406 0 sda8 0.00 0.00 0.00 406 0 sda9 0.00 0.00 0.00 406 0 sda10 60.68 18.35 71.43 383002263 1490928140 Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn sda 327.55 5159.18 102.04 5056 100 sda1 0.00 0.00 0.00 0 0 </div></pre> <p style="text-align: justify; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 28px; margin: 0px 0px 12px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, Helvetica, sans-serif; white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><font style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: Arial, Helvetica, sans-serif; padding-top: 0px" color="blue">tps</font>?#32048;璇?#29825;惧姣忕?#25492;殑浼犺緭娆?#37825;?#38171;Indicate the number of transfers per second that were issued to the device.锛?#37510;?#8220;涓娆?#28028;犺緭”?#21104;鎬?#37828;?#8220;涓娆I/O璇锋眰”銆傚涓?#38315;?#26440;?#29831;锋眰鍙?#38003;戒細琚?#37722;?#39582;?#28051;?#8220;涓娆I/O璇锋眰”銆?#8220;涓娆?#28028;犺緭”璇锋眰?#27537;澶?#28751;?#37828;?#37832;煡?#27537;銆?/p> <p style="text-align: justify; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 28px; margin: 0px 0px 12px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, Helvetica, sans-serif; white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><font style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: Arial, Helvetica, sans-serif; padding-top: 0px" color="blue">kB_read/s</font>?#32048;姣忕浠?#29825;惧锛坉rive expressed锛夎?#35826;?#26667;殑鏁?#37817;?#38322;忥紱<font style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: Arial, Helvetica, sans-serif; padding-top: 0px" color="blue">kB_wrtn/s</font>?#32048;姣忕鍚?#29825;惧锛坉rive expressed锛?#37712;欏叆?#27537;鏁?#37817;?#38322;忥紱<font style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: Arial, Helvetica, sans-serif; padding-top: 0px" color="blue">kB_read</font>?#32048;璇诲?#26667;殑鎬?#37825;?#37817;?#38322;忥紱<font style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: Arial, Helvetica, sans-serif; padding-top: 0px" color="blue">kB_wrtn</font>?#32048;鍐欏叆?#27537;鎬?#37825;?#38322;?#37825;?#37817;?#38322;忥紱杩?#27996;?#37719;?#28003;?#38318;戒负Kilobytes銆?/p> <p style="text-align: justify; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 28px; margin: 0px 0px 12px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, Helvetica, sans-serif; white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">涓婇潰?#27537;?#32229;瀛?#28051;?#38171;屾垜浠?#37721;?#28000;?#37930;嬪?#25198;鐩榮da浠?#37721;?#28729;冪殑鍚?#28051;?#37714;嗗?#34425;殑缁?#29825;?#37825;?#37817;紝褰?#37827;?#32513;?#29825;殑纾?#37929;?#37804;籘PS鏄?9.29?#32029;涓嬮潰鏄?#37722;?#28051;?#37714;嗗?#34425;殑TPS銆?#38171;?#37733;?#28051;烘槸?#28763;?#26879;鍊?#38171;屾墍浠?#37804;籘PS骞?#28051;?#28051;?#37837;?#32475;?#27996;?#37722;?#28051;?#37714;嗗尯TPS?#27537;鎬诲拰锛?/p> <p style="text-align: justify; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 28px; margin: 0px 0px 12px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, Helvetica, sans-serif; white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><font style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: Arial, Helvetica, sans-serif; padding-top: 0px" color="red">2. -x 鍙?#37825;?/font></p> <p style="text-align: justify; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 28px; margin: 0px 0px 12px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, Helvetica, sans-serif; white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">浣跨敤-x鍙?#37825;?#37812;?#28000;?#37721;?#28000;幏寰楁洿澶?#32513;?#29825;俊鎭?#37510;?/p><pre style="padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, Helvetica, sans-serif; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><div style="border-left: rgb(22,100,217) 6px solid; padding-bottom: 10px; background-color: rgb(34,34,34); margin: 0px 0px 12px; padding-left: 10px; width: 724px; padding-right: 10px; display: block; font: 1em Fixedsys, 'Courier New', Courier, monospace; color: rgb(0,204,0); overflow: scroll; padding-top: 10px" class="mycode">iostat -d -x -k 1 10 Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s rkB/s wkB/s avgrq-sz avgqu-sz await svctm %util sda 1.56 28.31 7.80 31.49 42.51 2.92 21.26 1.46 1.16 0.03 0.79 2.62 10.28 Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s rkB/s wkB/s avgrq-sz avgqu-sz await svctm %util sda 2.00 20.00 381.00 7.00 12320.00 216.00 6160.00 108.00 32.31 1.75 4.50 2.17 84.20 </div></pre> <p style="text-align: justify; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 28px; margin: 0px 0px 12px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, Helvetica, sans-serif; white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><font style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: Arial, Helvetica, sans-serif; padding-top: 0px" color="blue">rrqm/s</font>?#32048;姣忕杩?#28051;?#29825;惧?#22249;浉鍏崇殑璇诲彇璇锋眰?#28225;澶?#28751;?#29722;Merge浜?#38171;?#35120;?#32495;?#32513;熻?#20906;敤?#28214;瑕?#29831;诲彇鏁?#37817;殑鏃跺欙紝VFS灏嗚?#38155;眰鍙?#37714;?#37722;?#28051;狥S?#32029;濡?#37835;淔S鍙戠幇涓?#37722;岀殑璇诲彇璇锋眰璇诲?#26667;殑鏄?#37929;?#37722;孊lock?#27537;鏁?#37817;紝FS?#32048;灏嗚繖涓?#29831;锋眰鍚?#39582;Merge锛夛紱wrqm/s?#32048;姣忕杩?#28051;?#29825;惧?#22249;浉鍏崇殑鍐欏叆璇锋眰?#28225;澶?#28751;?#29722;Merge浜?#37510;?/p> <p style="text-align: justify; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 28px; margin: 0px 0px 12px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, Helvetica, sans-serif; white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><font style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: Arial, Helvetica, sans-serif; padding-top: 0px" color="blue">rsec/s</font>?#32048;姣忕璇诲?#26667;殑鎵?#37718;?#37825;帮紱<font style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: Arial, Helvetica, sans-serif; padding-top: 0px" color="blue">wsec/</font>?#32048;姣忕鍐欏叆?#27537;鎵?#37718;?#37825;?#37510;?font style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: Arial, Helvetica, sans-serif; padding-top: 0px" color="blue">r/s</font>?#32048;The number of read requests that were issued to the device per second?#32049;<font style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: Arial, Helvetica, sans-serif; padding-top: 0px" color="blue">w/s</font>?#32048;The number of write requests that were issued to the device per second?#32049;</p> <p style="text-align: justify; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 28px; margin: 0px 0px 12px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, Helvetica, sans-serif; white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><font style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: Arial, Helvetica, sans-serif; padding-top: 0px" color="blue">await</font>?#32048;姣?#28051;涓狪O璇锋眰?#27537;澶?#37918;嗙殑骞?#37735;?#37827;堕棿锛?#37719;?#28003;嶆槸<del style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: Arial, Helvetica, sans-serif; padding-top: 0px" datetime="2011-03-01T08:00:29+00:00">寰?#32457;?/del>姣?#32457;?#38171;?#37510;?#26473;?#38322;屽彲浠?#37918;嗚涓篒O?#27537;鍝嶅簲鏃堕棿?#32029;涓鑸湴绯?#32513;IO鍝嶅簲鏃堕棿搴?#29831;?#28003;?#27996;?ms?#32029;濡?#37835;滃浜?0ms灏?#23011;?#26440;?#28598;?#27996;?#37510;?/p> <p style="text-align: justify; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 28px; margin: 0px 0px 12px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, Helvetica, sans-serif; white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><font style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: Arial, Helvetica, sans-serif; padding-top: 0px" color="blue">%util</font>?#32048;鍦?#32513;?#29825;?#37827;堕棿鍐?#37813;?#28225;澶?#37918;咺O鏃堕棿?#32029;闄?#28000;?#37804;诲叡缁?#29825;?#37827;堕棿銆?#28186;嬪?#20646;紝濡?#37835;?#32513;?#29825;棿闅?绉掞紝璇?#29825;惧?#22248;湁0.8绉?#37734;?#28598;?#37918;咺O?#32029;鑰?.2绉?#38338;?#32515;紝閭?#28052;?#29831;?#29825;惧?#22249;殑%util = 0.8/1 = 80%锛屾墍浠?#29831;?#37721;?#37825;版?#26947;浜嗚?#24807;?#22249;殑绻?#36423;?#32459;嬪害銆?#28051;鑸湴?#32029;濡?#37835;?#29831;?#37721;?#37825;版槸100%琛?#32448;鸿?#24807;宸?#32513;?#37818;?#26473;?#23114;?#29840;熻杩?#29723;?#27996;?#38171;?#35120;撶劧濡?#37835;滄槸澶氱鐩橈紝鍗?#28003;?util鏄?00%?#32029;鍥?#28051;虹鐩樼殑骞?#37721;?#38003;藉姏锛屾墍浠?#32446;?#37929;?#28003;跨敤鏈?#36423;?#28751;?#37714;?#27996;嗙?#22549;锛?#37510;?/p> <p style="text-align: justify; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 28px; margin: 0px 0px 12px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, Helvetica, sans-serif; white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><font style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: Arial, Helvetica, sans-serif; padding-top: 0px" color="red">3. -c 鍙?#37825;?/font></p> <p style="text-align: justify; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 28px; margin: 0px 0px 12px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, Helvetica, sans-serif; white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">iostat杩?#37721;?#28000;敤?#28533;?#24143;鍙朿pu閮?#37714;嗙?#33333;佸硷細</p><pre style="padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, Helvetica, sans-serif; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><div style="border-left: rgb(22,100,217) 6px solid; padding-bottom: 10px; background-color: rgb(34,34,34); margin: 0px 0px 12px; padding-left: 10px; width: 724px; padding-right: 10px; display: block; font: 1em Fixedsys, 'Courier New', Courier, monospace; color: rgb(0,204,0); overflow: scroll; padding-top: 10px" class="mycode"><strong style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: Arial, Helvetica, sans-serif; padding-top: 0px">iostat -c 1 10</strong> avg-cpu: %user %nice %sys %iowait %idle 1.98 0.00 0.35 11.45 86.22 avg-cpu: %user %nice %sys %iowait %idle 1.62 0.00 0.25 34.46 63.67</div></pre> <p style="text-align: justify; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 28px; margin: 0px 0px 12px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, Helvetica, sans-serif; white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><font style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: Arial, Helvetica, sans-serif; padding-top: 0px" color="red">4. 甯?#29785;佺敤娉?/font></p><pre style="padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, Helvetica, sans-serif; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><div style="border-left: rgb(22,100,217) 6px solid; padding-bottom: 10px; background-color: rgb(34,34,34); margin: 0px 0px 12px; padding-left: 10px; width: 724px; padding-right: 10px; display: block; font: 1em Fixedsys, 'Courier New', Courier, monospace; color: rgb(0,204,0); overflow: scroll; padding-top: 10px" class="mycode">$iostat -d -k 1 10 #?#29025;鐪TPS鍜?#37722;?#37722;?#38322;忎俊鎭? iostat -d -x -k 1 10 #?#29025;鐪嬭?#24807;浣跨敤鐜?#38171;?util锛?#37510;佸?#23941;簲鏃堕棿锛await锛? iostat -c 1 10 #?#29025;鐪cpu鐘舵? </div></pre> <p style="text-align: justify; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 28px; margin: 0px 0px 12px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, Helvetica, sans-serif; white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><font style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: Arial, Helvetica, sans-serif; padding-top: 0px" color="red">5. 瀹?#28186;嬪?#21976;瀽</font></p><pre style="padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, Helvetica, sans-serif; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><div style="border-left: rgb(22,100,217) 6px solid; padding-bottom: 10px; background-color: rgb(34,34,34); margin: 0px 0px 12px; padding-left: 10px; width: 724px; padding-right: 10px; display: block; font: 1em Fixedsys, 'Courier New', Courier, monospace; color: rgb(0,204,0); overflow: scroll; padding-top: 10px" class="mycode">$$iostat -d -k 1 |grep sda10 Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn sda10 60.72 18.95 71.53 395637647 1493241908 sda10 299.02 4266.67 129.41 4352 132 sda10 483.84 4589.90 4117.17 4544 4076 sda10 218.00 3360.00 100.00 3360 100 sda10 546.00 8784.00 124.00 8784 124 sda10 827.00 13232.00 136.00 13232 136</div></pre> <p style="text-align: justify; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 28px; margin: 0px 0px 12px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, Helvetica, sans-serif; white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">涓婇潰鐪嬪埌?#32029;纾?#37929;?#23011;忕浼犺緭娆?#37825;板钩鍧囩害400?#32049;姣忕纾?#37929;?#29831;诲?#26667;害5MB?#32029;鍐欏叆绾?MB銆?/p><pre style="padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, Helvetica, sans-serif; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><div style="border-left: rgb(22,100,217) 6px solid; padding-bottom: 10px; background-color: rgb(34,34,34); margin: 0px 0px 12px; padding-left: 10px; width: 724px; padding-right: 10px; display: block; font: 1em Fixedsys, 'Courier New', Courier, monospace; color: rgb(0,204,0); overflow: scroll; padding-top: 10px" class="mycode">iostat -d -x -k 1 Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s rkB/s wkB/s avgrq-sz avgqu-sz await svctm %util sda 1.56 28.31 7.84 31.50 43.65 3.16 21.82 1.58 1.19 0.03 0.80 2.61 10.29 sda 1.98 24.75 419.80 6.93 13465.35 253.47 6732.67 126.73 32.15 2.00 4.70 2.00 85.25 sda 3.06 41.84 444.90 54.08 14204.08 2048.98 7102.04 1024.49 32.57 2.10 4.21 1.85 92.24</div></pre> <p style="text-align: justify; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 28px; margin: 0px 0px 12px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, Helvetica, sans-serif; white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">鍙?#28000;?#37930;嬪?#25198;鐩樼殑骞?#37735;囧?#23941;簲鏃堕棿<5ms?#32029;纾?#37929;?#28003;跨敤鐜?gt;80銆傜鐩樺?#23941;簲姝?#29999;革紝浣嗘槸宸?#32513;?#23536;堢箒蹇?#27996;?#37510;?/p> <p style="text-align: justify; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 28px; margin: 0px 0px 12px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, Helvetica, sans-serif; white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">鍙傝?#37826;囩?#32048;</p> <ol style="padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px 0px 0px 55px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, Helvetica, sans-serif; white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><li style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: Arial, Helvetica, sans-serif; padding-top: 0px">Linux man iostat</li><li style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: Arial, Helvetica, sans-serif; padding-top: 0px"><a style="padding-bottom: 0px; margin: 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: medium; padding-right: 0px; font-family: Arial, Helvetica, sans-serif; color: rgb(0,84,179); text-decoration: underline; padding-top: 0px" href="http://www.xaprb.com/blog/2010/01/09/how-linux-iostat-computes-its-results/">How Linux iostat computes its results</a></li><li style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; font-family: Arial, Helvetica, sans-serif; padding-top: 0px"><a style="padding-bottom: 0px; margin: 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: medium; padding-right: 0px; font-family: Arial, Helvetica, sans-serif; color: rgb(0,84,179); text-decoration: underline; padding-top: 0px" href="http://www.mjmwired.net/kernel/Documentation/iostats.txt">Linux iostat</a></li></ol><img src ="http://www.8634070.com/jjshcc/aggbug/426481.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.8634070.com/jjshcc/" target="_blank">Eric_jiang</a> 2015-07-29 10:54 <a href="http://www.8634070.com/jjshcc/archive/2015/07/29/426481.html#Feedback" target="_blank" style="text-decoration:none;">鍙?#29723;?#29831;勮</a></div>]]></description></item><item><title>Nginx/LVS/HAProxy?#30987;杞?#37735;?#29723;?#26462;欢?#27537;浼?#32514;虹偣璇?#29785;?/title><link>http://www.8634070.com/jjshcc/archive/2015/07/27/426446.html</link><dc:creator>Eric_jiang</dc:creator><author>Eric_jiang</author><pubDate>Mon, 27 Jul 2015 07:37:00 GMT</pubDate><guid>http://www.8634070.com/jjshcc/archive/2015/07/27/426446.html</guid><wfw:comment>http://www.8634070.com/jjshcc/comments/426446.html</wfw:comment><comments>http://www.8634070.com/jjshcc/archive/2015/07/27/426446.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.8634070.com/jjshcc/comments/commentRss/426446.html</wfw:commentRss><trackback:ping>http://www.8634070.com/jjshcc/services/trackbacks/426446.html</trackback:ping><description><![CDATA[<p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><strong style="text-align: center; font-weight: bold"></p> <div style="border-bottom-style: none; border-left: rgb(216,217,217) 1px solid; padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); margin-top: 10px; text-indent: 0px; padding-left: 18px; width: 597px; letter-spacing: normal; padding-right: 18px; font: 12px/18px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); border-top: rgb(216,217,217) 1px solid; border-right: rgb(216,217,217) 1px solid; word-spacing: 0px; padding-top: 12px; -webkit-text-stroke-width: 0px" class="brief bgF8F8F8"> <div style="border-bottom: rgb(115,160,207) 1px dashed; border-left: rgb(115,160,207) 1px dashed; padding-bottom: 8px; line-height: 26px; background-color: rgb(255,255,255); padding-left: 12px; padding-right: 12px; border-top: rgb(115,160,207) 1px dashed; border-right: rgb(115,160,207) 1px dashed; padding-top: 8px" class="brieftext"> <p style="padding-bottom: 0px; background-color: transparent; margin: 0px; padding-left: 0px; padding-right: 0px; color: rgb(0,102,0); font-size: 14px; padding-top: 0px" class="f14 green">涓鑸?#28725;硅礋杞?#37735;?#29723;殑浣跨敤鏄?#38341;忕潃缃戠珯瑙勬?#27537;鎻愬崌鏍?#37817;?#28051;?#37722;岀殑闃?#23048;垫潵浣跨敤涓?#37722;岀殑鎶鏈?#37510;傚叿浣撶殑搴旂敤?#28214;?#30512;杩?#23536;楀叿浣撳?#21976;瀽?#32029;濡?#37835;滄槸涓?#28751;忓瀷?#27537;Web搴旂敤锛屾瘮濡?#37827;PV灏?#27996;?000涓囷紝?#25956;Nginx灏?#28729;屽叏鍙?#28000;?#27996;嗭紱濡?#37835;滄?#21700;櫒涓?#28751;戯紝鍙?#28000;敤DNS杞?#29831;紝LVS鎵鑰楄?#22317;殑鏈哄櫒杩?#37828;?#23011;?#26440;?#28598;氱殑?#32049;澶瀷缃戠珯鎴?#38322;?#29781;佺殑?#28231;鍔紝涓旀湇鍔?#37731;?#23011;?#26440;?#28598;?#37827;讹紝鍙?#28000;?#38000;冭?#25120;敤LVS銆?/p> <p style="text-align: right; padding-bottom: 0px; background-color: transparent; margin: 0px; padding-left: 0px; padding-right: 0px; color: rgb(51,51,51); padding-top: 0px" class="ad">AD?#32048;</p></div></div> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"></p> <div style="border-bottom: rgb(216,217,217) 1px solid; position: relative; border-left: rgb(216,217,217) 1px solid; padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 0px; min-height: 500px; padding-left: 18px; letter-spacing: normal; padding-right: 18px; font: 14px/28px 瀹?#28003;? white-space: normal; border-top-style: none; margin-bottom: 10px; color: rgb(51,51,51); overflow: hidden; border-right: rgb(216,217,217) 1px solid; word-spacing: 0px; padding-top: 12px; -webkit-text-stroke-width: 0px" class="content bgF8F8F8 f14"><a style="color: rgb(0,66,118); text-decoration: underline" href="http://s9.51cto.com/wyfs02/M02/44/FB/wKioL1PjTDKSygdPAACXQcBszHI903.png" target="_blank"> <div align="center"><img style="border-bottom: 0px; text-align: center; border-left: 0px; width: 482px; height: 216px; border-top: 0px; border-right: 0px" onload="javascript:if(this.width>498)this.width=498;" class=fit-image onmousewheel="javascript:return big(this)" border=0 alt="" src="http://s9.51cto.com/wyfs02/M02/44/FB/wKioL1PjTDKSygdPAACXQcBszHI903.png" width=752 height=302></div></a> <div id="content"> <p style="padding-bottom: 0px; background-color: transparent; text-indent: 28px; margin: 10px 0px; padding-left: 0px; padding-right: 0px; color: rgb(51,51,51); padding-top: 0px"></p> <p style="text-align: center; padding-bottom: 0px; background-color: transparent; text-indent: 28px; margin: 10px 0px; padding-left: 0px; padding-right: 0px; color: rgb(51,51,51); padding-top: 0px"><a style="color: rgb(0,66,118); text-decoration: underline" href="http://s9.51cto.com/wyfs02/M02/44/FB/wKioL1PjTDKSygdPAACXQcBszHI903.png" target="_blank"></a></p></div></div> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><br />PS?#32048;<a style="color: rgb(0,66,118); text-decoration: underline" title="Nginx" href="http://www.ha97.com/category/web-server/nginx">Nginx</a>/LVS/<a style="color: rgb(0,66,118); text-decoration: underline" title="HAProxy" href="http://www.ha97.com/tag/haproxy">HAProxy</a>鏄洰鍓?#28003;跨敤鏈?#31629;娉涚殑涓夌?#23944;礋杞?#37735;?#29723;?#26462;欢锛屾湰浜?#38318;藉湪澶?#28051;?#26916;圭洰涓?#28729;?#37826;?#26473;囷紝鍙傝?#27996;?#28051;浜涜祫鏂欙紝缁撳?#22563;嚜宸辩殑涓浜?#28003;跨敤缁忛獙锛屾?#32513;?#28051;涓?#37510;?/strong></p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">涓鑸?#28725;硅礋杞?#37735;?#29723;殑浣跨敤鏄?#38341;忕潃缃戠珯瑙勬?#27537;鎻愬崌鏍?#37817;?#28051;?#37722;岀殑闃?#23048;垫潵浣跨敤涓?#37722;岀殑鎶鏈?#37510;傚叿浣撶殑搴旂敤?#28214;?#30512;杩?#23536;楀叿浣撳?#21976;瀽?#32029;濡?#37835;滄槸涓?#28751;忓瀷?#27537;Web搴旂敤锛屾瘮濡?#37827;PV灏?#27996;?000涓囷紝?#25956;Nginx灏?#28729;屽叏鍙?#28000;?#27996;嗭紱濡?#37835;滄?#21700;櫒涓?#28751;戯紝鍙?#28000;敤DNS杞?#29831;紝LVS鎵鑰楄?#22317;殑鏈哄櫒杩?#37828;?#23011;?#26440;?#28598;氱殑?#32049;澶瀷缃戠珯鎴?#38322;?#29781;佺殑?#28231;鍔紝涓旀湇鍔?#37731;?#23011;?#26440;?#28598;?#37827;讹紝鍙?#28000;?#38000;冭?#25120;敤LVS銆?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">涓绉嶆槸閫?#26473;囩?#27426;?#28533;?#32344;琛岃繘琛岋紝甯?#29785;佺殑纭欢?#28225;姣?#26440;?#37828;傝?#30005;殑F5鍜孉rray绛夊?#21977;敤?#27537;?#30987;杞?#37735;?#29723;?#37731;紝瀹冪殑浼樼偣灏?#37828;湁涓?#28051;氱殑缁?#37814;?#37733;?#38339;熸潵瀵?#26473;?#27996;涙湇鍔繘琛?#32513;?#37814;?#37510;?#32514;虹偣灏?#37828;?#38010;?#38335;澶?#28598;?#38171;屾墍浠?#28725;?#27996;?#29785;勬杈?#28751;忕殑缃戠粶?#28231;鍔潵璇存殏鏃?#26473;樻病鏈夐渶瑕?#28003;跨敤?#32049;鍙?#28598;?#28051;绉?#28751;?#37828;?#32491;?#28028;?#27996;嶯ginx/LVS/HAProxy?#27537;?#29056;浜?a style="color: rgb(0,66,118); text-decoration: underline" title="Linux" href="http://www.ha97.com/category/linux">Linux</a>?#27537;寮婧愬?#23944;?#22317;殑?#30987;杞?#37735;?#29723;?#26462;欢?#32029;杩?#27996;?#38318;?#37828;?#38315;?#26473;?#26462;欢绾?#37714;潵瀹炵幇锛屾墍浠?#29840;圭敤?#28522;甯?#28003;庡銆?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">?#27952;鍓?#37711;?#27996;?#32515;戠珯鏋舵瀯涓鑸?#23011;?#26440;?#37722;?#37918;嗘祦琛岀殑鏋舵?#21228;柟妗堬細Web鍓?#32468;?#38322;囩敤Nginx/HAProxy+<span style="color: rgb(255,0,0)"><a style="color: rgb(0,66,118); text-decoration: underline" title="Keepalived" href="http://www.ha97.com/tag/keepalived">Keepalived</a></span>浣滆礋杞?#37735;?#29723;?#37731;紱鍚庣閲囩敤<span style="color: rgb(255,0,0)"><a style="color: rgb(0,66,118); text-decoration: underline" title="MySQL" href="http://www.ha97.com/category/database/mysql-database">MySQL</a></span>鏁?#37817;?#25652;?#28051;涓诲浠?#37724;?#29831;诲?#27407;?#21977;?#20249;紝閲囩敤LVS+Keepalived?#27537;鏋舵瀯銆?#35120;撶?#24816;鏍?#37817;?#26916;圭洰?#21503;浣撻渶?#30512;鍒?#28729;氭柟妗?#37510;?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">涓嬮潰璇?#29831;?#37722;勮嚜?#27537;鐗圭偣鍜?#38315;傜敤鍦?#37722;?#37510;?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><strong style="text-align: center; font-weight: bold">Nginx?#27537;浼樼偣鏄細</strong></p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">1銆?#23480;?#28003;滃湪缃戠粶?#27537;7?#30512;?#31651;涓婏紝鍙?#28000;?#38333;堝http搴旂敤鍋?#28051;浜?#37714;嗘?#20346;殑绛栫暐锛屾瘮濡?#38333;堝鍩?#37722;?#37510;佺洰褰?#32513;?#37835;勶紝瀹冪殑姝?#37714;?#29785;?#37714;?#23011;擧AProxy?#27967;涓?#23534;哄鍜岀伒娲伙紝杩欎篃鏄?#28729;冪洰鍓嶅箍娉涙祦琛岀殑涓?#29781;佸?#29111;洜?#31651;涓?#32029;Nginx鍗?#37713;?#26473;欑偣鍙?#37714;敤?#27537;鍦?#37722;?#28751;?#26473;滃浜LVS浜?#37510;?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">2銆丯ginx瀵?#32515;戠粶绋?#28729;?#37804;殑渚?#29863;栭潪甯?#28751;忥紝鐞嗚涓?#38003;ping閫?#28751;?#28751;?#38003;借繘琛岃礋杞藉姛鑳斤紝杩?#28051;?#28052;?#37828;?#28729;冪殑浼?#37716;夸箣涓?#32049;鐩?#37721;峀VS瀵?#32515;戠粶绋?#28729;?#37804;?#28186;?#29863;栨瘮杈?#28598;紝杩欑偣鏈?#27996;烘?#36776;湁浣撲細?#32049;</p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">3銆丯ginx瀹夎鍜?#38320;?#32515;?#23011;?#26440;冪畝鍗?#38171;屾祴璇曡?#38155;潵姣?#26440;冩柟渚匡紝瀹?#37737;烘湰鑳?#37814;?#38335;?#29831;敤鏃?#36423;?#37813;撳嵃鍑烘潵銆侺VS?#27537;閰?#32515;?#37510;佹祴璇?#28751;?#29781;佽姳姣?#26440;冮?#36328;殑鏃堕棿浜嗭紝LVS瀵?#32515;戠粶渚?#29863;栨瘮杈?#28598;?#37510;?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">3銆?#37721;?#28000;?#37813;挎?#21620;?#27199;礋杞藉?#23338;姏涓?#32459;?#28729;氾紝鍦?#32429;欢涓?#23480;殑鎯?#37712;?#28051;?#28051;鑸?#38003;芥敮鎾?#37713;?#28051;?#23046;殑骞?#37721;?#38322;忥紝?#30987;杞藉害姣擫VS鐩?#28725;?#28751;?#27996;?#37510;?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">4銆丯ginx鍙?#28000;?#38315;?#26473;囩?#24411;妫娴嬪?#29256;湇鍔?#37731;?#37712;?#38318;殑鏁呴殰锛屾瘮濡?#37837;?#37817;湇鍔?#37731;?#28598;?#37918;?#32515;?#26916;?#26473;?#37733;炵殑鐘舵?#37934;?#37510;佽秴鏃剁瓑绛夛紝骞?#28051;斾細鎶?#26473;?#37733;為敊璇殑璇锋眰閲?#37826;版彁浜?#37714;板彟涓涓?#38010;傜偣?#32029;涓?#26473;?#37711;?#28051;?#32514;虹偣灏?#37828;?#28051;嶆敮鎸乽rl?#28533;妫?#31092;銆?#23011;?#28641;傜敤鎴?#23005;?#37734;?#28051;?#28028;?#28051;涓?#37826;囦欢?#32029;鑰屽鐞嗚涓?#28028;犵殑鑺傜偣鍒氬?#34249;湪涓?#28028;?#26473;囩涓?#37713;虹幇鏁呴殰?#32029;Nginx?#32048;鎶?#28051;?#28028;?#37714;?#37714;板彟涓鍙版湇鍔?#37731;?#38322;?#37826;板鐞嗭紝鑰孡VS灏?#37929;?#37818;?#37826;?#37818;?#27996;嗭紝濡?#37835;滄槸涓?#28028;?#28051;涓?#23536;?#28598;殑鏂囦欢鎴栬?#23536;?#38322;?#29781;佺殑鏂囦欢?#27537;璇濓紝?#25956;鎴?#37721;?#38003;戒細鍥犳鑰?#28051;嶆弧銆?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">5銆丯ginx涓?#28000;?#28000;呮槸涓娆?#28028;?#32457;?#27537;?#30987;杞?#37735;?#29723;?#37731;?鍙?#37722;?#28000;?#37918;?#26462;欢?#32029;瀹?#37722;屾?#26421;篃鏄?#37716;?#38003;?#23534;哄?#27537;Web搴旂敤?#28231;鍔?#37731;?#37510;侺NMP涔?#37828;?#26473;?#37713;?#39582;撮潪甯告祦琛岀殑web鏋舵?#21238;紝鍦?#26946;樻祦閲忕殑鐜?#28583;?#28051;?#32459;?#28729;?#37804;?#28052;?#23536;堝銆?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">6銆丯ginx?#24135;鍦?#28003;?#28051;Web鍙?#37722;?#37716;?#38315;?#32514;撳瓨瓒婃潵瓒?#37812;愮啛浜嗭紝閫熷害姣?#28028;?#32513;熺殑Squid?#28231;鍔?#37731;洿蹇紝鍙?#28000;?#38000;冭?#25120;敤鍏?#28003;?#28051;哄弽鍚?#28000;?#37918;嗗姞閫熷櫒銆?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">7銆丯ginx鍙?#28003;?#28051;?#28051;眰鍙?#37722;?#28000;?#37918;?#28003;跨敤?#32029;杩?#28051;?#30512;?#28528;Nginx鍩烘湰涓?#37827;?#28725;?#37813;嬶紝?#25966;涓鍙?#28000;?#28725;?#23011;擭ginx?#27537;灏?#37721;湁<a style="color: rgb(0,66,118); text-decoration: underline" title="lighttpd" href="http://www.ha97.com/category/web-server/lighttpd">lighttpd</a>浜嗭紝涓?#26473;?a style="color: rgb(0,66,118); text-decoration: underline" title="lighttpd" href="http://www.ha97.com/tag/lighttpd">lighttpd</a>?#27952;鍓?#26473;樻病?#28225;鍋?#37714;癗ginx瀹屽叏?#27537;鍔?#38003;斤紝閰?#32515;?#28052;?#28051;?#38317;?#28052;?#23059;呮?#29256;槗璇伙紝绀?#37718;鸿祫鏂欎篃杩?#26473;滄病Nginx娲?#29882;?#37510;?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">8銆丯ginx涔?#37721;?#28003;?#28051;?#38344;?#37804;?#32515;?#26916;?#37724;屽?#21095;?#22248;湇鍔?#37731;紝杩欐柟?#28528;?#27537;鎬?#38003;戒篃鏃?#28725;?#37813;?#37510;?#26473;樻湁Nginx绀?#37718;洪潪甯?#23090;?#29882;冿紝绗?#28051;夋柟妯?#37735;椾篃寰?#28598;?#37510;?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><strong style="text-align: center; font-weight: bold">Nginx?#27537;缂虹偣鏄細</strong></p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">1銆丯ginx浠?#38003;芥敮鎸乭ttp銆乭ttps鍜孍mail鍗?#29825;紝杩?#37837;?#28751;?#37734;?#38315;傜敤鑼?#37733;?#28051;婇潰灏?#27996;涳紝杩?#28051;?#37828;?#28729;冪殑缂虹偣銆?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">2銆?#28725;?#37722;庣?#28231;鍔?#37731;殑鍋?#25652;?#22955;?#29025;?#32029;鍙?#37824;?#37816;?#38315;?#26473;囩?#24411;?#28533;妫娴嬶紝涓嶆敮鎸?#38315;?#26473;url?#28533;妫?#31092;銆?#28051;嶆敮鎸丼ession?#27537;鐩?#37818;?#28103;?#37816;侊紝浣?#38003;?#38315;?#26473;ip_hash?#28533;瑙?#37712;?#37510;?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><strong style="text-align: center; font-weight: bold">LVS</strong>?#32048;浣跨敤Linux鍐?#37837;?#38342;嗙兢瀹炵幇涓涓珮鎬?#38003;?#37510;侀珮鍙敤?#27537;?#30987;杞?#37735;?#29723;湇鍔?#37731;紝瀹冨叿?#28225;寰堝?#30028;殑鍙?#28028;?#32514;?#37804;?#38171;Scalability)銆?#37721;?#38344;犳?#38171;Reliability)鍜屽彲绠?#37918;嗘?#38171;Manageability)銆?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><strong style="text-align: center; font-weight: bold">LVS?#27537;浼樼偣鏄細</strong></p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">1銆?#37814;楄礋杞?#38003;藉姏寮?#37510;?#37828;?#23480;?#28003;滃湪缃戠粶4?#30512;?#31651;涓?#28000;?#28003;滃?#21975;?#25116;?#23340;敤锛屾病?#28225;?#31078;閲忕殑浜敓?#32029;杩?#28051;?#37911;圭?#36891;篃鍐?#28729;?#27996;?#28729;?#37734;礋杞?#37735;?#29723;?#26462;欢閲岀殑鎬?#38003;?#37832;寮虹殑?#32029;瀵?#37712;?#28699;?#37724;宑pu璧勬簮娑堣?#23011;?#26440;?#28003;?#37510;?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">2銆?#38320;?#32515;?#37804;?#23011;?#26440;?#28003;庯紝杩?#37828;?#28051;涓?#32514;虹?#36891;篃鏄?#28051;涓?#28028;樼偣?#32029;鍥?#28051;烘病?#28225;鍙?#28598;?#28598;?#38320;?#32515;殑涓滆锛屾墍浠?#39582;?#28051;嶉渶瑕?#28598;?#28598;?#37818;?#29785;紝澶?#28598;噺灏?#27996;?#27996;?#28051;?#37713;?#38335;欑殑鍑犵巼銆?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">3銆?#23480;?#28003;?#32459;?#28729;氾紝鍥?#28051;哄?#33333;湰?#38889;鎶楄礋杞?#38003;藉姏寰?#23534;猴紝?#22172;?#38889;?#28225;瀹屾?#23544;殑鍙屾?#34425;儹澶囨柟妗堬紝濡侺VS+Keepalived?#32029;涓?#26473;?#37812;?#28000;?#37734;?#26916;圭洰瀹?#37826;戒腑?#25956;寰?#37832;澶氱殑杩?#37828;疞VS/DR+Keepalived銆?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">4銆?#37827;犳祦閲忥紝LVS鍙?#37714;嗗彂璇锋眰?#32029;鑰屾祦閲?#39582;?#28051;?#28000;?#28729;?#37832;韩鍑哄?#20249;紝杩欑偣淇?#29831;佷簡鍧?#29723;?#37731;IO?#27537;鎬?#38003;戒?#23940;細?#25977;鍒板?#31078;閲忕殑褰?#37725;?#37510;?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">5銆佸簲?#25956;鑼?#37733;?#23011;?#26440;冨箍?#32029;鍥?#28051;篖VS宸?#28003;滃湪4?#30512;锛屾墍浠?#28729;?#37713;?#28052;?#37721;?#28000;?#28725;?#37813;?#28225;搴旂敤鍋氳礋杞?#37735;?#29723;紝?#23512;?#23277;http銆?#37825;?#37817;?#25652;?#37510;?#37734;?#32510;胯亰澶?#28729;?#32475;?#32475;?#37510;?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><strong style="text-align: center; font-weight: bold">LVS?#27537;缂虹偣鏄細</strong></p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">1銆?#26462;欢鏈韩涓嶆敮鎸?#23005;?#37714;?#29723;揪寮?#28598;?#37918;嗭紝涓?#38003;藉仛鍔?#38344;欏?#21977;?#20249;紱鑰岀幇鍦?#29825;?#28598;?#32515;戠?#27407;湪杩欐柟?#28528;閮?#37832;夎緝寮虹殑?#28214;?#30512;?#32029;杩?#28051;?#37828;疦ginx/HAProxy+Keepalived?#27537;浼?#37716;?#37813;鍦?#37510;?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">2銆?#28641;?#37835;滄槸缃戠?#27407;簲?#25956;姣?#26440;?#25652;?#28598;殑璇濓紝LVS/DR+Keepalived瀹?#37826;?#29863;锋潵灏?#23011;?#26440;?#28598;嶆潅浜嗭紝鐗?#37714;?#37722;庨潰?#28225;<a style="color: rgb(0,66,118); text-decoration: underline" title="Windows" href="http://www.ha97.com/category/microsoft/windows">Windows</a><span class="Apple-converted-space"> </span>Server?#27537;鏈哄櫒?#27537;璇濓紝濡?#37835;?#28729;?#37826;藉強閰?#32515;?#26473;樻湁缁?#37814;?#26473;囩灏?#23011;?#26440;?#28598;嶆潅浜嗭紝鐩?#28725;?#38000;岃?#32029;Nginx/HAProxy+Keepalived灏辩畝鍗?#28598;?#27996;?#37510;?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><strong style="text-align: center; font-weight: bold">HAProxy?#27537;鐗圭偣鏄細</strong></p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">1銆丠AProxy涔?#37828;?#37824;?#37816;佽?#27693;嫙涓?#37832;虹殑銆?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">2銆丠AProxy?#27537;浼樼偣鑳藉琛?#37711;匩ginx?#27537;涓浜?#32514;虹偣锛屾瘮濡傛敮鎸丼ession?#27537;淇?#37816;侊紝Cookie?#27537;寮?#28725;硷紱鍚屾?#33333;敮鎸?#38315;?#26473;囪幏鍙栨寚瀹氱殑url?#28533;妫?#31092;鍚庣?#28231;鍔?#37731;殑鐘舵?#37510;?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">3銆丠AProxy璺烲VS绫?#28028;?#38171;屾湰?#38889;灏?#37721;?#37828;?#28051;娆捐礋杞?#37735;?#29723;?#26462;欢?#32049;鍗曠函浠?#37825;堢巼涓婃潵璁HAProxy?#32048;姣擭ginx?#28225;?#27967;鍑鸿?#33580;殑?#30987;杞?#37735;?#29723;?#38315;熷害?#32029;鍦?#39582;?#37721;戝鐞?#28051;婁篃鏄?#28028;?#27996;嶯ginx?#27537;銆?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">4銆丠AProxy鏀?#37816;乀CP鍗?#29825;殑?#30987;杞?#37735;?#29723;?#26462;?#37721;戯紝鍙?#28000;?#28725;筂ySQL璇昏繘琛岃礋杞?#37735;?#29723;紝瀵?#37722;庣?#27537;MySQL鑺傜偣?#32344;琛屾?#31092;鍜岃礋杞?#37735;?#29723;紝澶?#28729;?#37721;?#28000;敤LVS+Keepalived瀵筂ySQL涓?#28000;?#37707;氳礋杞?#37735;?#29723;?#37510;?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">5銆丠AProxy?#30987;杞?#37735;?#29723;?#32475;栫暐?#28522;甯?#28598;氾紝HAProxy?#27537;?#30987;杞?#37735;?#29723;?#32480;楁?#26336;幇鍦叿浣撴湁濡?#28051;?绉嶏細</p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">① roundrobin?#32029;琛?#32448;虹畝鍗曠殑杞?#29831;紝杩?#28051;?#28051;?#28598;?#29831;达紝杩?#28051;?#37828;礋杞?#37735;?#29723;?#37737;烘湰閮藉叿澶囩殑?#32049;</p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">② static-rr?#32029;琛?#32448;?#37837;?#37817;?#37833;?#38322;嶏紝寤鸿鍏?#23049;紱</p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">③ leastconn?#32029;琛?#32448;烘渶灏?#26473;?#37818;?#38000;?#37711;?#28598;?#37918;嗭紝寤鸿鍏?#23049;紱</p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">④ source?#32029;琛?#32448;?#37837;?#37817;?#29831;锋眰?#31790;IP?#32029;杩?#28051;?#29882;Nginx?#27537;IP_hash鏈?#37714;?#32491;?#28028;?#38171;屾垜浠敤鍏?#28003;?#28051;鸿鍐硈ession闂?#26864;樼殑涓绉嶆柟娉曪紝寤鸿鍏?#23049;紱</p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">⑤ ri?#32029;琛?#32448;?#37837;?#37817;?#29831;锋眰?#27537;URI?#32049;</p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">⑥ rl_param?#32029;琛?#32448;?#37837;?#37817;?#29831;锋眰?#27537;URl鍙?#37825;?#8217;balance url_param’ requires an URL parameter name?#32049;</p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">⑦ hdr(name)?#32029;琛?#32448;?#37837;?#37817;瓾TTP璇锋眰澶存潵閿?#28729;?#23011;?#28051;娆HTTP璇锋眰?#32049;</p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">⑧ rdp-cookie(name)?#32029;琛?#32448;?#37837;?#37817;?#37817;cookie(name)?#28533;閿?#28729;?#39582;跺甯屾瘡涓娆TCP璇锋眰銆?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><strong style="text-align: center; font-weight: bold">Nginx鍜孡VS瀵?#23011;旂殑鎬?#32513;細</strong></p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">1銆丯ginx宸?#28003;滃湪缃戠粶?#27537;7?#30512;锛屾墍浠?#28729;?#37721;?#28000;?#38333;堝http搴旂敤鏈韩?#28533;鍋?#37714;嗘祦绛栫暐锛屾瘮濡?#38333;堝鍩?#37722;?#37510;佺洰褰?#32513;?#37835;勭?#22811;紝鐩?#23011;斾箣涓婰VS骞?#28051;嶅叿澶?#26473;?#37837;风殑鍔?#38003;?#38171;屾墍浠Nginx鍗?#37713;?#26473;欑偣鍙?#37714;敤?#27537;鍦?#37722;?#28751;?#26473;滃浜LVS浜嗭紱浣哊ginx?#28225;?#25956;?#27537;杩?#27996;?#37716;?#38003;?#28003;?#37711;?#37721;皟鏁?#25652;?#29781;侀珮浜LVS锛屾墍浠?#32513;?#29999;歌?#20344;瑙?#32432;?#29785;?#32432;帮紝瑙?#32432;板浜嗭紝浜?#28051;?#37713;?#38338;?#26864;樼殑鍑犵?#22246;篃灏变細澶?#37510;?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">2銆丯ginx瀵?#32515;戠粶绋?#28729;?#37804;殑渚?#29863;?#26440;?#28751;忥紝鐞嗚涓?#37721;?#29781;ping寰?#38315;氾紝缃?#26916;?#29825;?#38338;?#23005;?#29999;革紝Nginx灏?#38003;?#26473;?#23536;?#38315;氾紝杩?#37828;疦ginx?#27537;涓澶?#28028;?#37716;?#38171;丯ginx鍚屾椂杩?#38003;藉尯鍒嗗唴澶?#32515;戯紝濡?#37835;滄槸鍚屾?#33333;嫢?#28225;鍐呭缃戠殑鑺傜偣?#32029;灏?#37929;?#35120;?#27996;?#37719;?#37832;烘嫢?#28225;浜嗗?#22246;?#30028;嚎璺紱LVS灏?#23011;?#26440;?#28186;?#29863;?#27996;?#32515;戠粶鐜?#28583;冿紝?#27952;鍓嶆潵鐪嬫湇鍔?#37731;?#37734;?#37722;?#28051;缃?#23048;?#37712;?#39582;?#28051;擫VS浣跨敤direct?#26591;寮?#37714;嗘祦锛屾晥鏋?#26440;?#38003;藉緱鍒?#28103;?#29831;?#37510;傚彟澶栨敞鎰忥紝LVS?#28214;瑕?#37722;?#37813;?#32480;?#37727;嗚嚦灏戠敵璇?#28598;?#28051;涓猧p?#28533;鍋Visual IP?#32029;屼技鏄?#28051;?#38003;界敤鏈韩?#27537;IP?#28533;鍋VIP?#27537;銆?#29781;?#37707;氬LVS绠?#37918;?#37723;橈紝纭?#28729;?#23536;?#29882;熻繘瀛?#28052;?#23536;?#28598;氭湁鍏?#32515;戠粶閫氫俊?#26591;?#28528;?#27537;?#29025;璇嗭紝灏?#28051;?#37712;嶆槸涓涓狧TTP閭?#28052;堢畝鍗?#27996;?#37510;?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">3銆丯ginx瀹夎鍜?#38320;?#32515;?#23011;?#26440;冪畝鍗?#38171;屾祴璇曡?#38155;潵涔?#23536;堟柟渚匡紝鍥?#28051;?#28729;?#37737;烘湰鑳?#37814;?#38335;?#29831;敤鏃?#36423;?#37813;撳嵃鍑烘潵銆侺VS?#27537;瀹夎鍜?#38320;?#32515;?#37510;佹祴璇?#28751;?#29781;佽姳姣?#26440;冮?#36328;殑鏃堕棿浜嗭紱LVS瀵?#32515;戠粶渚?#29863;栨瘮杈?#28598;紝寰?#28598;?#37827;跺?#28051;?#38003;?#38320;?#32515;?#37812;愬姛閮?#37828;?#37733;?#28051;?#32515;戠粶闂?#26864;樿?#28051;嶆槸閰?#32515;?#38338;?#26864;橈紝鍑?#27996;?#38338;?#26864;?#29781;佽鍐充篃鐩?#25652;旂殑?#32048;楹荤儲寰?#28598;?#37510;?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">4銆丯ginx涔?#37722;屾牱鑳?#37813;?#37721;?#23536;?#26946;樿礋杞戒笖绋?#28729;氾紝浣嗚礋杞藉害鍜?#32459;?#28729;?#25652;?#23480;甃VS杩樻湁鍑?#28051;?#32475;夌骇?#32048;Nginx澶?#37918;?#37813;?#28225;?#31078;閲?#37813;浠?#37721;楅檺浜庢?#21700;櫒IO鍜?#38320;?#32515;紱鏈韩?#27537;bug涔?#26473;?#37828;?#38341;?#28000;伩鍏嶇殑銆?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">5銆丯ginx鍙?#28000;?#22955;娴嬪?#29256;湇鍔?#37731;?#37712;?#38318;殑鏁呴殰锛屾瘮濡?#37837;?#37817;湇鍔?#37731;?#28598;?#37918;?#32515;?#26916;?#26473;?#37733;炵殑鐘舵?#37934;?#37510;佽秴鏃剁瓑绛夛紝骞?#28051;斾細鎶?#26473;?#37733;為敊璇殑璇锋眰閲?#37826;版彁浜?#37714;板彟涓涓?#38010;傜偣銆傜洰鍓峀VS涓?ldirectd涔?#38003;芥敮鎸?#38333;堝?#35268;湇鍔?#37731;?#37712;?#38318;殑鎯?#37712;垫潵鐩?#37818;紝浣哃VS?#27537;鍘?#37918;?#28003;?#37711;?#28051;?#38003;?#38322;?#37721;?#29831;锋眰銆?#23011;?#28641;傜敤鎴?#23005;?#37734;?#28051;?#28028;?#28051;涓?#37826;囦欢?#32029;鑰屽鐞嗚涓?#28028;犵殑鑺傜偣鍒氬?#34249;湪涓?#28028;?#26473;囩涓?#37713;虹幇鏁呴殰?#32029;Nginx?#32048;鎶?#28051;?#28028;?#37714;?#37714;板彟涓鍙版湇鍔?#37731;?#38322;?#37826;板鐞嗭紝鑰孡VS灏?#37929;?#37818;?#37826;?#37818;?#27996;嗭紝濡?#37835;滄槸涓?#28028;?#28051;涓?#23536;?#28598;殑鏂囦欢鎴栬?#23536;?#38322;?#29781;佺殑鏂囦欢?#27537;璇濓紝?#25956;鎴?#37721;?#38003;戒細鍥犳鑰屾伡鐏?#37510;?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">6銆丯ginx瀵?#29831;锋眰?#27537;寮傛澶?#37918;嗗彲浠?#29999;?#37716;?#38010;傜?#35268;湇鍔?#37731;噺杞昏礋杞斤紝鍋?#28641;?#28003;跨敤<a style="color: rgb(0,66,118); text-decoration: underline" title="apache" href="http://www.ha97.com/category/web-server/apache">apache</a>鐩?#37818;?#28725;?#28598;栨湇鍔紝閭?#28052;?#37713;虹?#26495;緢澶氱殑绐勫甫?#25724;鎺?#37827;禷pache?#28231;鍔?#37731;?#28751;嗕細鍗犵敤澶?閲?#37712;?#28699;樿?#28051;?#38003;?#38322;?#37824;撅紝浣跨敤澶?#28051;涓狽ginx鍋歛pache浠?#37918;嗙殑璇濓紝杩?#27996;涚?#21227;甫?#25724;鎺細琚玁ginx鎸?#28003;忥紝apache涓?#28751;?#28051;嶄細鍫嗙杩囧?#27697;殑璇锋眰?#32029;杩?#37837;?#28751;卞噺灏?#27996;嗙浉褰撳?#27697;殑璧勬?#24876;?#29365;敤銆?#26473;欑偣浣跨敤squid涔熸湁鐩?#37722;岀殑浣滅敤?#32029;鍗?#28003;squid鏈韩閰?#32515;?#28051;?#28051;?#32514;撳瓨?#32029;瀵apache杩?#37828;湁寰?#28598;?#29999;?#37716;殑銆?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">7銆丯ginx鑳芥敮鎸乭ttp銆乭ttps鍜宔mail锛坋mail?#27537;鍔?#38003;?#23011;?#26440;?#28751;戠敤锛夛紝LVS鎵鏀?#37816;佺殑搴旂敤鍦?#26473;欑偣涓婁細姣擭ginx?#27967;澶?#37510;?#37734;?#28003;跨敤涓婏紝涓鑸?#37832;鍓?#32468;?#37813;閲?#37721;栫殑绛栫暐搴?#37828;疞VS?#32029;涔?#28751;?#37828;DNS?#27537;?#23514;鍚戝簲涓篖VS鍧?#29723;?#37731;紝LVS?#27537;浼樼?#36891;护瀹冮潪甯?#38315;?#37722;?#37707;?#26473;?#28051;?#28000;诲姟銆?#38322;?#29781;佺殑ip?#28276;鍧锛屾渶濂戒氦鐢盠VS鎵?#32480;?#38171;屾瘮濡?#37825;?#37817;?#25652;撶殑 ip銆亀ebservice?#28231;鍔?#37731;殑ip绛?#32475;夛紝杩?#27996;沬p?#28276;鍧闅忕潃鏃堕棿鎺?#32457;伙紝浣跨敤?#28528;?#32048;瓒婃潵瓒?#28598;紝濡?#37835;滄洿鎹ip鍒?#37825;呴?#28352;細鎺?#20291;岃嚦銆?#37813;浠?#28751;嗚繖浜?#38322;?#29781;乮p浜?#32513;?LVS鎵?#32480;?#37828;?#37832;涓?#32459;?#28641;殑?#32029;杩?#37837;?#37707;氱殑?#25966;涓缂虹偣鏄渶瑕佺殑VIP鏁?#38322;忎細姣?#26440;?#28598;?#37510;侼ginx鍙?#28003;?#28051;篖VS鑺傜偣鏈哄櫒浣跨敤?#32029;涓鏄?#37721;?#28000;?#37714;敤Nginx?#27537;鍔?#38003;斤紝浜屾槸鍙?#28000;?#37714;敤Nginx?#27537;鎬?#38003;?#37510;?#35120;撶劧杩?#28051;?#30512;?#28528;涔?#37721;?#28000;?#37929;?#37818;?#28003;跨敤squid?#32029;squid?#27537;鍔?#38003;芥柟?#28528;灏?#23011;擭ginx寮?#28051;?#28751;?#27996;?#38171;屾?#38003;戒笂涔熸湁鎵閫婅壊浜嶯ginx銆侼ginx涔?#37721;?#28003;?#28051;?#28051;眰浠?#37918;?#28003;跨敤?#32029;杩?#28051;?#30512;?#28528;Nginx鍩烘湰涓?#37827;?#28725;?#37813;嬶紝?#25966;涓鍙?#28000;?#37822;煎姩Nginx?#27537;灏?#37721;湁lighttpd浜嗭紝涓?#26473;噇ighttpd?#27952;鍓?#26473;樻病鏈夎?#34249;仛鍒?Nginx瀹屽叏?#27537;鍔?#38003;斤紝閰?#32515;?#28052;?#28051;?#38317;?#28052;?#23059;呮?#29256;槗璇?#37510;傚彟澶栵紝涓眰浠?#37918;嗙殑IP涔?#37828;?#38322;?#29781;佺殑锛屾墍浠?#28051;眰浠?#37918;嗕篃鎷湁涓涓猇IP鍜孡VS鏄?#37832;瀹岀?#24227;殑?#26591;妗?#27996;?#37510;傚叿浣撶殑搴旂敤杩?#23536;楀叿浣撳?#21976;瀽?#32029;濡?#37835;滄槸姣?#26440;?#28751;忕殑缃戠珯锛?#37827;PV灏?#27996;?000涓?#38171;夛紝?#25956;Nginx灏?#28729;屽叏鍙?#28000;?#27996;嗭紝濡?#37835;滄?#21700;櫒涔?#28051;?#28751;戯紝鍙?#28000;敤DNS杞?#29831;紝LVS鎵鑰楄?#22317;殑鏈哄櫒杩?#37828;?#23011;?#26440;?#28598;氱殑?#32049;澶瀷缃戠珯鎴栬?#38322;?#29781;佺殑?#28231;鍔?#38171;屾?#21700;櫒涓?#37721;戞?#20346;殑鏃跺欙紝瑕?#28598;?#28598;氳冭檻鍒敤LVS銆?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><strong style="text-align: center; font-weight: bold">?#24135;鍦?#28725;?#32515;戠粶?#30987;杞?#37735;?#29723;殑浣跨敤鏄?#38341;忕潃缃戠珯瑙勬?#27537;鎻愬崌鏍?#37817;?#28051;?#37722;岀殑闃?#23048;垫潵浣跨敤涓?#37722;岀殑鎶鏈細</strong></p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">绗?#28051;闃?#23048;細鍒敤Nginx鎴朒AProxy?#32344;琛屽?#26336;?#22317;殑?#30987;杞?#37735;?#29723;紝杩?#28051;闃?#23048;垫湇鍔?#37731;?#29785;勬鍒氳?#36777;寮鍗曟湇鍔?#37731;?#37510;?#37719;?#37825;?#37817;?#25652;撶殑妯?#23534;忥紝?#28214;瑕?#28051;瀹氱殑?#30987;杞?#37735;?#29723;紝浣嗘槸浠嶇劧瑙勬杈?#28751;忔病?#28225;涓?#28051;氱殑缁?#37814;?#37733;?#38339;熸潵?#32344;琛?#32513;?#37814;紝涔熸病鏈夐渶瑕佽繘琛屽瑙勬?#27537;缃戠珯閮?#32515;?#37510;?#26473;?#37837;?#37714;敤Nginx鎴朒Aproxy灏?#37828;?#32471;?#28051;閫夋嫨锛屾鏃?#26473;?#27996;?#28051;滆涓?#37813;嬪揩?#32029; 閰?#32515;?#28729;?#37828;紝鍦?#28051;冨眰?#31651;涓?#37714;敤HTTP鍗?#29825;?#28751;?#37721;?#28000;?#37510;?#26473;?#37827;?#37828;?#32471;?#28051;閫夋嫨銆?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">绗?#27996;岄娈細闅忕潃缃戠粶?#28231;鍔繘涓姝?#37813;?#28598;紝杩?#37827;?#37719;曠?#22317;殑Nginx宸?#32513;?#28051;?#38003;芥弧瓒筹紝杩?#37827;?#28003;跨敤LVS鎴栬呭?#21977;敤Array灏?#37828;?#26851;栬閫夋嫨?#32029;Nginx姝?#37827;?#28751;?#28003;?#28051;篖VS鎴栬匒rray?#27537;鑺傜?#35268;潵浣跨敤?#32029;?#21503;浣揕VS鎴朅rray?#27537;鏄?#38315;夋嫨鏄?#37837;?#37817;?#37711;?#37721;?#29785;勬鍜岄?#21229;?#26945;潵閫夋嫨?#32029;Array?#27537;搴旂敤浜?#28000;?#37716;?#38003;介潪甯?#23534;哄锛屾湰浜?#37734;?#37836;?#26916;圭洰涓?#28003;跨敤杩?#38171;屾?#28000;?#23011;?#28052;?#26473;滈珮浜嶧5?#32029;鍟嗙敤棣?#38315;?#38171;?#28003;嗘槸涓鑸潵璇?#26473;?#38339;?#23048;电浉鍏?#27996;?#37813;?#29882;?#28051;?#28051;?#28051;?#37716;殑鎻愬崌锛屾墍浠?#29840;?#28052;板晢涓氳礋杞?#37735;?#29723;?#23480;?#32513;?#37812;?#28051;?#27996;嗗繀缁忎箣璺?#37510;?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">绗?#28051;夐娈細杩?#37827;?#32515;戠粶?#28231;鍔?#23480;?#32513;?#37812;?#28051;?#28051;绘?#20343;骇鍝?#38171;屾鏃堕?#24533;潃鍏?#37721;哥煡鍚嶅害涔熻繘涓姝?#37813;睍?#32029;鐩?#37711;?#27996;?#37813;嶇殑鑳藉姏浠?#37721;?#37825;?#38322;忎篃闅忎?#23339;?#24876;?#22263;紝杩?#37827;?#37827;?#29825;?#28000;?#23534;鍙?#38315;?#37722;堣嚜?#38889;浜?#37725;佺殑瀹?#37714;讹紝浠?#37721;?#38340;?#28003;?#37812;?#37832;潵璁?#23534;?#31790;?#27537;LVS?#32029;宸?#32513;?#37812;?#28051;洪閫夛紝杩?#37827;LVS?#32048;鎴?#28051;?#28051;绘祦銆?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">鏈缁?#35120;?#37812;?#23011;?#26440;冪?#21976;?#23815;殑鍩烘湰鏋舵瀯涓猴細<strong style="text-align: center; font-weight: bold">Array/LVS — Nginx/Haproxy — Squid/Varnish — AppServer</strong>銆?/p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">鍘?#37826;囬摼鎺細<a style="color: rgb(0,66,118); text-decoration: underline" href="http://www.ha97.com/5646.html">http://www.ha97.com/5646.html</a></p> <p style="padding-bottom: 0px; text-transform: none; background-color: rgb(248,248,248); text-indent: 28px; margin: 10px 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">銆?#32514;?#26440;?#37818;?#38013;?#37510;?/p> <div style="text-transform: none; background-color: rgb(248,248,248); text-indent: 0px; letter-spacing: normal; font: 14px/28px 瀹?#28003;? white-space: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-stroke-width: 0px"> <ol style="list-style: none none outside; padding-bottom: 0px; margin: 0px 0px 0px 55px; padding-left: 0px; padding-right: 0px; word-wrap: break-word; color: rgb(51,51,51); word-break: normal; padding-top: 0px"><li style="list-style: decimal none outside; padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; word-wrap: break-word; color: rgb(51,51,51); word-break: normal; padding-top: 0px"><a style="color: rgb(0,66,118); text-decoration: underline" href="http://os.51cto.com/art/201202/317108.htm" target="_blank">LVS鍩烘湰浠嬬粛</a></li><li style="list-style: decimal none outside; padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; word-wrap: break-word; color: rgb(51,51,51); word-break: normal; padding-top: 0px"><a style="color: rgb(0,66,118); text-decoration: underline" href="http://os.51cto.com/art/201202/317441.htm" target="_blank">LVS+Keepalived鏋勫?#27946;珮鍙敤?#30987;杞?#37735;?#29723;?/a></li><li style="list-style: decimal none outside; padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; word-wrap: break-word; color: rgb(51,51,51); word-break: normal; padding-top: 0px"><a style="color: rgb(0,66,118); text-decoration: underline" href="http://netsecurity.51cto.com/art/201403/434157.htm" target="_blank">Nginx瀹?#37711;?#38320;?#32515;?#37934;旂</a></li><li style="list-style: decimal none outside; padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; word-wrap: break-word; color: rgb(51,51,51); word-break: normal; padding-top: 0px"><a style="color: rgb(0,66,118); text-decoration: underline" href="http://os.51cto.com/art/201404/434930.htm" target="_blank">Nginx閰?#32515;?#37804;?#38003;戒紭鍖栫殑?#26591;娉?/a></li><li style="list-style: decimal none outside; padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; word-wrap: break-word; color: rgb(51,51,51); word-break: normal; padding-top: 0px"><a style="color: rgb(0,66,118); text-decoration: underline" href="http://os.51cto.com/art/201405/437652.htm" target="_blank">Nginx?#22172;瀹氫箟妯?#37735;?#32514;?#37712;欙細鏍?#37817;post鍙?#37825;?#29882;?#37922;?#37714;?#28051;?#37722;屾湇鍔?#37731;?/a></li></ol></div><img src ="http://www.8634070.com/jjshcc/aggbug/426446.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.8634070.com/jjshcc/" target="_blank">Eric_jiang</a> 2015-07-27 15:37 <a href="http://www.8634070.com/jjshcc/archive/2015/07/27/426446.html#Feedback" target="_blank" style="text-decoration:none;">鍙?#29723;?#29831;勮</a></div>]]></description></item><item><title>shell缂?#32459;?#28051;殑date?#25956;娉?/title><link>http://www.8634070.com/jjshcc/archive/2015/07/23/426394.html</link><dc:creator>Eric_jiang</dc:creator><author>Eric_jiang</author><pubDate>Thu, 23 Jul 2015 07:50:00 GMT</pubDate><guid>http://www.8634070.com/jjshcc/archive/2015/07/23/426394.html</guid><wfw:comment>http://www.8634070.com/jjshcc/comments/426394.html</wfw:comment><comments>http://www.8634070.com/jjshcc/archive/2015/07/23/426394.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.8634070.com/jjshcc/comments/commentRss/426394.html</wfw:commentRss><trackback:ping>http://www.8634070.com/jjshcc/services/trackbacks/426394.html</trackback:ping><description><![CDATA[<p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">1銆乨ate --help</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">%% 杈撳嚭%绗?#37721;?a literal %<br />%a 褰撳?#23941;?#29114;殑鏄?#37832;?#32514;?#37712;?locale’s abbreviated weekday name (Sun..Sat)<br />%A 褰撳?#23941;?#29114;殑鏄?#37832;?#37711;?#37712;?locale’s full weekday name, variable length (Sunday..Saturday)<br />%b 褰撳?#23941;?#29114;殑鏈?#28000;?#32514;?#37712;?locale’s abbreviated month name (Jan..Dec)<br />%B 褰撳?#23941;?#29114;殑鏈?#28000;藉叏绉?locale’s full month name, variable length (January..December)<br />%c 褰撳?#23941;?#29114;殑?#31919;璁?#37827;堕棿鏍?#23534;?locale’s date and time (Sat Nov 04 12:02:33 EST 1989)<br />%C n鐧惧勾 century (year divided by 100 and truncated to an integer) [00-99]<br />%d 涓?#28003;嶇殑澶?day of month (01..31)<br />%D 鐭?#37827;堕棿鏍?#23534;?date (mm/dd/yy)<br />%e 鐭?#37837;?#23534;?#28598;?day of month, blank padded ( 1..31)<br />%F 鏂囦欢鏃堕棿鏍?#23534;?same as %Y-%m-%d<br />%g the 2-digit year corresponding to the %V week number<br />%G the 4-digit year corresponding to the %V week number<br />%h same as %b<br />%H 24灏?#37827;?#37714;剁殑灏?#37827;?hour (00..23)<br />%I 12灏?#37827;?#37714;剁殑灏?#37827;?hour (01..12)<br />%j 涓骞?#28051;殑绗?#37713;?#28598;?day of year (001..366)<br />%k 鐭?#37837;?#23534;?4灏?#37827;?#37714;剁殑灏?#37827;?hour ( 0..23)<br />%l 鐭?#37837;?#23534;?2灏?#37827;?#37714;剁殑灏?#37827;?hour ( 1..12)<br />%m 鍙?#28003;嶆湀浠?month (01..12)<br />%M 鍙?#28003;?#37714;?#38333;?minute (00..59)<br />%n 鎹?#29723;?a newline<br />%N 鍗佷嚎鍒嗕箣涓绉?nanoseconds (000000000..999999999)<br />%p 澶?#37712;欑殑褰撳?#23941;?#29114;殑涓?#28051;嬪崍鎸囩 locale’s upper case AM or PM indicator (blank in many locales)<br />%P 灏?#37712;欑殑褰撳?#23941;?#29114;殑涓?#28051;嬪崍鎸囩 locale’s lower case am or pm indicator (blank in many locales)<br />%r 12灏?#37827;?#37714;剁殑鏃堕棿琛?#32448;猴紙鏃?鍒?绉?鍙?#28003;?#38171;?time, 12-hour (hh:mm:ss [AP]M)<br />%R 24灏?#37827;?#37714;剁殑鏃堕棿琛?#32448;?锛?#37827;?鍒?鍙?#28003;?#38171;塼ime, 24-hour (hh:mm)<br />%s ?#22172;鍩虹鏃堕棿 1970-01-01 00:00:00 鍒?#35120;撳?#23942;椂鍒荤殑绉?#37825;?seconds since `00:00:00 1970-01-01 UTC’ (a GNU extension)<br />%S 鍙?#28003;嶇 second (00..60); the 60 is necessary to accommodate a leap second<br />%t 妯?#37722;?#37714;?#29723;?#28003;?tab) a horizontal tab<br />%T 24灏?#37827;?#37714;?#37827;堕棿琛?#32448;?time, 24-hour (hh:mm:ss)<br />%u 鏁?#28699;?#29723;?#32448;虹殑鏄?#37832;?#38171;?#28000;庢槦鏈?#28051;寮濮?1-7锛塪ay of week (1..7); 1 represents Monday<br />%U 涓骞?#28051;殑绗?#37713;?#37723;?#37828;?#37832;熷涓?#23534;濮?week number of year with Sunday as first day of week (00..53)<br />%V 涓骞?#28051;殑绗?#37713;?#37723;?#37828;?#37832;?#28051;涓?#23534;濮?week number of year with Monday as first day of week (01..53)<br />%w 涓鍛?#28051;殑绗?#37713;?#28598;?鏄?#37832;熷涓?#23534;濮?0-6 day of week (0..6); 0 represents Sunday<br />%W 涓骞?#28051;殑绗?#37713;?#37723;?#37828;?#37832;?#28051;涓?#23534;濮?week number of year with Monday as first day of week (00..53)<br />%x 鏈湴鏃?#37832;?#37837;?#23534;?locale’s date representation (mm/dd/yy)<br />%X 鏈湴鏃堕棿鏍?#23534;?locale’s time representation (%H:%M:%S)<br />%y 涓?#28003;嶇殑骞?last two digits of year (00..99)<br />%Y 骞?year (1970…)<br />%z RFC-2822 鏍?#37713;?#37827;堕棿鏍?#23534;?#29723;?#32448;虹殑鍩?RFC-2822 style numeric timezone (-0500) (a nonstandard extension)<br />%Z 鏃堕棿鍩?time zone (e.g., EDT), or nothing if no time zone is determinable</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">By default, date pads numeric fields with zeroes. GNU date recognizes<br />the following modifiers between `%’ and a numeric directive.</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">`-’ (hyphen) do not pad the field<br />`_’ (underscore) pad the field with spaces</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">--------------------------------------------------------------------------------</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">2銆?#28051;浜涚敤娉?/p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">1锛?浠yymmdd?#27537;鏍?#23534;?#26440;撳嚭43澶?#37715;嶇殑褰撳?#23942;椂鍒?/p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">date +%Y%m%d --date='43 days ago' <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr></p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"> <wbr></p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">2锛? ?#31092;璇?#37719;佷嚎鍒嗕箣涓绉?br />date +’%Y%m%d %H:%M:%S.%N’;date +’%Y%m%d %H:%M:%S.%N’;date +’%Y%m%d %H:%M:%S.%N’;date +’%Y%m%d %H:%M:%S.%N’<br /></p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">3锛?鍒涘缓浠?#35120;撳?#23942;?#22549;棿涓?#37826;囦欢鍚嶇殑?#27952;褰?br />mkdir `date +%Y%m%d`</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"> <wbr></p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">4锛?澶囦?#25106;互鏃堕棿鍋?#28051;?#37826;囦欢鍚嶇殑<br />tar -cvf ./htdocs`date +%Y%m%d`.tar ./*</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"> <wbr></p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">5锛?鏄剧?#28888;?#22549;棿鍚?#29882;?#29723;岋紝鍐嶆?#21095;?#34425;洰鍓嶆棩鏈?nbsp;<wbr></p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">date +%T%n%Y%m%d</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"> <wbr></p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">6锛?鍙?#37828;剧?#28888;湀浠戒笌鏃?#37825;?nbsp;<wbr></p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">date +%B%d</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"> <wbr></p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">7锛??#24143;鍙?#28051;?#37723;?#37827;?#37832;?#38171;坉ay,month,year,hour锛?/p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">date -d "-1 week" +%Y%m%d 銆銆</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"> <wbr></p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">8锛??#24143;鍙?4灏?#37827;跺?#23942;棩鏈?/p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">date --date="-24 hour" +%Y%m%d</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"> <wbr></p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">9锛?shell鑴?#37832;?#38322;岄潰璧嬬粰?#24393;閲忓?/p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">date_now=`date +%s`</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"> <wbr></p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">10锛?璁?#32480;?#37813;?#29723;?#28051;娈祍ql鑴?#37832;殑杩?#29723;屾?#22549;棿</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"> <wbr></p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">TIME_BEGIN=$(date '+%s.%N')<br />$sqlcli < queries/q1.3.sql 1>> $FILE_RESULT <wbr><span class="Apple-converted-space"> </span>2>> $FILE_ERROR<br />TIME_END=$(date '+%s.%N')<br />TIME_RUN=$(awk 'BEGIN{print '$TIME_END' - '$TIME_BEGIN'}')</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"> <wbr></p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">11锛?缂?#37712;shell鑴?#37832;?#29825;?#32480;楃?#26127;嚜宸辩敓鏃?#26473;樻湁澶?#28751;戝锛?/p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"> <wbr> <wbr> <wbr><span class="Apple-converted-space"> </span>read -p "Input your birthday(YYYYmmdd):" date1</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">銆銆m=`date --date="$date1" +%m` <wbr> <wbr> <wbr><span class="Apple-converted-space"> </span>#寰?#37714;扮敓鏃殑鏈?/p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">銆銆d=`date --date="$date1" +%d` <wbr> <wbr> <wbr><span class="Apple-converted-space"> </span>#寰?#37714;扮敓鏃殑鏃?/p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">銆銆date_now=`date +%s` <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr><span class="Apple-converted-space"> </span>#寰?#37714;?#35120;撳?#23942;?#22549;棿?#27537;绉?#37706;?/p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">銆銆y=`date +%Y` <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr>#寰?#37714;?#35120;撳?#23942;?#22549;棿?#27537;骞?/p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">銆銆birth=`date --date="$y$m$d" +%s` <wbr> <wbr> <wbr> <wbr> <wbr><span class="Apple-converted-space"> </span>#寰?#37714;?#28000;?#39582;寸殑?#25939;鏃?#37827;?#37832;熺殑绉?#37706;?/p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">銆銆internal=$(($birth-$date_now)) <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr><span class="Apple-converted-space"> </span>#璁?#32480;?#28000;?#37827;?#37714;扮敓鏃?#37827;?#37832;熺殑?#26879;闅?#37827;堕棿</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">銆銆if [ "$internal" -lt "0" ]; then <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr><span class="Apple-converted-space"> </span>#鍒?#37826;?#28000;?#28598;殑?#25939;鏃?#37828;?#37722;?#23480;茶繃</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">銆銆birth=`date --date="$(($y+1))$m$d" +%s` <wbr> <wbr> <wbr> <wbr> <wbr><span class="Apple-converted-space"> </span>#寰?#37714;版槑澶殑?#25939;鏃?#37827;?#37832;?#32457;?#37706;?/p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">銆銆internal=$(($birth-$date_now)) <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr><span class="Apple-converted-space"> </span>#璁?#32480;?#28000;?#28598;?#37714;?#28051;?#28051;涓敓鏃殑?#26879;闅?#37827;堕棿</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">銆銆fi</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">銆銆echo "There is :$((einternal/60/60/24)) days." <wbr> <wbr> <wbr> <wbr> <wbr> <wbr><span class="Apple-converted-space"> </span>#杈撳嚭缁?#37835;滐紝绉?#37817;?#32480;?#28051;哄</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"> <wbr></p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"> <wbr></p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">12锛??#23266;鏄?#28051;?#28000;?#37716;?#37721;?#28003;?#28051;?#23534;澶达紝鍒?#29723;?#32448;鸿?#20349;瀹?#37827;堕棿?#32029;鑰屾?#22549;棿鏍?#23534;?#28051;?MMDDhhmm[[CC]YY][.ss]?#32029;</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">鍏?#28051;?MM 涓烘湀浠斤紝</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">DD 涓烘棩?#32029;</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">hh 涓?#28751;?#37827;讹紝</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">mm 涓?#37714;?#38333;燂紝</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">CC 涓哄勾浠藉墠涓?#28003;?#37825;?#28699;楋紝</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">YY 涓哄勾浠?#37722;?#28051;?#28003;?#37825;?#28699;楋紝</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">ss 涓虹鏁?/p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"> <wbr></p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">13锛?/p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">#鏄剧?#34425;洰鍓嶇殑鏍?#37835;?#28638;佹鏃堕棿?#32029;涔?#37721;?#8220;涓栫?#23678;椂”銆?#37828;?#38011;?#37733;界殑鏍?#37713;?#37827;堕棿?#32029;涔?#37828;?#28051;栫晫鍚勫湴鏃堕棿?#27537;鍙傝?#37837;?#37713;?#37510;?#28051;?#38011;?#28051;?#37733;界殑鏍?#37713;?a style="color: rgb(82,102,115); text-decoration: none" href="http://baike.baidu.com/view/72144.htm" target="_blank"><font style="line-height: 21px; word-wrap: normal; word-break: normal" color="#136ec2">鏃?#23480;?/font></a>涓?涓?#28751;?#37827;讹紝鍗宠嫳鍥界殑褰撳湴鏃堕棿姣?#28051;?#37733;界殑<a style="color: rgb(82,102,115); text-decoration: none" href="http://baike.baidu.com/view/21267.htm" target="_blank"><font style="line-height: 21px; word-wrap: normal; word-break: normal" color="#136ec2">鍖?#27996;?#37827;堕棿</font></a>鏅?灏?#37827;?#37510;?/p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">date -u <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr><br />Thu Sep 28 09:32:04 UTC 2006</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"> <wbr></p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">14锛?淇?#37824;?#37827;堕棿</p> <p style="border-bottom: 0px; text-align: left; border-left: 0px; padding-bottom: 0px; text-transform: none; background-color: rgb(246,246,246); list-style-type: none; text-indent: 0px; margin: 0px 0px 5px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/21px simsun; word-wrap: normal; white-space: normal; color: rgb(73,73,73); word-break: normal; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">date -s<br />鎸?#28699;楃涓叉柟寮忎慨鏀?#37827;堕棿<br />鍙?#28000;?#37721;?#28103;?#37824;?#37827;?#37832;?涓嶄慨鏀?#37827;堕棿,杈撳叆: date -s 2007-08-03<br />鍙?#28103;?#37824;?#37827;堕棿,杈撳叆:date -s 14:15:00<br />鍚屾椂淇?#37824;?#37827;?#37832;?#37827;堕棿,娉剰瑕?#37716;?#37721;?#23534;?#37721;?鏃?#37832;?#28051;?#37827;堕棿?#31651;?#26879;?#28225;涓绌?#37837;?杈撳叆:date -s "2007-08-03 14:15:00"<br /><br />淇?#37824;?#28729;?#37722;?璁板緱杈撳叆:clock -w<br />鎶?#32495;?#32513;?#37827;堕棿鍐欏叆CMOS</p><img src ="http://www.8634070.com/jjshcc/aggbug/426394.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.8634070.com/jjshcc/" target="_blank">Eric_jiang</a> 2015-07-23 15:50 <a href="http://www.8634070.com/jjshcc/archive/2015/07/23/426394.html#Feedback" target="_blank" style="text-decoration:none;">鍙?#29723;?#29831;勮</a></div>]]></description></item><item><title>java GC鏃?#36423;?#37721;?#37825;?#29825;?#32515;?/title><link>http://www.8634070.com/jjshcc/archive/2015/07/23/426391.html</link><dc:creator>Eric_jiang</dc:creator><author>Eric_jiang</author><pubDate>Thu, 23 Jul 2015 06:30:00 GMT</pubDate><guid>http://www.8634070.com/jjshcc/archive/2015/07/23/426391.html</guid><wfw:comment>http://www.8634070.com/jjshcc/comments/426391.html</wfw:comment><comments>http://www.8634070.com/jjshcc/archive/2015/07/23/426391.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.8634070.com/jjshcc/comments/commentRss/426391.html</wfw:commentRss><trackback:ping>http://www.8634070.com/jjshcc/services/trackbacks/426391.html</trackback:ping><description><![CDATA[<p style="text-transform: none; background-color: rgb(249,249,245); text-indent: 0px; margin: 0px 0px 20px; letter-spacing: normal; font: 16px/27px 'Microsoft Yahei', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', sans-serif; white-space: normal; color: rgb(44,62,80); word-spacing: 0px; -webkit-text-stroke-width: 0px">澧?#37716;GC鐩?#37711;?#38315;夐?#30328;細</p> <div style="text-transform: none; background-color: rgb(249,249,245); text-indent: 0px; letter-spacing: normal; font: 16px/27px 'Microsoft Yahei', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', sans-serif; white-space: normal; color: rgb(44,62,80); word-spacing: 0px; -webkit-text-stroke-width: 0px" class="md-section-divider"></div><pre style="background-image: none; border-bottom: 0px solid; border-left: 0px solid; padding-bottom: 9px; text-transform: none; text-indent: 0px; margin: 0px 0px 20px; padding-left: 9px; background-attachment: scroll; letter-spacing: normal; padding-right: 9px; display: block; font: 14px/20px Monaco, Menlo, Consolas, 'Courier New', monospace; word-wrap: break-word; white-space: pre-wrap; background-position: 0px 0px; color: rgb(51,51,51); word-break: break-all; border-top: 0px solid; border-right: 0px solid; word-spacing: 0px; padding-top: 9px; -webkit-text-stroke-width: 0px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; box-shadow: rgba(255, 255, 255, 0.0980392) 0px 1px 2px inset, rgba(102, 128, 153, 0.0470588) 45px 0px 0px inset, rgba(102, 128, 153, 0.0470588) 0px 1px 0px" class="prettyprint linenums prettyprinted"><ol style="padding-bottom: 0px; margin: 0px 0px 0px 35px; padding-left: 0px; padding-right: 0px; color: ; padding-top: 0px" class="linenums"><li style="line-height: 20px; padding-left: 15px" class="L0"><code style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; background-color: transparent; padding-left: 0px; padding-right: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: pre-wrap; color: ; font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 0px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px"><span style="color: rgb(102,102,0)" class="pun">-</span><span style="color: rgb(0,0,0)" class="pln">verbose</span><span style="color: rgb(102,102,0)" class="pun">:</span><span style="color: rgb(0,0,0)" class="pln">gc</span></code></li><li style="line-height: 20px; padding-left: 15px" class="L1"><code style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; background-color: transparent; padding-left: 0px; padding-right: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: pre-wrap; color: ; font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 0px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px"><span style="color: rgb(102,102,0)" class="pun">-</span><span style="color: rgb(0,0,0)" class="pln">XX</span><span style="color: rgb(102,102,0)" class="pun">:+</span><span style="color: rgb(102,0,102)" class="typ">UseGCLogFileRotation</span></code></li><li style="line-height: 20px; padding-left: 15px" class="L2"><code style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; background-color: transparent; padding-left: 0px; padding-right: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: pre-wrap; color: ; font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 0px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px"><span style="color: rgb(102,102,0)" class="pun">-</span><span style="color: rgb(0,0,0)" class="pln">XX</span><span style="color: rgb(102,102,0)" class="pun">:</span><span style="color: rgb(102,0,102)" class="typ">NumberOfGCLogFiles</span><span style="color: rgb(102,102,0)" class="pun">=</span><span style="color: rgb(0,102,102)" class="lit">5</span></code></li><li style="line-height: 20px; padding-left: 15px" class="L3"><code style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; background-color: transparent; padding-left: 0px; padding-right: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: pre-wrap; color: ; font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 0px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px"><span style="color: rgb(102,102,0)" class="pun">-</span><span style="color: rgb(0,0,0)" class="pln">XX</span><span style="color: rgb(102,102,0)" class="pun">:</span><span style="color: rgb(102,0,102)" class="typ">GCLogFileSize</span><span style="color: rgb(102,102,0)" class="pun">=</span><span style="color: rgb(0,102,102)" class="lit">512K</span></code></li><li style="line-height: 20px; padding-left: 15px" class="L4"><code style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; background-color: transparent; padding-left: 0px; padding-right: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: pre-wrap; color: ; font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 0px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px"><span style="color: rgb(102,102,0)" class="pun">-</span><span style="color: rgb(0,0,0)" class="pln">XX</span><span style="color: rgb(102,102,0)" class="pun">:+</span><span style="color: rgb(102,0,102)" class="typ">PrintGCDetails</span></code></li><li style="line-height: 20px; padding-left: 15px" class="L5"><code style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; background-color: transparent; padding-left: 0px; padding-right: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: pre-wrap; color: ; font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 0px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px"><span style="color: rgb(102,102,0)" class="pun">-</span><span style="color: rgb(0,0,0)" class="pln">XX</span><span style="color: rgb(102,102,0)" class="pun">:+</span><span style="color: rgb(102,0,102)" class="typ">PrintGCTimeStamps</span></code></li><li style="line-height: 20px; padding-left: 15px" class="L6"><code style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; background-color: transparent; padding-left: 0px; padding-right: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: pre-wrap; color: ; font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 0px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px"><span style="color: rgb(102,102,0)" class="pun">-</span><span style="color: rgb(0,0,0)" class="pln">XX</span><span style="color: rgb(102,102,0)" class="pun">:+</span><span style="color: rgb(102,0,102)" class="typ">PrintGCDateStamps</span></code></li><li style="line-height: 20px; padding-left: 15px" class="L7"><code style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; background-color: transparent; padding-left: 0px; padding-right: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: pre-wrap; color: ; font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 0px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px"><span style="color: rgb(102,102,0)" class="pun">-</span><span style="color: rgb(0,0,0)" class="pln">XX</span><span style="color: rgb(102,102,0)" class="pun">:+</span><span style="color: rgb(102,0,102)" class="typ">PrintTenuringDistribution</span></code></li><li style="line-height: 20px; padding-left: 15px" class="L8"><code style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; background-color: transparent; padding-left: 0px; padding-right: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: pre-wrap; color: ; font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 0px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px"><span style="color: rgb(102,102,0)" class="pun">-</span><span style="color: rgb(0,0,0)" class="pln">XX</span><span style="color: rgb(102,102,0)" class="pun">:+</span><span style="color: rgb(102,0,102)" class="typ">PrintGCApplicationStoppedTime</span></code></li><li style="line-height: 20px; padding-left: 15px" class="L9"><code style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; background-color: transparent; padding-left: 0px; padding-right: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: pre-wrap; color: ; font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 0px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px"><span style="color: rgb(102,102,0)" class="pun">-</span><span style="color: rgb(102,0,102)" class="typ">Xloggc</span><span style="color: rgb(102,102,0)" class="pun">:</span><span style="color: rgb(0,136,0)" class="str">/var/</span><span style="color: rgb(0,0,0)" class="pln">app</span><span style="color: rgb(102,102,0)" class="pun">/</span><span style="color: rgb(0,0,0)" class="pln">log</span><span style="color: rgb(102,102,0)" class="pun">/</span><span style="color: rgb(102,0,102)" class="typ">Push</span><span style="color: rgb(102,102,0)" class="pun">-</span><span style="color: rgb(0,0,0)" class="pln">server</span><span style="color: rgb(102,102,0)" class="pun">/</span><span style="color: rgb(0,0,0)" class="pln">gc</span><span style="color: rgb(102,102,0)" class="pun">.</span><span style="color: rgb(0,0,0)" class="pln">log</span></code></li></ol></pre> <ol style="padding-bottom: 0px; text-transform: none; background-color: rgb(249,249,245); text-indent: 0px; margin: 0px 0px 10px 25px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 16px/27px 'Microsoft Yahei', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', sans-serif; white-space: normal; color: rgb(44,62,80); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><li style="line-height: 27px">濡?#37835;?#28051;?#38003;界瀹?#37813;?#28214;鍐?#28699;橈紝浣跨敤?#22172;鍔jvm?#22172;鍔皟浼橈紱</li><li style="line-height: 27px">澶?#38007;寸瀹?#37813;?#28214;鍐?#28699;?#37722;庯紝浣跨敤-Xmx -Xms璁?#32515;?#37739;嗗灏忥紱</li><li style="line-height: 27px">瑙傚療GC log纭?#28729;FullGC鍚庡墿浣欏?#21975;灏忥紙鍗?#28051;烘椿璺?#37825;?#37817;?#28598;?#28751;忥級?#32049;</li><li style="line-height: 27px">鏁?#28051;?#37739;嗗灏?#28729;?#28051;鸿?#39582;?#28000;?#23090;?#29882;?#37825;?#37817;?#28598;?#28751;忕殑3-4鍊嶏紱</li><li style="line-height: 27px">姘?#28052;?#29999;?#28598;?#28751;忓簲璇?#23011;旀案涔?#29999;?#23090;?#29882;?#37825;?#37817;?#28598;?.2~1.5鍊嶏紱</li><li style="line-height: 27px">鏂扮敓浠?#32460;洪棿搴?#29831;?#28051;鸿?#39582;?#28000;?#32460;洪棿娲?#29882;?#37825;?#37817;殑1~1.5鍊嶏紱</li><li style="line-height: 27px">閫?#26473;噒op鍛戒护瑙傚療鏍?#37719;犵敤绌洪棿銆?#37929;?#37818;?#37712;?#28699;?#37719;犵敤绌洪棿?#32029;鍐?#28729;?#37813;?#28214;鏈哄櫒鍐?#28699;?#28598;?#28751;忥紱</li><li style="line-height: 27px">鏂扮敓浠?#28598;?#28751;?#37712;?#28729;?#27996;Minor GC?#27537;鍛?#37832;?#37724;屾?#22549;?#21281;紝缂?#37933;?#37826;扮敓浠?#28598;?#28751;?#37721;?#28000;噺灏?#37707;?#26916;挎?#22549;?#21281;紝浣嗘槸澧?#37716;?#27996;GC棰戠?#22263;紱鍦皟鏁?#37826;扮敓浠?#28598;?#28751;?#37827;讹紝灏?#38322;忎繚鎸佽?#39582;?#28000;?#28598;?#28751;?#28051;嶅彉?#32049;</li><li style="line-height: 27px">鑰?#39582;?#28000;?#28598;?#28751;?#28051;嶅簲璇?#28751;?#27996;庢椿璺?#37825;?#37817;殑1.5鍊嶏紱鏂扮敓浠?#32460;洪棿鑷?#28751;?#28051;java鍫嗗灏忕殑10%?#32049;澧?#37716;犲?#21975;灏?#37827;?#38171;屾敞?#21104;涓?#29781;佽秴杩?#37721;敤鐗?#37918;嗗唴瀛?#37825;帮紱</li><li style="line-height: 27px">浠巘hroughput鏀堕?#21975;櫒杩佺?#35826;埌CMS鏃讹紝?#28214;瑕?#28751;嗚?#39582;?#28000;?#32460;洪棿澧?#37716;?0%~30%?#32049;</li><li style="line-height: 27px">鏂扮敓浠?#37714;?#28051;篍den鍜孲urvivor涓?#38318;?#37714;嗭紝Survivor鍙?#28000;?#38315;?#26473;?code style="border-bottom: 0px; border-left: 0px; padding-bottom: 2px; background-color: rgb(214,219,223); padding-left: 4px; padding-right: 4px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: nowrap; color: rgb(44,62,80); font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 2px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px">-XX:SurvivorRatio=xx</code>?#28533;鎺?#37714;讹紝瀵?#25652;旂殑澶?#28751;?#28051;?code style="border-bottom: 0px; border-left: 0px; padding-bottom: 2px; background-color: rgb(214,219,223); padding-left: 4px; padding-right: 4px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: nowrap; color: rgb(44,62,80); font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 2px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px">-Xmn<value>/(ratio+2)</code>?#32049;</li><li style="line-height: 27px">閫?#26473;?code style="border-bottom: 0px; border-left: 0px; padding-bottom: 2px; background-color: rgb(214,219,223); padding-left: 4px; padding-right: 4px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: nowrap; color: rgb(44,62,80); font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 2px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px">-XX:MaxTenuringThreshold=<n></code>?#28533;?#23514;瀹?#37829;嬪崌闃堝?#38171;?#39582;撮緞锛夛紝n涓?~15?#31651;?#26879;?#32049;</li><li style="line-height: 27px">鏈?#37832;Survivor绌洪棿涓哄墿浣?#37804;诲瓨娲诲?#30789;薄澶?#28751;忕殑2鍊?age=1?#32049;</li><li style="line-height: 27px">娉?#37808;忚皟鑺Survivor澶?#28751;?#37827;讹紝淇?#37816;Eden澶?#28751;?#28051;嶅彉?#32049;</li><li style="line-height: 27px">濡?#37835;Survivor绌洪棿瓒?#28598;熷?#32029;涓?#28725;硅薄澶?#38318;?#37714;嗗?#33333;湭鍒拌揪鑰?#39582;?#28000;紝閭?#28052;?#28751;?#37721;?#28000;?#28751;嗘?#23338;?#22247;?#23544;邯?#23514;瀹氱殑瓒?#28598;熷锛?5锛?#37510;?#37734;Eden涓嶴urvivor?#31651;?#26879;澶?#37714;?#37724;孋MS鑰?#39582;?#28000;?#32460;洪棿鍘嬬缉?#31651;?#26879;锛屾垜浠?#28729;佹効閫夋嫨鍓嶈咃紱</li><li style="line-height: 27px">CMS蹇呴鑳戒互瀵硅薄浠?#37826;扮敓浠?#37819;愬崌鍒?#38000;?#39582;?#28000;殑鍚岀?#22800;熷害瀵?#38000;?#39582;?#28000;?#28051;殑瀵硅薄?#32344;琛屾?#22549;?#21997;紝鍚?#37714;欙紝灏变細澶?#38315;燂紱</li><li style="line-height: 27px">濡?#37835;?#29785;傚療鍒?concurrent mode failures'锛屾剰鍛崇潃澶?#38315;?#23480;?#32513;?#37721;戠敓?#32029;蹇呴?#35826;噺灏?code style="border-bottom: 0px; border-left: 0px; padding-bottom: 2px; background-color: rgb(214,219,223); padding-left: 4px; padding-right: 4px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: nowrap; color: rgb(44,62,80); font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 2px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px">-XX:CMSInitiatingOccupancyFraction=<percent></code>?#27537;鍊硷紱</li><li style="line-height: 27px">浣跨敤涓?#26473;伴夐?#22317;殑鍚屾椂锛屾渶濂?#37722;屾椂浣跨敤<code style="border-bottom: 0px; border-left: 0px; padding-bottom: 2px; background-color: rgb(214,219,223); padding-left: 4px; padding-right: 4px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: nowrap; color: rgb(44,62,80); font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 2px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px">-XX:+UseCMSInitiatingOccupancyOnly</code>?#32029;寮?#37714;?#28003;跨敤璇?#23011;斾緥,璇?#23011;?#28186;嬬殑澶?#28751;忓簲璇?#28598;?#27996;?#38000;?#39582;?#28000;?#37719;犵敤绌洪棿鍜屾椿璺?#37825;?#37817;?#28598;?#28751;忎箣姣旓紝涓鑸?#38000;岃<code style="border-bottom: 0px; border-left: 0px; padding-bottom: 2px; background-color: rgb(214,219,223); padding-left: 4px; padding-right: 4px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: nowrap; color: rgb(44,62,80); font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 2px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px">鑰?#39582;?#28000;?#28598;?#28751;?璇?#23011;斾緥>1.5*鑰?#39582;?#28000;?#23090;?#29882;?#37825;?#37817;?#28598;?#28751;?/code>?#32049;</li><li style="line-height: 27px">浣跨敤<code style="border-bottom: 0px; border-left: 0px; padding-bottom: 2px; background-color: rgb(214,219,223); padding-left: 4px; padding-right: 4px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: nowrap; color: rgb(44,62,80); font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 2px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px">-XX:+ExplicitGCInvokesConcurrentAndUnloadsCloasses</code>鍙?#28000;?#28003;跨敤CMS?#32344;琛屾樉寮?#37736;?#37734;惧?#28852;敹锛?code style="border-bottom: 0px; border-left: 0px; padding-bottom: 2px; background-color: rgb(214,219,223); padding-left: 4px; padding-right: 4px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: nowrap; color: rgb(44,62,80); font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 2px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px">System.gc()</code>)?#32049;閫?#26473;?code style="border-bottom: 0px; border-left: 0px; padding-bottom: 2px; background-color: rgb(214,219,223); padding-left: 4px; padding-right: 4px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: nowrap; color: rgb(44,62,80); font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 2px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px">-XX:+DisableExplicitGC</code>鍏?#38338;?#37828;剧?#21700;瀮鍦惧?#28852;敹锛堟?#24227;敤锛夛紱</li><li style="line-height: 27px">浣跨敤<code style="border-bottom: 0px; border-left: 0px; padding-bottom: 2px; background-color: rgb(214,219,223); padding-left: 4px; padding-right: 4px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: nowrap; color: rgb(44,62,80); font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 2px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px">-XX:+CMSClassUnloadingEnabled</code>鎵撳紑姘?#28052;?#29999;?#37736;?#37734;惧?#28852;敹?#32029;浣跨敤<code style="border-bottom: 0px; border-left: 0px; padding-bottom: 2px; background-color: rgb(214,219,223); padding-left: 4px; padding-right: 4px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: nowrap; color: rgb(44,62,80); font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 2px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px">-XX:+CMSPermGenSweepingEnabled</code>鎵撳紑CMS瀵规案涔?#29999;殑鎵?#37819;忥紱浣跨敤<code style="border-bottom: 0px; border-left: 0px; padding-bottom: 2px; background-color: rgb(214,219,223); padding-left: 4px; padding-right: 4px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: nowrap; color: rgb(44,62,80); font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 2px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px">-XX:CMSInitiatingPermOccupancyFraction=<perscent></code>婵娲诲?#28852;敹姣斾緥闃堝硷紱</li><li style="line-height: 27px">浣跨敤<code style="border-bottom: 0px; border-left: 0px; padding-bottom: 2px; background-color: rgb(214,219,223); padding-left: 4px; padding-right: 4px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: nowrap; color: rgb(44,62,80); font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 2px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px">-XX:ParallelGCThreads=<n></code>鎺?#37714;?#37813;?#37819;忕?#36328;鏁帮紱浣跨敤<code style="border-bottom: 0px; border-left: 0px; padding-bottom: 2px; background-color: rgb(214,219,223); padding-left: 4px; padding-right: 4px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: nowrap; color: rgb(44,62,80); font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 2px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px">-XX:+CMSScavengeBeforeRemark</code>寮?#37714;?#38322;?#37826;?#37837;?#29825;板墠?#32344;琛?#28051;娆MinorGC?#32049;濡?#37835;?#37922;?#28598;?#38322;忕殑寮曠敤瀵硅薄鎴?#37721;?#32513;?#32513;撳?#30789;薄瑕?#28598;?#37918;嗭紝浣跨敤<code style="border-bottom: 0px; border-left: 0px; padding-bottom: 2px; background-color: rgb(214,219,223); padding-left: 4px; padding-right: 4px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: nowrap; color: rgb(44,62,80); font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 2px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px">-XX:+ParallelRefProcEnabled</code>?#32049;</li><li style="line-height: 27px">CMS?#23512;?#23277;Minor GC鎵甯潵?#27537;寮閿搴?#29831;?#28751;?#27996;?0%?#32049;</li><li style="line-height: 27px">濡?#37835;?#32514;?#28751;?#38336;挎?#22549;棿?#30367;浼樼殑鏉欢?#32029;瀹?#37711;捣瑙侊紝鍙?#28000;?#28003;跨敤G1?#32029;浠?#29825;?#32515;?#28641;?#28051;嬪弬鏁?#37719;?#37721;細</li></ol> <div style="text-transform: none; background-color: rgb(249,249,245); text-indent: 0px; letter-spacing: normal; font: 16px/27px 'Microsoft Yahei', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', sans-serif; white-space: normal; color: rgb(44,62,80); word-spacing: 0px; -webkit-text-stroke-width: 0px" class="md-section-divider"></div><pre style="background-image: none; border-bottom: 0px solid; border-left: 0px solid; padding-bottom: 9px; text-transform: none; text-indent: 0px; margin: 0px 0px 20px; padding-left: 9px; background-attachment: scroll; letter-spacing: normal; padding-right: 9px; display: block; font: 14px/20px Monaco, Menlo, Consolas, 'Courier New', monospace; word-wrap: break-word; white-space: pre-wrap; background-position: 0px 0px; color: rgb(51,51,51); word-break: break-all; border-top: 0px solid; border-right: 0px solid; word-spacing: 0px; padding-top: 9px; -webkit-text-stroke-width: 0px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; box-shadow: rgba(255, 255, 255, 0.0980392) 0px 1px 2px inset, rgba(102, 128, 153, 0.0470588) 45px 0px 0px inset, rgba(102, 128, 153, 0.0470588) 0px 1px 0px" class="prettyprint linenums prettyprinted"><ol style="padding-bottom: 0px; margin: 0px 0px 0px 35px; padding-left: 0px; padding-right: 0px; color: ; padding-top: 0px" class="linenums"><li style="line-height: 20px; padding-left: 15px" class="L0"><code style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; background-color: transparent; padding-left: 0px; padding-right: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: pre-wrap; color: ; font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 0px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px"><span style="color: rgb(102,102,0)" class="pun">-</span><span style="color: rgb(0,0,0)" class="pln">d64</span></code></li><li style="line-height: 20px; padding-left: 15px" class="L1"><code style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; background-color: transparent; padding-left: 0px; padding-right: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: pre-wrap; color: ; font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 0px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px"><span style="color: rgb(102,102,0)" class="pun">-</span><span style="color: rgb(102,0,102)" class="typ">Xmx5g</span></code></li><li style="line-height: 20px; padding-left: 15px" class="L2"><code style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; background-color: transparent; padding-left: 0px; padding-right: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: pre-wrap; color: ; font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 0px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px"><span style="color: rgb(102,102,0)" class="pun">-</span><span style="color: rgb(102,0,102)" class="typ">Xms5g</span></code></li><li style="line-height: 20px; padding-left: 15px" class="L3"><code style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; background-color: transparent; padding-left: 0px; padding-right: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: pre-wrap; color: ; font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 0px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px"><span style="color: rgb(102,102,0)" class="pun">-</span><span style="color: rgb(0,0,0)" class="pln">XX</span><span style="color: rgb(102,102,0)" class="pun">:</span><span style="color: rgb(102,0,102)" class="typ">PermSize</span><span style="color: rgb(102,102,0)" class="pun">=</span><span style="color: rgb(0,102,102)" class="lit">100m</span></code></li><li style="line-height: 20px; padding-left: 15px" class="L4"><code style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; background-color: transparent; padding-left: 0px; padding-right: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: pre-wrap; color: ; font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 0px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px"><span style="color: rgb(102,102,0)" class="pun">-</span><span style="color: rgb(0,0,0)" class="pln">XX</span><span style="color: rgb(102,102,0)" class="pun">:</span><span style="color: rgb(102,0,102)" class="typ">MaxPermSize</span><span style="color: rgb(102,102,0)" class="pun">=</span><span style="color: rgb(0,102,102)" class="lit">100m</span></code></li><li style="line-height: 20px; padding-left: 15px" class="L5"><code style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; background-color: transparent; padding-left: 0px; padding-right: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: pre-wrap; color: ; font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 0px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px"><span style="color: rgb(102,102,0)" class="pun">-</span><span style="color: rgb(0,0,0)" class="pln">XX</span><span style="color: rgb(102,102,0)" class="pun">:</span><span style="color: rgb(102,0,102)" class="typ">MaxDirectMemorySize</span><span style="color: rgb(102,102,0)" class="pun">=</span><span style="color: rgb(0,102,102)" class="lit">1g</span></code></li><li style="line-height: 20px; padding-left: 15px" class="L6"><code style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; background-color: transparent; padding-left: 0px; padding-right: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: pre-wrap; color: ; font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 0px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px"><span style="color: rgb(102,102,0)" class="pun">-</span><span style="color: rgb(0,0,0)" class="pln">XX</span><span style="color: rgb(102,102,0)" class="pun">:+</span><span style="color: rgb(102,0,102)" class="typ">UseG1GC</span></code></li><li style="line-height: 20px; padding-left: 15px" class="L7"><code style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; background-color: transparent; padding-left: 0px; padding-right: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; white-space: pre-wrap; color: ; font-size: 14px; border-top: 0px; border-right: 0px; padding-top: 0px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px"><span style="color: rgb(102,102,0)" class="pun">-</span><span style="color: rgb(0,0,0)" class="pln">XX</span><span style="color: rgb(102,102,0)" class="pun">:</span><span style="color: rgb(102,0,102)" class="typ">MaxGCPauseMillis</span><span style="color: rgb(102,102,0)" class="pun">=</span><span style="color: rgb(0,102,102)" class="lit">80</span></code></li></ol></pre> <p style="text-transform: none; background-color: rgb(249,249,245); text-indent: 0px; margin: 0px 0px 20px; letter-spacing: normal; font: 16px/27px 'Microsoft Yahei', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', sans-serif; white-space: normal; color: rgb(44,62,80); word-spacing: 0px; -webkit-text-stroke-width: 0px">G1涓?#36423;呮?#24227;璁?#32515;?#37826;扮敓浠?#28598;?#28751;忥紝鍏惰嚜鍔皟浼?#28052;?#37719;?#37714;嗗彲闈紝瀵?#27996;?#37707;?#26916;挎?#22549;棿寰寰鍦?#38336;挎?#22549;棿杩?#29723;?#37722;?#37721;?#28000;揪鍒伴?#21228;湡鏁?#37835;滐紱瀵?#37722;?#37722;?#38322;忎紭鍏堢殑搴旂敤?#32029;鍙?#38003;戒?#23942;槸閭?#28052;?#37828;庢樉銆?/p><img src ="http://www.8634070.com/jjshcc/aggbug/426391.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.8634070.com/jjshcc/" target="_blank">Eric_jiang</a> 2015-07-23 14:30 <a href="http://www.8634070.com/jjshcc/archive/2015/07/23/426391.html#Feedback" target="_blank" style="text-decoration:none;">鍙?#29723;?#29831;勮</a></div>]]></description></item><item><title>Linux traceroute鍛戒护璇?#29785;?#37724;?#28003;跨敤?#32229;瀛?#38171;?#26473;借釜璺?#37922;变俊鎭?#38171;?/title><link>http://www.8634070.com/jjshcc/archive/2015/07/21/426361.html</link><dc:creator>Eric_jiang</dc:creator><author>Eric_jiang</author><pubDate>Tue, 21 Jul 2015 06:06:00 GMT</pubDate><guid>http://www.8634070.com/jjshcc/archive/2015/07/21/426361.html</guid><wfw:comment>http://www.8634070.com/jjshcc/comments/426361.html</wfw:comment><comments>http://www.8634070.com/jjshcc/archive/2015/07/21/426361.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.8634070.com/jjshcc/comments/commentRss/426361.html</wfw:commentRss><trackback:ping>http://www.8634070.com/jjshcc/services/trackbacks/426361.html</trackback:ping><description><![CDATA[<div id="art_desc">閫?#26473;噒raceroute鎴?#28000;?#37721;?#28000;煡閬撲俊鎭?#28000;?#28003;犵殑璁?#32480;?#37832;?#37714;?#27996;掕缃?#37721;?#28051;绔殑涓?#37832;烘槸璧扮殑浠涔?#29882;?#23536;?#37510;?#35120;撶劧姣?#23046;?#37825;?#37817;寘鐢辨煇涓鍚屾牱?#27537;鍑哄?#25120;偣锛坰ource锛?#37714;拌揪鏌?#28051;鍚屾牱?#27537;?#27952;?#27537;?#28276;(destination)璧扮殑璺?#23536;勫彲鑳戒細涓?#28051;鏍凤紝浣嗗?#28888;湰涓婃潵璇?#28598;?#38318;?#37714;?#37827;跺?#37813;璧扮殑璺?#37922;?#37828;?#37929;?#37722;岀殑</div><br /><br /> <p>linux绯?#32513;?#28051;?#38171;屾垜浠?#32457;颁箣涓簍raceroute,鍦MS Windows涓?#28051;簍racert銆?traceroute閫?#26473;?#37721;?#38315;?#28751;忕殑鏁?#37817;寘鍒扮洰?#27537;璁惧?#22249;洿鍒板叾杩?#37733;?#38171;屾潵?#31092;閲?#37711;堕渶瑕?#28598;?#38336;挎?#22549;棿銆?#28051;鏉?#29882;?#23536;?#28051;婄殑姣?#28051;?#29825;惧?#22098;raceroute瑕佹祴3娆?#37510;?#26440;撳嚭缁?#37835;?#28051;寘?#23277;姣?#23046;祴璇曠殑鏃堕棿(ms)鍜?#29825;惧?#22249;殑鍚嶇锛?#28641;傛湁?#27537;璇?#38171;?#37721;?#37711;IP?#28276;鍧銆?/p> <p>鍦?#28598;?#28598;?#37825;版儏鍐?#28051;?#38171;屾垜浠細鍦linux涓?#37832;虹郴缁?#28051;嬶紝鐩?#37818;?#37813;?#29723;?#37723;戒护琛岋細traceroute hostname</p> <p>鑰屽湪Windows绯?#32513;?#28051;嬫槸鎵?#29723;宼racert?#27537;鍛戒护?#32048; tracert hostname</p> <p><strong>1.鍛戒护鏍?#23534;忥細</strong></p> <p>traceroute[鍙?#37825;][涓?#37832;]</p> <p><strong>2.鍛戒护鍔?#38003;斤細</strong></p> <p>traceroute鎸囦护璁?#28003;?#26473;借釜缃戠粶鏁?#37817;寘?#27537;璺?#37922;?#38315;?#23536;勶紝棰勮鏁?#37817;寘澶?#28751;?#37828;?0Bytes?#32029;?#25956;鎴?#37721;?#37721;?#29723;?#29825;?#32515;?#37510;?/p> <p>?#21503;浣撳弬鏁?#37837;?#23534;忥細traceroute [-dFlnrvx][-f<瀛?#23090;?#37825;板?gt;][-g<缃?#37711;?gt;...][-i<缃戠粶鐣岄潰>][-m<瀛?#23090;?#37825;板?gt;][-p<閫氫俊绔彛>][-s<?#28533;婧愬湴鍧>][-t<?#28231;鍔?#32491;诲瀷>][-w<瓒?#37827;剁鏁?gt;][涓?#37832;?#37722;嶇鎴朓P?#28276;鍧][鏁?#37817;寘澶?#28751;廬<br /></p> <p><strong>3.鍛戒护鍙?#37825;帮細</strong></p> <p>-d 浣跨敤Socket?#30512;绾殑鎺?#38335;欏姛鑳?#37510;?/p> <p>-f 璁?#32515;?#32471;?#28051;涓?#22955;?#31092;鏁?#37817;寘?#27537;瀛?#23090;?#37825;板糡TL?#27537;澶?#28751;?#37510;?/p> <p>-F 璁?#32515;?#37717;跨鏂?#28003;?#37510;?/p> <p>-g 璁?#32515;潵?#31790;璺?#37922;?#32515;?#37711;?#38171;屾渶澶?#37721;?#29825;?#32515;?涓?#37510;?/p> <p>-i 浣跨敤?#23514;瀹氱殑缃戠粶鐣岄潰閫?#37713;?#37825;?#37817;寘銆?/p> <p>-I 浣跨敤ICMP鍥?#25652;?#37721;?#28000;UDP璧?#37826;欎俊鎭?#37510;?/p> <p>-m 璁?#32515;?#22955;?#31092;鏁?#37817;寘?#27537;鏈澶?#28699;?#23090;?#37825;板糡TL?#27537;澶?#28751;?#37510;?/p> <p>-n 鐩?#37818;?#28003;跨敤IP?#28276;鍧鑰岄潪涓?#37832;?#37722;嶇銆?/p> <p>-p 璁?#32515;UDP浼?#26440;撳崗璁殑閫氫俊绔彛銆?/p> <p>-r 蹇界暐鏅?#38315;氱殑Routing Table?#32029;鐩?#37818;?#28751;?#37825;?#37817;寘閫?#37714;?#26473;滅涓?#37832;?#28051;?#37510;?/p> <p>-s 璁?#32515;?#37832;湴涓?#37832;?#38315;?#37713;?#37825;?#37817;寘?#27537;IP?#28276;鍧銆?/p> <p>-t 璁?#32515;?#22955;?#31092;鏁?#37817;寘?#27537;TOS鏁板?#37510;?/p> <p>-v 璇?#32513;嗘?#21095;?#28888;?#22246;护?#27537;鎵?#29723;?#26473;囩銆?/p> <p>-w 璁?#32515;?#32475;?#23536;?#26473;滅涓?#37832;哄洖鎶殑鏃堕棿銆?/p> <p>-x 寮鍚?#37812;?#37711;?#38338;?#37825;?#37817;寘?#27537;姝?#32429;?#37804;?#22955;?#29529;銆?/p> <p><strong>4.浣跨敤瀹炰緥?#32048;</strong></p> <p><strong>瀹炰緥1?#32048;traceroute ?#25956;娉曠畝鍗?#37510;?#37832;甯哥敤?#27537;?#25956;娉?/strong></p> <p>鍛戒护?#32048;traceroute www.baidu.com </p> <p>杈撳?#29492;細<br />[root@localhost ~]# traceroute www.baidu.com<br />traceroute to www.baidu.com (61.135.169.125), 30 hops max, 40 byte packets<br />1 192.168.74.2 (192.168.74.2) 2.606 ms 2.771 ms 2.950 ms<br />2 211.151.56.57 (211.151.56.57) 0.596 ms 0.598 ms 0.591 ms<br />3 211.151.227.206 (211.151.227.206) 0.546 ms 0.544 ms 0.538 ms<br />4 210.77.139.145 (210.77.139.145) 0.710 ms 0.748 ms 0.801 ms<br />5 202.106.42.101 (202.106.42.101) 6.759 ms 6.945 ms 7.107 ms<br />6 61.148.154.97 (61.148.154.97) 718.908 ms * bt-228-025.bta.net.cn (202.106.228.25) 5.177 ms<br />7 124.65.58.213 (124.65.58.213) 4.343 ms 4.336 ms 4.367 ms<br />8 202.106.35.190 (202.106.35.190) 1.795 ms 61.148.156.138 (61.148.156.138) 1.899 ms 1.951 ms<br />9 * * *<br />30 * * *<br />[root@localhost ~]# <br /></p> <p> </p> <p>璇存?#24239;細</p> <p>璁?#35120;?#37816;夊簭鍒?#37721;?#28000;?寮濮?#38171;屾瘡涓?#32510;?#35120;?#28751;?#37828;?#28051;璺?锛屾瘡璺?#29723;?#32448;?#28051;涓?#32515;?#37711;?#38171;屾垜浠?#37930;嬪埌姣?#29723;屾湁涓?#28051;?#37827;堕棿?#32029;鍗?#28003;嶆槸 ms?#32029;鍏?#28729;?#28751;?#37828;?q?#27537;?#31919;璁?#37721;?#37825;?#37510;?#37818;祴鏁?#37817;寘鍚?#23011;?#28051;?#32515;?#37711;?#37721;?#38315;?#28051;?#28051;?#37825;?#37817;寘鍚庯紝缃?#37711;?#37725;嶅簲鍚?#26473;?#37733;炵殑鏃堕棿?#32049;濡?#37835;滄偍?#25956; traceroute -q 4 www.58.com ?#32029;琛?#32448;?#37722;?#23011;?#28051;?#32515;?#37711;?#37721;?#38315;?涓?#37825;?#37817;寘銆?/p> <p>?#28225;鏃?#37812;?#28000;traceroute 涓鍙?#28051;?#37832;烘椂?#32029;?#32048;鐪嬪?#29256;湁涓浜?#29723;屾槸浠?#37828;?#37721;?#29723;?#32448;虹殑銆?#37713;虹幇杩?#37837;风殑鎯?#37712;紝鍙?#38003;?#37828;?#38339;茬伀澧?#28751;?#37818;?#27996;咺CMP?#27537;杩?#37733;炰俊鎭?#38171;屾墍浠?#37812;?#28000;?#23536;?#28051;?#37714;?#28000;涔?#37929;?#37711;崇殑鏁?#37817;寘杩?#37733;?#37825;?#37817;?#37510;?/p> <p>?#28225;鏃?#37812;?#28000;?#37734;?#37836;?#28051;缃?#37711;?#28598;勫欢鏃?#23011;?#26440;冮暱锛屾湁鍙?#38003;?#37828;?#37836;愬彴缃?#37711;?#23011;?#26440;冮?#35826;?#28871;紝涔?#37721;?#38003;?#37828;?#37911;?#37918;嗚?#24807;鏈韩?#27537;鍘熷洜銆?#35120;撶劧濡?#37835;滄?#24876;?#30281;NS鍑虹?#20276;棶棰?#37827;讹紝涓?#38003;?#29785;瀽涓?#37832;?#37722;?#37510;佸煙鍚嶆椂?#32029;涔熶細 ?#28225;?#27426;鏃堕?#36328;殑鐜拌薄?#32049;?#20557;鍙?#28000;?#37716;?n 鍙?#37825;版潵?#20265;鍏岲NS瑙瀽?#32029;浠IP鏍?#23534;?#26440;撳嚭鏁?#37817;?#37510;?/p> <p>濡?#37835;滃湪灞鍩?#32515;?#28051;殑涓?#37722;?#32515;?#23048;典箣?#26879;锛屾垜浠?#37721;?#28000;?#38315;?#26473;噒raceroute ?#28533;鎺掓煡闂?#26864;?#37813;鍦?#38171;屾槸涓?#37832;虹殑闂?#26864;?#26473;?#37828;?#32515;?#37711;崇殑闂?#26864;?#37510;?#28641;?#37835;?#37812;?#28000;?#38315;?#26473;?#26473;?#32459;嬫潵璁?#38338;?#37836;愬?#29256;湇鍔?#37731;?#38316;?#37714;伴棶棰?#37827;?#38171;屾垜浠敤鍒皌raceroute 杩借釜鏁?#37817;寘鎵缁?#26473;囩殑缃?#37711;?#38171;屾彁浜IDC?#28231;鍔?#37727;嗭紝涔熸湁鍔?#27996;?#29785;?#37712;?#38338;?#26864;橈紱浣嗙洰鍓嶇?#23339;潵鍦?#37733;藉唴瑙?#37712;?#26473;?#37837;风殑闂?#26864;?#37828;?#23011;?#26440;?#37733;伴?#21095;殑?#32029;灏?#37828;?#37812;?#28000;?#37721;戠?#20276;棶棰?#37813;鍦紝IDC?#28231;鍔?#37727;嗕篃涓?#37721;?#38003;藉府鍔?#37812;?#28000;?#29785;?#37712;?#37510;?/p> <p><strong>瀹炰緥2?#32048;璺?#37825;?#29825;?#32515;?/strong></p> <p>鍛戒护?#32048;traceroute -m 10 www.baidu.com</p> <p>杈撳?#29492;細<br />[root@localhost ~]# traceroute -m 10 www.baidu.com<br />traceroute to www.baidu.com (61.135.169.105), 10 hops max, 40 byte packets<br />1 192.168.74.2 (192.168.74.2) 1.534 ms 1.775 ms 1.961 ms<br />2 211.151.56.1 (211.151.56.1) 0.508 ms 0.514 ms 0.507 ms<br />3 211.151.227.206 (211.151.227.206) 0.571 ms 0.558 ms 0.550 ms<br />4 210.77.139.145 (210.77.139.145) 0.708 ms 0.729 ms 0.785 ms<br />5 202.106.42.101 (202.106.42.101) 7.978 ms 8.155 ms 8.311 ms<br />6 bt-228-037.bta.net.cn (202.106.228.37) 772.460 ms bt-228-025.bta.net.cn (202.106.228.25) 2.152 ms 61.148.154.97 (61.148.154.97) 772.107 ms<br />7 124.65.58.221 (124.65.58.221) 4.875 ms 61.148.146.29 (61.148.146.29) 2.124 ms 124.65.58.221 (124.65.58.221) 4.854 ms<br />8 123.126.6.198 (123.126.6.198) 2.944 ms 61.148.156.6 (61.148.156.6) 3.505 ms 123.126.6.198 (123.126.6.198) 2.885 ms<br />9 * * *<br />10 * * *<br />[root@localhost ~]#<br /></p><br /> <p> </p> <p><strong>瀹炰緥3?#32048;鏄剧?#31698;P?#28276;鍧?#32029;涓嶆煡涓?#37832;?#37722;?/strong><strong></strong></p> <p>鍛戒护?#32048;traceroute -n www.baidu.com</p> <p>杈撳?#29492;細<br />[root@localhost ~]# traceroute -n www.baidu.com<br />traceroute to www.baidu.com (61.135.169.125), 30 hops max, 40 byte packets<br />1 211.151.74.2 5.430 ms 5.636 ms 5.802 ms<br />2 211.151.56.57 0.627 ms 0.625 ms 0.617 ms<br />3 211.151.227.206 0.575 ms 0.584 ms 0.576 ms<br />4 210.77.139.145 0.703 ms 0.754 ms 0.806 ms<br />5 202.106.42.101 23.683 ms 23.869 ms 23.998 ms<br />6 202.106.228.37 247.101 ms * *<br />7 61.148.146.29 5.256 ms 124.65.58.213 4.386 ms 4.373 ms<br />8 202.106.35.190 1.610 ms 61.148.156.138 1.786 ms 61.148.3.34 2.089 ms<br />9 * * *<br />30 * * *<br />[root@localhost ~]# traceroute www.baidu.com<br />traceroute to www.baidu.com (61.135.169.125), 30 hops max, 40 byte packets<br />1 211.151.74.2 (211.151.74.2) 4.671 ms 4.865 ms 5.055 ms<br />2 211.151.56.57 (211.151.56.57) 0.619 ms 0.618 ms 0.612 ms<br />3 211.151.227.206 (211.151.227.206) 0.620 ms 0.642 ms 0.636 ms<br />4 210.77.139.145 (210.77.139.145) 0.720 ms 0.772 ms 0.816 ms<br />5 202.106.42.101 (202.106.42.101) 7.667 ms 7.910 ms 8.012 ms<br />6 bt-228-025.bta.net.cn (202.106.228.25) 2.965 ms 2.440 ms 61.148.154.97 (61.148.154.97) 431.337 ms<br />7 124.65.58.213 (124.65.58.213) 5.134 ms 5.124 ms 5.044 ms<br />8 202.106.35.190 (202.106.35.190) 1.917 ms 2.052 ms 2.059 ms<br />9 * * *<br />30 * * *<br />[root@localhost ~]# <br /></p> <p> </p> <p><strong>瀹炰緥4?#32048;鎺?#23092;嬪寘浣跨敤?#27537;鍩烘湰UDP绔彛璁?#32515;?888</strong></p> <p>鍛戒护?#32048;traceroute -p 6888 <a href="http://www.baidu.com">www.baidu.com</a><br />[root@localhost ~]# traceroute -p 6888 www.baidu.com<br />traceroute to www.baidu.com (220.181.111.147), 30 hops max, 40 byte packets<br />1 211.151.74.2 (211.151.74.2) 4.927 ms 5.121 ms 5.298 ms<br />2 211.151.56.1 (211.151.56.1) 0.500 ms 0.499 ms 0.509 ms<br />3 211.151.224.90 (211.151.224.90) 0.637 ms 0.631 ms 0.641 ms<br />4 * * *<br />5 220.181.70.98 (220.181.70.98) 5.050 ms 5.313 ms 5.596 ms<br />6 220.181.17.94 (220.181.17.94) 1.665 ms !X * *<br />[root@localhost ~]# <br /></p> <p> </p> <p><strong>瀹炰緥5?#32048;鎶?#37818;?#23092;嬪寘?#27537;涓?#37825;?#29825;?#32515;?#28051;哄?</strong></p> <p>鍛戒护?#32048;traceroute -q 4 www.baidu.com</p> <p> <br />[root@localhost ~]# traceroute -q 4 www.baidu.com<br />traceroute to www.baidu.com (61.135.169.125), 30 hops max, 40 byte packets<br />1 211.151.74.2 (211.151.74.2) 40.633 ms 40.819 ms 41.004 ms 41.188 ms<br />2 211.151.56.57 (211.151.56.57) 0.637 ms 0.633 ms 0.627 ms 0.619 ms<br />3 211.151.227.206 (211.151.227.206) 0.505 ms 0.580 ms 0.571 ms 0.569 ms<br />4 210.77.139.145 (210.77.139.145) 0.753 ms 0.800 ms 0.853 ms 0.904 ms<br />5 202.106.42.101 (202.106.42.101) 7.449 ms 7.543 ms 7.738 ms 7.893 ms<br />6 61.148.154.97 (61.148.154.97) 316.817 ms bt-228-025.bta.net.cn (202.106.228.25) 3.695 ms 3.672 ms *<br />7 124.65.58.213 (124.65.58.213) 3.056 ms 2.993 ms 2.960 ms 61.148.146.29 (61.148.146.29) 2.837 ms<br />8 61.148.3.34 (61.148.3.34) 2.179 ms 2.295 ms 2.442 ms 202.106.35.190 (202.106.35.190) 7.136 ms<br />9 * * * *<br />30 * * * *<br />[root@localhost ~]# <br /></p><br /> <p><strong>瀹炰緥6?#32048;缁?#26473;?#23005;?#29999;哥殑璺?#37922;?#29723;紝鐩?#37818;?#37721;?#38315;?#37714;?#32515;戠粶鐩?#26473;炵殑涓?#37832;?/strong></p> <p>鍛戒护?#32048;traceroute -r www.baidu.com</p> <p>杈撳?#29492;細<br />[root@localhost ~]# traceroute -r www.baidu.com<br />traceroute to www.baidu.com (61.135.169.125), 30 hops max, 40 byte packets<br />connect: 缃戠粶涓?#37721;揪<br />[root@localhost ~]# <br /></p> <p> </p> <p>瀹炰緥7?#32048;鎶?#28725;?#28598;?#37721;?#37818;?#23092;嬪寘?#27537;绛?#23536;呭?#23941;簲鏃堕棿璁?#32515;?#28051;?绉?/p> <p>鍛戒护?#32048;traceroute -w 3 www.baidu.com</p> <p>杈撳?#29492;細<br /><br />[root@localhost ~]# traceroute -w 3 www.baidu.com<br />traceroute to www.baidu.com (61.135.169.105), 30 hops max, 40 byte packets<br />1 211.151.74.2 (211.151.74.2) 2.306 ms 2.469 ms 2.650 ms<br />2 211.151.56.1 (211.151.56.1) 0.621 ms 0.613 ms 0.603 ms<br />3 211.151.227.206 (211.151.227.206) 0.557 ms 0.560 ms 0.552 ms<br />4 210.77.139.145 (210.77.139.145) 0.708 ms 0.761 ms 0.817 ms<br />5 202.106.42.101 (202.106.42.101) 7.520 ms 7.774 ms 7.902 ms<br />6 bt-228-025.bta.net.cn (202.106.228.25) 2.890 ms 2.369 ms 61.148.154.97 (61.148.154.97) 471.961 ms<br />7 124.65.58.221 (124.65.58.221) 4.490 ms 4.483 ms 4.472 ms<br />8 123.126.6.198 (123.126.6.198) 2.948 ms 61.148.156.6 (61.148.156.6) 7.688 ms 7.756 ms<br />9 * * *<br />30 * * *<br />[root@localhost ~]# <br /></p><br /> <p> </p> <p><strong>Traceroute?#27537;宸?#28003;滃師鐞嗭細</strong></p> <p>Traceroute鏈?#30045;鍗曠殑鍩烘湰?#25956;娉?#37828;細traceroute hostname</p> <p>Traceroute绋嬪?#24533;殑璁?#29825;?#37828;?#37714;敤ICMP鍙奍P header?#27537;TTL锛圱ime To Live锛?#37837;?#28003;?#38171;field锛?#37510;傞鍏堬紝traceroute閫?#37713;?#28051;涓猅TL鏄??#27537;IP datagram锛?#37711;?#28729;?#38171;屾瘡娆?#38315;?#37713;虹殑涓?涓?0瀛?#38010;傜殑?#23512;?#32029;?#23512;?#23277;婧愬湴鍧?#32029;?#27952;?#27537;?#28276;鍧鍜屽寘鍙?#37713;虹殑鏃堕棿鏍囩锛?#37714;扮洰?#27537;?#28276;?#32029;褰?#29882;?#23536;?#28051;婄殑绗?#28051;涓?#29882;?#37922;卞櫒锛坮outer锛夋敹鍒?#26473;?#28051;猟atagram鏃讹紝瀹?#28751;TTL?#22138;1銆傛鏃讹紝TTL?#24393;涓?浜?#38171;屾墍浠?#29831;?#29882;?#37922;卞櫒?#32048;灏嗘datagram涓?#37818;夛紝骞堕?#37733;?#28051;涓?#37510;孖CMP time exceeded銆嶆秷鎭?#38171;堝寘?#23277;鍙慖P?#23512;?#27537;婧愬湴鍧?#32029;IP?#23512;?#27537;鎵?#28225;鍐?#28729;?#37721;?#29882;?#37922;卞櫒?#27537;IP?#28276;鍧锛夛紝traceroute ?#25977;鍒?#26473;?#28051;?#23057;?#37805;?#37722;庯紝渚跨煡?#20158;杩?#28051;?#29882;?#37922;卞櫒瀛?#37734;?#27996;?#26473;?#28051;?#29882;?#23536;?#28051;?#38171;屾帴?#28483;traceroute 鍐?#38315;?#37713;哄彟涓涓猅TL鏄? ?#27537;datagram?#32029;鍙戠?#25198;2 涓?#29882;?#37922;卞櫒...... traceroute 姣?#23046;?#28751;?#38315;?#37713;虹殑datagram?#27537;TTL 鍔??#28533;鍙戠?#26495;彟涓涓?#29882;?#37922;卞櫒?#32029;杩?#28051;?#38322;?#28598;嶇殑鍔?#28003;?#28051;鐩?#37816;?#32513;?#37714;版煇涓猟atagram 鎶佃揪?#27952;?#27537;?#28276;銆?#35120;datagram鍒拌揪?#27952;?#27537;?#28276;鍚庯紝璇?#28051;?#37832;哄苟涓嶄細閫?#37733;ICMP time exceeded娑?#37805;紝鍥?#28051;?#28729;?#23480;?#37828;洰?#27537;?#28276;浜嗭紝閭?#28052;坱raceroute濡?#28003;?#23536;楃煡?#27952;?#27537;?#28276;鍒拌揪浜?#37723;?#38171;?/p> <p>Traceroute鍦?#38315;?#37713;UDP datagrams鍒扮洰?#27537;?#28276;鏃讹紝瀹?#37813;閫夋嫨閫佽揪?#27537;port number 鏄?#28051;涓?#28051;鑸?#25652;旂敤绋嬪簭閮戒?#23940;細?#25956;?#27537;鍙?#37934;?#38171;?0000 浠?#28051;?#38171;?#38171;屾墍浠?#35120;?#23005;UDP datagram 鍒拌揪?#27952;?#27537;?#28276;鍚?#29831;?#28051;?#37832;轰細閫?#37733;?#28051;涓?#37510;孖CMP port unreachable銆嶇殑娑?#37805;紝鑰屽綋traceroute ?#25977;鍒?#26473;?#28051;?#23057;?#37805;?#37827;讹紝渚跨煡閬撶洰?#27537;?#28276;宸?#32513;?#37714;拌揪浜?#37510;?#37813;浠traceroute 鍦Server绔?#28052;?#37828;病?#28225;鎵璋撶殑Daemon 绋?#23534;?#37510;?/p> <p>Traceroute鎻愬彇鍙?ICMP TTL鍒版湡娑?#37805;?#29825;惧?#22249;殑IP?#28276;鍧骞?#28003;滃煙鍚?#29785;瀽銆?#23011;?#23046;??#32029;Traceroute閮?#37813;撳嵃鍑?#28051;绯诲垪鏁?#37817;??#23512;?#23277;鎵缁?#26473;囩殑璺?#37922;?#29825;惧?#22249;殑鍩?#37722;?#37721;?IP?#28276;鍧,涓?#28051;寘姣?#23046;潵鍥?#37813;鑺?#37827;堕棿銆?/p> <p><strong>windows?#31651;tracert:</strong></p> <p>鏍?#23534;忥細</p> <p>tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] target_name</p> <p>鍙?#37825;?#29831;存?#24239;細</p> <p>tracert [-d] [-h maximum_hops] [-j computer-list] [-w timeout] target_name</p> <p>璇?#29831;?#37826;?#28729;炵敤绋嬪簭閫?#26473;?#37722;戠洰?#27537;?#28276;鍙?#38315;佸叿?#28225;涓?#37722;岀敓瀛?#37827;堕棿 (TL) ?#27537; Internet 鎺?#37714;朵俊鎭?#37719;?#29825;?(CMP) 鍥?#25652;?#37814;?#37826;囷紝浠?#32429;?#28729;氳?#23815;洰?#27537;?#28276;?#27537;璺?#37922;?#37510;?#29882;?#23536;?#28051;婄殑姣?#28051;?#29882;?#37922;卞櫒閮?#29781;?#37734;?#26462;?#37721;?#29831;?ICMP 鍥?#25652;?#37814;?#37826;囦?#23338;墠灏嗗叾 TTL 鍊?#38007;?#28751;戝噺 1?#32029;鍥犳 TTL 鏄湁鏁堢殑璺?#26462;?#29825;?#37825;?#37510;?#35120;?#37814;?#37826;囩殑 TTL 鍊煎噺灏?#37714;?0 鏃讹紝璺?#37922;卞櫒鍚戞簮绯?#32513;?#37721;戝洖 ICMP 瓒?#37827;朵俊鎭?#37510;?#38315;?#26473;?#37721;?#38315;?TTL 涓?1 ?#27537;绗?#28051;涓?#37733;?#25652;?#37814;?#37826;囧苟涓?#37734;?#38341;?#37722;庣殑鍙?#38315;?#28051;?#23011;?#23046;?#28751;?TTL 鍊煎姞 1?#32029;鐩?#37714;扮洰鏍囧?#23941;簲鎴栬揪鍒版渶澶?TTL 鍊硷紝Tracert 鍙?#28000;?#32429;?#28729;?#29882;?#37922;?#37510;?#38315;?#26473;?#22955;?#29025;涓棿璺?#37922;卞櫒鍙?#37721;戝洖?#27537; ICMP 瓒?#37827;?(ime Exceeded) ?#20426;鎭紝鍙?#28000;?#32429;?#28729;?#29882;?#37922;卞櫒銆傛敞鎰忥?#23678;湁浜?#29882;?#37922;卞櫒“瀹夐潤”?#28276;涓?#23534;冪敓瀛?#37827;堕棿 (TLS) 杩?#37832;熺殑鎶?#37826;囧苟涓?#28725;?tracert 鏃?#37825;?#37510;?/p> <p>鍙?#37825;帮細</p> <p>-d ?#23514;瀹?#28051;?#28725;?#29825;?#32480;?#37832;?#37722;?#29785;?#37835;愬湴鍧銆?/p> <p>-h maximum_hops ?#23514;瀹氭煡鎵剧洰鏍囩殑璺?#26462;殑鏈澶?#37825;扮洰銆?/p> <p>-jcomputer-list ?#23514;瀹?#37734;?computer-list 涓?#37833;?#37825;簮璺?#37922;?#37510;?/p> <p>-w timeout 绛?#23536;呯敱 timeout 瀵?#23011;?#28051;?#25652;?#32475;旀寚瀹氱殑姣?#32457;?#37825;?#37510;?/p> <p>target_name ?#27952;鏍?#29825;?#32480;?#37832;虹殑鍚嶇銆?/p> <p>瀹炰緥?#32048;<br /><br /></p> <div class="msgheader"> <div class="right"><span style="cursor: pointer"></span><u> </u><br />C:\Users\Administrator>tracert www.58.com<br />Tracing route to www.58.com [221.187.111.30]<br />over a maximum of 30 hops:<br />1 1 ms 1 ms 1 ms 10.58.156.1<br />2 1 ms <1 ms <1 ms 10.10.10.1<br />3 1 ms 1 ms 1 ms 211.103.193.129<br />4 2 ms 2 ms 2 ms 10.255.109.129<br />5 1 ms 1 ms 3 ms 124.205.98.205<br />6 2 ms 2 ms 2 ms 124.205.98.253<br />7 2 ms 6 ms 1 ms 202.99.1.125<br />8 5 ms 6 ms 5 ms 118.186.0.113<br />9 207 ms * * 118.186.0.106<br />10 8 ms 6 ms 11 ms 124.238.226.201<br />11 6 ms 7 ms 6 ms 219.148.19.177<br />12 12 ms 12 ms 16 ms 219.148.18.117<br />13 14 ms 17 ms 16 ms 219.148.19.125<br />14 13 ms 13 ms 12 ms 202.97.80.113<br />15 * * * Request timed out.<br />16 12 ms 12 ms 17 ms bj141-147-82.bjtelecom.net [219.141.147.82]<br />17 13 ms 13 ms 12 ms 202.97.48.2<br />18 * * * Request timed out.<br />19 14 ms 14 ms 12 ms 221.187.224.85<br />20 15 ms 13 ms 12 ms 221.187.104.2<br />21 * * * Request timed out.<br />22 15 ms 17 ms 18 ms 221.187.111.30<br />Trace complete.<br /></div></div><img src ="http://www.8634070.com/jjshcc/aggbug/426361.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.8634070.com/jjshcc/" target="_blank">Eric_jiang</a> 2015-07-21 14:06 <a href="http://www.8634070.com/jjshcc/archive/2015/07/21/426361.html#Feedback" target="_blank" style="text-decoration:none;">鍙?#29723;?#29831;勮</a></div>]]></description></item><item><title>/etc/resolv.conf涓?#37711;抽敭瀛search鍜宒omain?#27537;浣滅敤http://www.8634070.com/jjshcc/archive/2015/07/21/426356.htmlEric_jiangEric_jiangTue, 21 Jul 2015 04:49:00 GMThttp://www.8634070.com/jjshcc/archive/2015/07/21/426356.htmlhttp://www.8634070.com/jjshcc/comments/426356.htmlhttp://www.8634070.com/jjshcc/archive/2015/07/21/426356.html#Feedback0http://www.8634070.com/jjshcc/comments/commentRss/426356.htmlhttp://www.8634070.com/jjshcc/services/trackbacks/426356.htmldomain 澹版槑涓?#37832;虹殑鍩?#37722;?#37510;?#23536;?#28598;?#32459;嬪?#24533;敤鍒?#28729;冿紝濡?#38317;欢绯?#32513;燂紱褰?#28051;烘病?#28225;鍩?#37722;嶇殑涓?#37832;鸿繘琛DNS ?#29025;璇?#37827;讹紝涔熻?#20346;敤鍒?#37510;?#28641;?#37835;滄病?#28225;鍩?#37722;嶏紝涓?#37832;?#37722;?#28751;嗚浣跨敤?#32029;鍒犻櫎鎵?#28225;鍦?#32471;?#28051;涓偣( . )鍓嶉潰?#27537;鍐?#28729;?#37510;?/span>
search 瀹冪殑澶?#28051;?#37721;?#37825;版寚鏄庡煙鍚嶆煡璇?#26916;哄簭銆?#35120;?#29781;佹煡璇病?#28225;鍩?#37722;嶇殑涓?#37832;猴紝涓?#37832;?#28751;嗗湪鐢search 澹版?#24227;殑鍩?#28051;?#37714;嗗埆?#29025;鎵?#37510;俤omain 鍜宻earch 涓?#38003;藉叡瀛橈紱濡?#37835;?#37722;屾椂瀛?#37734;紝鍚庨潰鍑虹?#25198;殑灏嗕細琚?#28003;跨敤銆?/span>

涓嬮潰?#27537;璇存?#24226;?#23384;?#21614;櫚

鍦?tt>/etc/resolv.conf 閰?#32515;?#37826;囦欢?#32048;domain 鍜宻earch浣滅敤鏄?#28051;鏍风殑

domain linpro.no
search linpro.no uio.no ifi.uio.no

domain function:

Had I typed telnet math.uio.no. with the trailing dot, the resolver would have known it was an FQDN and would have looked up math.uio.no at once, without trying to append the specified domain first. Not all applications are tolerant of the trailing dot, though, so it can't always be specified.

search function:

When ssh gram is executed, the resolver first looks for gram.linpro.no, which does not exist; thengram.uio.no, which does not exist, either; and finally gram.ifi.uio.no, which will succeed because it does exist



]]>
nginx+keepalived?#28533;瀹炵幇nginx?#28231;鍔?#37731;殑?#29678;鍙敤http://www.8634070.com/jjshcc/archive/2015/07/20/426325.htmlEric_jiangEric_jiangMon, 20 Jul 2015 05:29:00 GMThttp://www.8634070.com/jjshcc/archive/2015/07/20/426325.htmlhttp://www.8634070.com/jjshcc/comments/426325.htmlhttp://www.8634070.com/jjshcc/archive/2015/07/20/426325.html#Feedback0http://www.8634070.com/jjshcc/comments/commentRss/426325.htmlhttp://www.8634070.com/jjshcc/services/trackbacks/426325.html涔嬪?#23942;湁鍋?#26473;噇vs+keepalived?#28533;瀹?#37916;伴珮鍙敤銆傚彲鏄幇鍦nginx宸?#32513;忕敤鍒?#27996;嗗緢澶?#37711;?#37721;哥殑web?#28231;鍔?#37731;?#28051;婏紝骞?#28051;?#28052;?#29723;幇鍑轰?#27199;?#27537;鎬?#38003;?#37510;?br />閭?#28052;?#37734;?#37835;舵瀯涓紝nginx鏀?#37734;?#37715;?#32468;敤浣滆礋杞?#37735;?#29723;?#37724;屽鐞?#38344;?#37804;?#26916;甸潰浠?#37721;?#32514;撳瓨锛屾槸涓涓?#23536;?#38322;?#29781;佺殑浣?#32515;紝蹇呴瑕佷繚璇乶ginx?#28231;鍔?#37731;殑?#29678;鍙敤?#32029;
浠?#28598;畝鍗?#28000;嬬粛涓嬬敤nginx+keepalived?#28533;瀹炵幇nginx?#28231;鍔?#37731;殑?#29678;鍙敤,鍗?#28729;炵幇鏁呴?#28358;嚜鍔?#37714;?#37817;?#37510;?br />
鐜?#28583;冿細
涓籲ginx?#28231;鍔?#37731;?192.168.2.117
澶噉ginx?#28231;鍔?#37731;?192.168.0.170
VIP:192.168.2.114
nginx?#28231;鍔?#37731;殑瀹夎鍜?#38320;?#32515;?#37734;?#23005;?#28051;?#37707;?#28000;嬬粛?#32029;涓嶄細?#27537;璇?#37721;?#28000;?#37721;傝冿細

http://www.linuxyan.com/web-server/6.html

1銆乲eepalived瀹夎(鍦?#28051;诲?#23677;2鍙皀ginx?#28231;鍔?#37731;?#28051;?#38318;?#28729;夎)

wget http://www.keepalived.org/software/keepalived-1.2.2.tar.gz
tar xzf keepalived-1.2.2.tar.gz
cd keepalived-1.2.2
./configure –prefix=/usr/local/keepalived
make && make install
cp /usr/local/keepalived/etc/rc.d/init.d/keepalived /etc/init.d/
cp /usr/local/keepalived/etc/sysconfig/keepalived /etc/sysconfig/
chmod +x /etc/init.d/keepalived
mkdir /etc/keepalived
ln -s /usr/local/keepalived/sbin/keepalived /usr/sbin/

?#21159;鍚?#28725;?#28051;籲ginx?#28231;鍔?#37731;殑keepalived?#32344;琛?#38320;?#32515;?br />vi /etc/keepalived/keepalived.conf
global_defs {
notification_email {
admin@centos.bz               #鎺敹璀?#37814;殑email?#28276;鍧,鍙?#28000;?#23075;诲姞澶?#28051;?br />}
notification_email_from keepalived@domain.com   ###鍙戜欢浜哄湴鍧
smtp_server 127.0.0.1          ###鍙?#38315;侀偖?#27426;?#27537;?#28231;鍔?#37731;?br />smtp_connect_timeout 30      ###瓒?#37827;?#37827;堕棿
router_id LVS_DEVEL      ####load balancer ?#27537;鏍?#29831;?ID,?#25956;浜email璀?#37814;?br />}
vrrp_script chk_http_port {
script “/opt/nginx_pid.sh” ####妫?#31092;nginx鐘舵佺殑鑴?#37832;?#29882;?#23536;?br />interval 2
weight 2
}
vrrp_instance VI_1 {
state MASTER ############ 杈呮満涓?BACKUP
interface eth0 ####HA 鐩戞祴缃戠粶鎺彛
virtual_router_id 51 #涓?#37510;?#28598;?#37832;虹殑 virtual_router_id 蹇呴鐩?#37722;?br />mcast_src_ip 192.168.2.117 ###鏈?#37832;篒P?#28276;鍧
priority 102 ########### 鏉?#37706;?#29781;?#23011;?back ?#29678;
advert_int 1 #涓诲?#22246;箣?#26879;?#27537;閫?#37723;婇棿闅?#32457;?#37825;?br />authentication {
auth_type PASS ###涓诲鍒?#37817;?#37827;剁殑?#29529;璇?br />auth_pass 1111
}
track_script {
chk_http_port ### 鎵?#29723;?#37929;?#37818;殑?#28231;鍔?br />}
virtual_ipaddress {
192.168.2.114 ####vip?#27537;?#28276;鍧
}
}

澶噉ginx?#28231;鍔?#37731;?#28051;?#38320;?#32515;?br />global_defs {
notification_email {
admin@centos.bz
}
notification_email_from keepalived@domain.com
smtp_server 127.0.0.1
smtp_connect_timeout 30
router_id LVS_DEVEL
}
vrrp_script chk_http_port {
script “/opt/nginx_pid.sh” ##妫?#31092;nginx鐘舵佺殑鑴?#37832;?br />interval 2
weight 2
}
vrrp_instance VI_1 {
state BACKUP
interface eth0
virtual_router_id 51 #### 淇?#37816;?#28051;?#28000;庢湇鍔?#37731;?#28051;鑷?br />mcast_src_ip 192.168.0.170 ###鏈?#37832;虹殑IP?#28276;鍧
priority 101 ##########鏉?#37706;?瑕?#23011;?master 浣?#37510;?#37510;?br />advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
track_script {
chk_http_port ### 鎵?#29723;?#37929;?#37818;殑?#28231;鍔?br />}
virtual_ipaddress {
192.168.2.114 ###vip?#27537;?#28276;鍧
}
}

?#31651;鍚?#37714;嗗埆鍦?#28051;?#28000;庢湇鍔?#37731;?#23524;虹?#23193;ginx?#27537;鐩?#37818;?#38004;?#37832;細
vi /opt/nginx_pid.sh
#!/bin/bash
A=`ps -C nginx –no-header |wc -l`
if [ $A -eq 0 ];then
/usr/local/nginx/sbin/nginx ##杩?#28051;湴?#26591;鍐?#28003;nginx鍛戒护?#27537;璺?#23536;?br />sleep 3
if [ `ps -C nginx --no-header |wc -l` -eq 0 ];then
killall keepalived
fi
fi

閰?#32515;?#28610;戒箣鍚庯紝鍒嗗埆鍦?鍙版湇鍔?#37731;?#28051;?#37722;?#37716;nginx鍜宬eepalived
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
/etc/init.d/keepalived start

鍦?#28051;籲ginx?#28231;鍔?#37731;?#28051;?#37813;?#29723;宨p a
[root@localhost ~]# ip a
1: lo: mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:0c:29:58:58:5f brd ff:ff:ff:ff:ff:ff
inet 192.168.2.117/22 brd 192.168.3.255 scope global eth0
inet 192.168.2.114/32 scope global eth0
inet6 fe80::20c:29ff:fe58:585f/64 scope link
valid_lft forever preferred_lft forever
3: sit0: mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
鍙?#28000;?#37930;嬪埌2.114杩?#28051;vip宸?#32513;?#32513;?#28729;?#37734;?#28051;籲ginx?#28231;鍔?#37731;?#28051;?#27996;?杩?#28051;?#37827;跺?#37814;nginx鍋?#37818;?br />[root@localhost ~]# killall nginx
[root@localhost ~]# ps aux |grep nginx
root 9175 0.0 0.3 43268 916 ? Ss 05:45 0:00 nginx: master process /usr/local/nginx/sbin/nginx
nginx 9176 0.0 0.5 43648 1468 ? S 05:45 0:00 nginx: worker process
root 9187 0.0 0.2 61180 716 pts/0 R+ 05:45 0:00 grep nginx
棰?#26864;濓紝?#32029;锛屾庝箞鍋?#28051;?#37818;夛紝?#32029;?#32029;?#32029;
娉?#37808;忕?#23340;洃鎺nginx?#27537;鑴?#37832;?褰撹剼鏈?#22955;娴嬪埌nginx?#30149;鏈夎繍琛岀殑鏃跺欙紝?#32048;灏?#29831;?#37722;?#37716;?#28051;娆紝濡?#37835;?#37722;?#37716;?#37812;愬姛?#32029;鍒?#28051;?#26462;?#32457;籿ip銆?#28641;?#37835;?#37722;?#37716;?#28598;?#29840;紝鍒?#37814;keepalived鍋?#37818;夛紝浠庢?#34425;殑keepalived?#32048;鎶vip缁?#28729;?#37714;板?#22089;ginx?#28231;鍔?#37731;?#28051;婏紝杩?#28051;?#37827;跺?#28751;?#37828;?#28598;噉ginx?#27537;?#28231;鍔?#37731;?#37734;?#37819;愪緵?#28231;鍔?#27996;?#37510;?br />涓?#27996;嗙湅涓?#37825;?#37835;?#38171;屾殏涓?#37814;?#26473;?#28051;?#38004;?#37832;?#28103;?#37824;?#28051;涓嬶紝涓?#29825;?#28000;?#28751;?#29831;?#37722;?#37716;nginx?#28231;鍔?br />杩?#28051;?#37827;跺?#37814;nginx?#28231;鍔?#37707;?#37818;?#38171;屾垜浠敤ip a?#28533;鐪?#28051;媣ip鏄?#37722;?#26473;?#37734;?#28051;籲ginx?#28231;鍔?#37731;?#28051;?#32513;?#28729;氱潃
[root@localhost ~]# ip a
1: lo: mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:0c:29:58:58:5f brd ff:ff:ff:ff:ff:ff
inet 192.168.2.117/22 brd 192.168.3.255 scope global eth0
inet6 fe80::20c:29ff:fe58:585f/64 scope link
valid_lft forever preferred_lft forever
3: sit0: mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0

鍙?#28000;?#37930;嬪埌宸?#32513;忔病?#28225;vip杩?#28051;湴鍧浜?br />鍘荤?#23338;?#22089;ginx?#28231;鍔?#37731;?#28051;?#37930;媣ip鏄?#37722;?#32513;?#28729;?#37734;?#27996;?#28051;婇潰
[root@localhost etc]# ip a
1: lo: mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:0c:29:34:cc:f9 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.170/22 brd 192.168.1.255 scope global eth0
inet 192.168.2.114/32 scope global eth0
inet6 fe80::20c:29ff:fe34:ccf9/64 scope link
valid_lft forever preferred_lft forever
3: sit0: mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0

ok?#32029;鍙?#28000;?#37930;嬪埌vip宸?#32513;?#32513;?#28729;?#37734;?#28598;噉ginx?#28231;鍔?#37731;?#28051;?#27996;?#37510;?/p>

]]>
?#30987;杞?#37735;?#29723;?#37731;?#37814;鏈疦ginx鍜孎5?#27537;浼?#32514;虹偣瀵?#23011;?/title><link>http://www.8634070.com/jjshcc/archive/2015/07/20/426321.html</link><dc:creator>Eric_jiang</dc:creator><author>Eric_jiang</author><pubDate>Mon, 20 Jul 2015 02:53:00 GMT</pubDate><guid>http://www.8634070.com/jjshcc/archive/2015/07/20/426321.html</guid><wfw:comment>http://www.8634070.com/jjshcc/comments/426321.html</wfw:comment><comments>http://www.8634070.com/jjshcc/archive/2015/07/20/426321.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.8634070.com/jjshcc/comments/commentRss/426321.html</wfw:commentRss><trackback:ping>http://www.8634070.com/jjshcc/services/trackbacks/426321.html</trackback:ping><description><![CDATA[<p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">瀵?#27996;?#37825;?#37817;祦閲?#26473;囧?#27537;缃戠粶涓紝寰寰鍗?#28051;璁惧鏃犳硶鎵挎?#21635;紝?#28214;瑕?#28598;?#37721;?#29825;惧?#22250;繘琛屾暟鎹?#37714;嗘?#20362;紝鑰岃礋杞?#37735;?#29723;?#37731;?#28751;?#37828;敤?#28533;灏?#37825;?#37817;?#37714;嗘祦鍒板鍙?#29825;惧?#22249;殑涓涓?#26462;?#37721;戝櫒銆?/p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">?#27952;鍓嶆?#22798;澶?#28051;?#37722;岀殑?#30987;杞?#37735;?#29723;?#37814;鏈敤浠?#23114;?#29906;?#28051;?#37722;岀殑搴旂敤?#28214;?#30512;?#32029;濡?#26462;?纭欢?#30987;杞?#37735;?#29723;?#37510;?#37832;湴/鍏?#28766;?#30987;杞?#37735;?#29723;?#37510;佹洿?#29678;缃戠粶?#30512;?#30987;杞?#37735;?#29723;紝浠?#37721;婇摼璺仛鍚?#37814;鏈?#37510;?/p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">鎴?#28000;?#28003;跨敤?#27537;鏄?#26462;礋杞?#37735;?#29723;?#37731;Nginx,鑰屽啘琛岀敤?#27537;鏄疐5纭礋杞?#37735;?#29723;?#37731;紝杩?#38322;?#28751;辩畝鍗?#28000;嬬粛涓?#26473;?#28051;?#32457;?#37814;鏈細</p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">a.杞欢?#30987;杞?#37735;?#29723;?#29785;?#37712;虫柟妗?/p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">鍦?#28051;鍙版湇鍔?#37731;殑?#25655;浣滅郴缁?#28051;婏紝瀹夎涓涓?#38340;勫姞杞欢?#28533;瀹?#37916;拌礋杞?#37735;?#29723;紝濡侼ginx?#30987;杞?#37735;?#29723;?#38171;?#37812;?#28000;?#32480;?#37918;嗙郴缁?#39582;?#37721;?#28003;跨敤?#27537;涔?#37828;?#26473;?#23046;?#37735;?#29723;?#37731;?#38171;?#37510;?#28729;冪殑浼樼偣鏄熀浜庣壒瀹氱澧?#37510;?#38320;?#32515;畝鍗?#37510;?#28003;跨敤?#20242;娲?#37510;?#37812;?#37832;?#28003;庡?#22811;紝鍙?#28000;?#23114;?#29906;?#28598;?#38318;?#37714;嗙殑?#30987;杞?#37735;?#29723;渶?#30512;銆?/p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">涓銆?#28000;涔?#37828;疦ginx</p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">Nginx ("engine x") 鏄?#28051;涓珮鎬?#38003;界殑 HTTP 鍜?鍙?#37722;?#28000;?#37918;??#28231;鍔?#37731;紝涔?#37828;?#28051;涓?IMAP/POP3/SMTP 浠?#37918;嗘湇鍔?#37731;?#37510;?鍙?#28000;?#29831;碞ginx 鏄洰鍓?#28003;跨敤鏈涓哄箍娉涚殑HTTP杞礋杞?#37735;?#29723;?#37731;紝鍏?#28751;嗘簮浠?#37934;?#28000;?#32491;BSD璁?#37721;?#29831;佺殑褰?#23534;?#37721;戝竷锛堝晢涓?#37721;嬪锛夛紝鍚屾?#36346;洜?#29678;鏁堢殑鎬?#38003;?#37510;?#32459;?#28729;?#37804;?#37510;?#28051;板?#23680;殑鍔?#38003;?#38342;?#37510;佺?#36720;緥閰?#32515;?#37826;囦欢鍜?#28003;?#32495;?#32513;熻?#21228;簮?#27537;娑堣楄?#38338;?#37722;嶄簬涓氱晫銆傚?#24538;璁?#37510;佹窐瀹?#37510;?#37826;版氮绛?#28598;瀷闂?#37812;?#37721;婂晢涓?#32515;戠珯閮?#38322;囩敤Nginx?#32344;琛HTTP缃戠?#27409;殑鏁?#37817;?#37714;嗘祦銆?/p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">浜?#37510;丯ginx?#27537;鍔?#38003;界?#22317;偣</p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">1銆?#23480;?#28003;滃湪缃戠粶?#27537;7?#30512;?#31651;涓婏紝鍙?#28000;?#38333;堝http搴旂敤鍋?#28051;浜?#37714;嗘?#20346;殑绛栫暐锛屾瘮濡?#38333;堝鍩?#37722;?#37510;佺洰褰?#32513;?#37835;勶紱</p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">2銆丯ginx瀵?#32515;戠粶?#27537;渚?#29863;栨瘮杈?#28751;忥紱</p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">3銆丯ginx瀹夎鍜?#38320;?#32515;?#23011;?#26440;冪畝鍗?#38171;屾祴璇曡?#38155;潵姣?#26440;冩柟渚匡紱</p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">4銆佷篃鍙?#28000;?#37813;挎?#21620;?#27196;殑?#30987;杞藉?#23338;姏涓?#32459;?#28729;氾紝涓鑸?#38003;芥敮鎾?#29906;?#26473;?涓?#23046;殑骞?#37721;戯紱</p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">5銆丯ginx鍙?#28000;?#38315;?#26473;囩?#24411;妫娴嬪?#29256;湇鍔?#37731;?#37712;?#38318;殑鏁呴殰锛屾瘮濡?#37837;?#37817;湇鍔?#37731;?#28598;?#37918;?#32515;?#26916;?#26473;?#37733;炵殑鐘舵?#37934;?#37510;佽秴鏃剁瓑绛夛紝www.linuxidc.com 骞?#28051;斾細鎶?#26473;?#37733;為敊璇殑璇锋眰閲?#37826;版彁浜?#37714;板彟涓涓?#38010;傜偣?#32029;涓?#26473;?#37711;?#28051;?#32514;虹偣灏?#37828;?#28051;嶆敮鎸乽rl?#28533;妫娴嬶紱</p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">6銆丯ginx瀵?#29831;锋眰?#27537;寮傛澶?#37918;嗗彲浠?#29999;?#37716;?#38010;傜?#35268;湇鍔?#37731;噺杞昏礋杞斤紱</p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">7銆丯ginx鑳芥敮鎸乭ttp鍜孍mail?#32029;杩?#37837;?#28751;?#37734;?#38315;傜敤鑼?#37733;?#28051;婇潰灏?#23536;?#28598;氾紱</p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">8銆?#28051;嶆敮鎸丼ession?#27537;淇?#37816;?#37510;?#28725;Big request header?#27537;鏀?#37816;?#28051;嶆槸寰堝?#26020;紝鍙?#28598;栭粯璁殑鍙湁Round-robin鍜孖P-hash涓?#32457;嶈礋杞?#37735;?#29723;?#32480;楁硶銆?/p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">涓?#37510;丯ginx?#27537;鍘?#37918;?/p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">Nginx閲囩敤?#27537;鏄?#37721;?#37722;?#28000;?#37918;?#37814;鏈紝浠?#37918;嗘湇鍔?#37731;潵鎺?#37721;internet涓婄殑杩?#37818;?#29831;锋眰?#32029;?#21159;鍚?#28751;嗚?#38155;眰杞?#37721;戠粰鍐?#38318;?#32515;戠粶涓婄殑?#28231;鍔?#37731;紝骞?#28751;?#28000;庢湇鍔?#37731;?#28051;?#23536;?#37714;扮殑缁?#37835;?#26473;?#37733;?#32513;internet涓?#29831;锋眰杩?#37818;殑瀹?#37812;?#32468;?#38171;屾鏃?#28000;?#37918;嗘湇鍔?#37731;?#28725;?#28598;?#28751;?#29723;幇涓?#28051;涓湇鍔?#37731;?#37510;傚弽鍚?#28000;?#37918;嗚礋杞?#37735;?#29723;?#37814;鏈?#37828;?#37814;?#28751;嗘潵?#22172;internet涓婄殑杩?#37818;?#29831;锋眰浠?#37721;?#37722;?#28000;?#37918;嗙殑?#26591;寮?#37716;?#37804;佸湴杞?#37721;戠粰鍐?#38318;?#32515;戠粶涓婄殑澶?#37721;版湇鍔?#37731;繘琛屽鐞嗭紝浠?#38000;岃揪鍒拌礋杞?#37735;?#29723;殑?#27952;?#27537;銆?/p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">b.纭欢?#30987;杞?#37735;?#29723;?#29785;?#37712;虫柟妗?/p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">鐩?#37818;?#37734;湇鍔?#37731;?#37724;屽閮?#32515;戠粶?#26879;瀹夎?#21616;礋杞?#37735;?#29723;?#29825;惧?#22263;紝杩?#32457;?#29825;惧鎴?#28000;?#38315;?#29999;?#32457;颁箣涓鸿礋杞?#37735;?#29723;?#37731;?#37510;?#37922;?#27996;?#28051;?#38338;殑璁惧瀹屾垚涓?#38338;殑浠诲姟?#32029;?#23277;绔?#27996;庢搷浣滅郴缁?#38171;屾暣浣?#37804;?#38003;藉緱鍒板閲?#37819;愰?#27208;紝鍔?#28051;?#28598;?#37837;?#37718;栫殑?#30987;杞?#37735;?#29723;?#32475;栫暐锛屾櫤鑳藉?#26667;殑?#31078;閲忕鐞嗭紝鍙揪鍒版渶浣崇殑?#30987;杞?#37735;?#29723;渶?#30512;銆?涓鑸?#38000;岃?#32029;纭欢?#30987;杞?#37735;?#29723;?#37734;?#37716;?#38003;?#37510;?#37804;?#38003;戒笂浼?#27996;?#26462;欢?#26591;寮忥紝涓?#26473;?#37812;?#37832;?#37828;傝吹锛屾瘮濡?#37832;甯?#29785;佺殑灏?#37828;疐5?#30987;杞?#37735;?#29723;?#37731;?#37510;?/p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">浠涔?#37828;疐5 BIG-IP</p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">F5?#30987;杞?#37735;?#29723;?#37731;?#37828;?#25652;旂敤浜?#28000;?#32515;戠粶?#27537;鍏?#37918;冮?#21975;鑰匜5 Networks鍏?#37721;?#37819;愪緵?#27537;涓涓礋杞?#37735;?#29723;?#37731;?#28051;撶敤璁惧?#22263;紝F5 BIG-IP LTM ?#27537;瀹樻柟鍚嶇?#26495;彨鍋?#37832;湴?#31078;閲忕鐞嗗櫒?#32029;鍙?#28000;?#37707;?-7?#30512;?#30987;杞?#37735;?#29723;紝?#21503;鏈夎礋杞?#37735;?#29723;?#37510;佸簲?#25956;浜?#37817;?#37510;佷細璇?#27996;?#37817;?#37510;佺?#33333;?#37929;?#37818;?#37510;?#37829;?#38003;?#32515;戠粶?#28276;鍧杞?#37817;?#37510;?#38315;氱敤鎸?#32513;?#37804;?#37510;佸?#23941;簲閿?#29831;?#28598;?#37918;?#37510;両Pv6缃?#37711;?#37510;侀珮绾?#29882;?#37922;?#37510;?#37829;?#38003;界?#24411;闀滃儚銆丼SL鍔?#38315;?#37510;?#37829;?#38003;紿TTP鍘嬬缉銆乀CP浼?#37718;?#37510;佺7?#30512;閫熺巼鏁?#35120;?#37510;?#37712;?#28729;?#32514;撳銆?#37712;?#28729;?#26462;?#37817;?#37510;佽繛鎺?#37716;?#38315;?#37510;侀珮閫?#32514;撳瓨銆丆ookie鍔?#28725;?#37510;?#38315;夋嫨鎬?#37712;?#28729;?#37716;?#28725;?#37510;佸簲?#25956;鏀诲嚮杩囨护銆佹嫆缁濇湇鍔?DoS)鏀诲?#35826;?#23410;YN Flood淇?#37814;?#37510;侀?#33580;伀澧?#8212;?#23512;杩囨护銆佸寘娑?#23011;?#32475;?#37716;?#38003;?#37510;?/p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">浠?#28051;嬫槸F5 BIG-IP?#25956;浣HTTP?#30987;杞?#37735;?#29723;?#37731;殑涓?#29781;?#37716;?#38003;斤細</p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">銆銆①銆丗5 BIG-IP鎻愪緵12绉嶇伒娲荤殑绠楁硶灏?#37813;?#28225;?#31078;閲?#37735;?#29723;殑鍒?#38320;?#37714;?#37722;?#28051;湇鍔?#37731;紝鑰岄潰瀵圭敤鎴凤紝鍙?#37828;?#28051;鍙拌?#27693;?#29112;湇鍔?#37731;?#37510;?/p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">銆銆②銆丗5 BIG-IP鍙?#28000;?#32429;?#29825;?#25652;旂敤绋嬪簭鑳?#37722;?#28725;?#29831;锋眰杩?#37733;?#28725;?#25652;旂殑鏁?#37817;?#37510;傚亣濡侳5 BIG-IP鍚庨潰?#27537;鏌?#28051;鍙版湇鍔?#37731;?#37721;戠敓?#28231;鍔?#37707;滄銆?#23005;?#37832;虹瓑鏁呴殰?#32029;F5?#32048;妫?#29025;鍑烘潵骞?#28751;嗚?#28231;鍔?#37731;?#37837;?#29831;?#28051;?#28729;?#37832;猴紝浠?#38000;?#28051;?#28751;嗙敤鎴风殑璁?#38338;?#29831;锋眰浼?#38315;?#37714;?#29831;?#37721;板?#25120;敓鏁呴?#28357;殑?#28231;鍔?#37731;?#28051;?#37510;?#26473;?#37837;凤紝鍙?#29781;?#37711;?#28729;冪殑?#28231;鍔?#37731;?#23005;?#29999;革紝?#25956;鎴风殑璁?#38338;?#28751;?#28051;嶄細鍙?#37714;?#35120;?#37725;?#37510;?#28729;?#37832;?#28051;鏃?#28103;?#28598;嶏紝F5 BIG-IP灏变細?#22172;鍔煡璇佸簲?#25956;宸?#38003;藉瀹?#37812;?#29831;锋眰浣滃嚭姝?#32429;?#37725;嶅簲骞?#37805;?#28598;?#37722;?#29831;湇鍔?#37731;?#28028;?#38315;?#37510;?/p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">銆銆③銆丗5 BIG-IP?#21503;?#28225;鍔?#37804;丼ession?#27537;?#32048;璇?#28103;?#37816;?#37716;?#38003;?#37510;?/p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">銆銆④銆丗5 BIG-IP?#27537;iRules鍔?#38003;藉彲浠?#37707;欻TTP鍐?#28729;?#26473;囨护锛屾牴鎹?#28051;?#37722;岀殑鍩?#37722;?#37510;乁RL?#32029;灏嗚闂?#29831;锋眰浼?#38315;?#37714;?#28051;?#37722;岀殑?#28231;鍔?#37731;?#37510;?/p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px"><br /></p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">?#26591;妗?#28028;?#32514;虹偣瀵?#23011;?/p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">?#29056;浜庣?#27426;?#27537;?#26591;寮?F5)</p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">浼樼偣?#32048;鑳藉鐩?#37818;?#38315;?#26473;?#37829;?#38003;戒氦鎹?#37832;?#28729;炵幇,澶?#37918;?#38003;藉姏?#27967;寮猴紝鑰?#28051;?#28051;?#32495;?#32513;?#37827;?#37711;筹紝?#30987;杞?#37804;?#38003;?#23534;烘洿閫傜敤浜?#28051;澶?#37739;嗚?#24807;銆?#28598;?#29825;?#38338;?#38322;?#37510;佺畝鍗?#25652;旂敤</p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">缂虹偣?#32048;鎴?#37832;?#26946;橈紝闄?#29825;惧?#22246;环鏍珮鏄傦紝鑰?#28051;?#38320;?#32515;?#37712;?#28003;?#38171;?#23536;?#38341;?#37807;宠薄鍚庨潰?#28231;鍔?#37731;?#37707;?#28051;涓?#38342;嗙兢?#32029;浣嗘渶鍏抽敭?#27537;?#30987;杞?#37735;?#29723;?#29825;惧鍗存槸鍗曠偣閰?#32515;紱鏃犳?#26335;湁鏁?#37818;屾彙?#28231;鍔?#37731;?#37721;?#25652;旂敤鐘舵?</p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">纭欢?#30987;杞?#37735;?#29723;紝涓鑸?#38318;戒笉绠?#28729;為?#21615;郴缁?#28051;庡簲?#25956;?#27537;鐘舵侊紝鑰屽彧鏄?#28000;?#32515;戠粶?#30512;?#28533;鍒?#37826;?#38171;屾墍浠湁鏃跺?#32495;?#32513;熷鐞?#38003;藉姏宸?#32513;?#28051;?#29723;?#27996;嗭紝浣?#32515;戠粶鍙?#38003;?#26473;樻潵 寰?#37721;?#37721;嶅簲锛?#26473;?#32457;嶆儏鍐甸潪甯?#37711;稿瀷锛屾瘮濡傚簲?#25956;?#28231;鍔?#37731;?#37722;庨潰鍐?#28699;?#23480;?#32513;?#37719;犵敤寰?#28598;氾紝浣嗚?#27195;病?#28225;褰诲簳涓?#29723;岋紝濡?#37835;?#32515;戠粶浼犺緭閲?#28051;?#28598;?#28751;辨湭蹇?#37734;?#32515;戠粶?#30512;鑳藉?#23942;槧鍑烘潵锛?/p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">?#29056;浜?#26462;欢?#27537;?#26591;寮?Nginx)</p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">浼樼偣?#32048;?#29056;浜?#32495;?#32513;?#28051;庡簲?#25956;?#27537;?#30987;杞?#37735;?#29723;紝鑳藉?#29112;洿濂藉湴鏍?#37817;?#32495;?#32513;?#28051;庡簲?#25956;?#27537;鐘?#37712;垫潵鍒?#38320;嶈礋杞?#37510;?#26473;欏浜?#28598;嶆?#20634;簲?#25956;鏄?#23536;?#38322;?#29781;佺殑锛屾?#28000;?#23011;?#26946;橈紝瀹為檯涓?#28641;?#37835;滃嚑鍙版湇鍔?#37731;紝?#25956;F5?#31651;绫荤殑纭欢浜?#37725;?#37828;?#23536;楁湁浜涙氮璐癸紝鑰岀敤杞欢灏?#29781;?#37722;堢畻寰?#28598;氾紝鍥?#28051;烘湇鍔?#37731;?#37722;屾椂杩?#37721;?#28000;?#29882;戝簲?#25956;鍋?#38342;嗙兢绛?#37510;?/p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">缂虹偣?#32048;?#30987;杞?#38003;藉姏鍙楁湇鍔?#37731;?#37832;韩鎬?#38003;界殑褰?#37725;?#38171;屾?#38003;?#29906;婂?#26020;紝?#30987;杞?#38003;藉姏瓒?#28598;?#37510;?/p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">缁?#26473;帮細瀵?#37812;?#28000;?#32480;?#37918;嗙郴缁熷簲?#25956;鐜?#28583;冩潵璇达紝鐢?#27996;庤礋杞?#37735;?#29723;?#37731;?#37832;韩涓嶉渶瑕?#28725;?#37825;?#37817;繘琛屽鐞?#38171;屾?#38003;界?#22549;?#22559;洿澶氱殑鏄?#37734;?#27996;?#37722;?#37721;版湇鍔?#37731;紝閫?#29999;?#38322;囩敤杞礋杞?#37735;?#29723;?#37731;?#23480;查潪甯?#28598;熺敤涓?#37711;跺晢涓?#37721;嬪?#30028;殑杞欢?#31790;鐮?#37818;?#37833;?#28003;?#23536;?#37812;?#28000;?#37721;?#28000;潪甯哥伒娲荤殑璁?#29825;?#38171;屾棤閫殑鍜屾垜浠?#32480;?#37918;嗙郴缁?#39582;?#37721;扮浉缁撳悎銆?/p><img src ="http://www.8634070.com/jjshcc/aggbug/426321.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.8634070.com/jjshcc/" target="_blank">Eric_jiang</a> 2015-07-20 10:53 <a href="http://www.8634070.com/jjshcc/archive/2015/07/20/426321.html#Feedback" target="_blank" style="text-decoration:none;">鍙?#29723;?#29831;勮</a></div>]]></description></item><item><title>bash涓?2>&1 & ?#27537;瑙?#38322;?/title><link>http://www.8634070.com/jjshcc/archive/2015/07/15/426227.html</link><dc:creator>Eric_jiang</dc:creator><author>Eric_jiang</author><pubDate>Wed, 15 Jul 2015 01:56:00 GMT</pubDate><guid>http://www.8634070.com/jjshcc/archive/2015/07/15/426227.html</guid><wfw:comment>http://www.8634070.com/jjshcc/comments/426227.html</wfw:comment><comments>http://www.8634070.com/jjshcc/archive/2015/07/15/426227.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.8634070.com/jjshcc/comments/commentRss/426227.html</wfw:commentRss><trackback:ping>http://www.8634070.com/jjshcc/services/trackbacks/426227.html</trackback:ping><description><![CDATA[<p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">1銆侀鍏堬紝bash涓??#32029;1?#32029;2涓?#28051;?#37825;?#28699;?#37714;嗗埆浠?#29723;STDIN_FILENO銆丼TDOUT_FILENO銆丼TDERR_FILENO?#32029;鍗?#37837;?#37713;嗚?#25779;叆锛?#28051;鑸?#37828;敭鐩?#38171;?#38171;屾爣鍑嗚?#25779;?#29492;紙涓鑸?#37828;?#37828;剧?#21700;?#24549;紝鍑嗙?#27537;璇存槸?#25956;鎴?#32513;堢鎺?#37714;?#37721;?#38171;?#38171;屾爣鍑?#38335;?#29831;?#38171;?#37713;?#38335;欎俊鎭?#26440;撳?#29492;級銆?/p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">2銆佽?#25779;叆杈撳嚭鍙?#28000;?#38322;?#28729;?#37722;?#38171;屾墍璋?#38322;?#28729;?#37722;?#26440;撳叆灏?#37828;?#37734;?#37723;戒护涓寚瀹氬叿浣撶殑杈撳叆?#28533;?#31790;?#32029;璀?#28641;?cat < test.c 灏唗est.c閲?#28729;?#37722;?#28051;cat鍛戒护?#27537;杈撳叆?#31790;銆?#26440;撳嚭閲?#28729;?#37722;?#37828;寚瀹氬叿浣撶殑杈撳嚭?#27952;鏍囦互鏇?#37817;粯璁殑鏍?#37713;嗚?#25779;?#29492;紝璀?#28641;俵s > 1.txt灏唋s?#27537;缁?#37835;?#28000;?#37837;?#37713;嗚?#25779;嚭閲?#28729;?#37722;?#28051;?.txt鏂?#37832;?#37510;傛湁鏃跺欎細鐪嬪?#26495; ls >> 1.txt杩?#32491;荤殑鍐?#23049;曪紝> 鍜?>> ?#27537;鍖?#37714;?#37734;?#27996;庯細> ?#25956;浜?#37826;板?#40511;?gt;>?#25956;浜?#26473;藉姞銆?#37719;ls > 1.txt?#32048;鏂板缓涓涓?.txt鏂囦欢骞?#28051;?#28751;唋s?#27537;鍐?#28729;?#26440;撳嚭鍒?#37826;板?#34425;殑1.txt涓紝鑰宭s >> 1.txt鍒欑敤鍦?.txt宸?#32513;?#28699;?#37734;紝鑰屾垜浠?#37721;?#37828;?#37807;?#28751;唋s?#27537;鍐?#28729;?#26473;藉姞鍒?.txt鏂?#37832;?#28051;殑鏃跺?#37510;?br /></p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">3銆侀粯璁?#26440;撳叆鍙湁涓涓?#38171;??#32029;STDIN_FILENO锛夛紝鑰岄粯璁?#26440;撳嚭?#28225;涓?#28051;?#38171;?#37837;?#37713;嗚?#25779;嚭1 STDOUT_FILENO锛屾爣鍑?#38335;?#29831;? STDERR_FILENO锛?#37510;傚?#29363;?#31919;璁?#37807;?#37712;?#28051;嬶紝shell杈撳嚭?#27537;閿?#29831;俊鎭細琚?#26440;撳嚭鍒??#32029;鑰屾櫘閫?#26440;撳?#36720;俊鎭細杈撳嚭鍒?銆?#28003;嗘槸鏌?#27996;?#37807;?#37712;?#28051;?#38171;屾垜浠?#29999;屾湜鍦?#28051;涓?#32513;堢涓嬬?#23338;埌鎵?#28225;?#27537;?#20426;鎭?#38171;堝寘?#23277;鏍?#37713;嗚?#25779;?#36720;俊鎭?#37724;岄敊璇俊鎭?#38171;夛紝瑕?#37804;庝箞鍔?#37723;?#38171;?/p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">       瀵?#27996;嗭紝浣?#37721;?#28000;?#28003;跨敤鎴?#28000;?#28051;婇潰璁?#37714;扮殑杈撳嚭閲?#28729;?#37722;?#37510;?#37804;?#29882;湁浜?#38171;屾庝箞鍐?#37723;?#38171;??#28522;甯?#37929;?#29785;傜殑鎯?#23049;?#28751;?#37828;?>1锛?#28751;?閲?#28729;?#37722;?#37714;?鍢?#38171;夛紝琛?#28051;?#29723;?#37723;?#38171;?#29831;?#28051;璇?#28751;辩煡?#20158;浜?#37510;?#37812;?#28000;繘琛?#28000;?#28051;嬫祴璇?#23005;?#26976;細</p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">1锛塵kdir test && cd test                ; 鍒涘?#31757;est鏂囦欢澶?#39582;惰繘鍏test?#27952;褰?/p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">2锛塼ouch a.txt b.c c                          ; 鍒涘缓a.txt b.c c 涓?#28051;?#37826;囦欢</p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">3锛塴s > 1                                           ; 鎸?#37812;?#28000;殑鐚滄?#23350;紝杩欏彞搴?#29831;?#37828;?#28751;唋s?#27537;缁?#37835;?#38322;?#28729;?#37722;?#37714;?#37837;?#37713;嗚?#25779;?#29492;紝鍥犳鏁?#37835;滃拰鐩?#37818;ls搴?#29831;?#28051;鏍?#37510;?#28003;嗘槸瀹為檯杩欏彞鎵?#29723;?#37722;?#38171;屾爣鍑嗚?#25779;嚭涓?#39582;舵病?#28225;浠?#28003;曚俊鎭?#37510;?/p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">4锛塴s                                                  ; 鎵?#29723;??#31651;鍚?#37712;嶆ls?#32029;鍒欎細鐪嬪埌test鏂囦欢澶?#28051;?#28598;?#27996;?#28051;涓?#37826;囦欢1</p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">5锛塩at 1                                            ; ?#29025;鐪?#37826;囦欢1?#27537;鍐?#28729;癸紝瀹為檯缁?#37835;?#28051;猴細1 a.txt b.c c     鍙?#29785;?#23005;?#26976;?涓?ls > 1骞?#28051;嶆槸灏唋s?#27537;缁?#37835;?#38322;?#28729;?#37722;?#28051;?#37837;?#37713;嗚?#25779;?#29492;紝鑰屾槸灏嗙粨鏋?#38322;?#28729;?#37722;?#37714;?#27996;?#28051;涓?#37826;囦欢1涓?#37510;?#37719;?鍦?#23005;?#28598;?#28051;?#29722;?#29785;?#38322;?#28051;STDOUT_FILENO?#32029;鑰屾槸鏂囦欢1銆?/p> <p style="text-align: left; padding-bottom: 0px; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 0px; padding-left: 0px; letter-spacing: normal; padding-right: 0px; font: 14px/26px Arial; white-space: normal; color: rgb(0,0,0); word-spacing: 0px; padding-top: 0px; -webkit-text-stroke-width: 0px">4銆?#37714;?#27996;嗘鏃讹紝浣?#25652;?#29831;?#28052;?#38003;界?#28355;埌2>&1?#27537;?#25956;?#21104;浜?#37510;?#28051;?#38335;欙紝2>&1灏?#37828;敤?#28533;灏?#37837;?#37713;?#38335;?#29831;?閲?#28729;?#37722;?#37714;?#37837;?#37713;嗚?#25779;嚭1涓殑銆傛澶?鍓嶉潰?#27537;&灏?#37828;?#28051;?#27996;嗚bash灏?瑙?#38322;?#37812;?#37837;?#37713;嗚?#25779;嚭鑰?#28051;嶆槸鏂囦欢1銆傝嚦浜庢渶鍚?#28051;涓?amp;?#32029;鍒?#37828;?#29825;bash鍦?#37722;?#37721;?#37813;?#29723;?#37510;?/p><img src ="http://www.8634070.com/jjshcc/aggbug/426227.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.8634070.com/jjshcc/" target="_blank">Eric_jiang</a> 2015-07-15 09:56 <a href="http://www.8634070.com/jjshcc/archive/2015/07/15/426227.html#Feedback" target="_blank" style="text-decoration:none;">鍙?#29723;?#29831;勮</a></div>]]></description></item></channel></rss> <a href="http://www.8634070.com/"><span class="STYLE1">˫ɫֱ</span></a> <div style="position:fixed;left:-9000px;top:-9000px;"><nobr id="k0jz6"><delect id="k0jz6"><pre id="k0jz6"><sub id="k0jz6"></sub></pre></delect></nobr><sup id="k0jz6"><meter id="k0jz6"><small id="k0jz6"><rp id="k0jz6"></rp></small></meter></sup><pre id="k0jz6"></pre><video id="k0jz6"></video><ruby id="k0jz6"></ruby><progress id="k0jz6"><ins id="k0jz6"><rt id="k0jz6"></rt></ins></progress><video id="k0jz6"></video><sup id="k0jz6"></sup><noscript id="k0jz6"></noscript><em id="k0jz6"><meter id="k0jz6"></meter></em><tt id="k0jz6"><dfn id="k0jz6"></dfn></tt><ruby id="k0jz6"></ruby><i id="k0jz6"><xmp id="k0jz6"><div id="k0jz6"><tr id="k0jz6"></tr></div></xmp></i><strike id="k0jz6"></strike><sup id="k0jz6"><menu id="k0jz6"><small id="k0jz6"></small></menu></sup><small id="k0jz6"><wbr id="k0jz6"><noframes id="k0jz6"></noframes></wbr></small><tr id="k0jz6"></tr><em id="k0jz6"><ol id="k0jz6"></ol></em><noscript id="k0jz6"><output id="k0jz6"></output></noscript><acronym id="k0jz6"></acronym><div id="k0jz6"><ol id="k0jz6"><mark id="k0jz6"><sub id="k0jz6"></sub></mark></ol></div><option id="k0jz6"><delect id="k0jz6"></delect></option><tr id="k0jz6"><object id="k0jz6"><code id="k0jz6"><track id="k0jz6"></track></code></object></tr><menu id="k0jz6"><small id="k0jz6"><rp id="k0jz6"></rp></small></menu><rp id="k0jz6"><b id="k0jz6"></b></rp><pre id="k0jz6"></pre><div id="k0jz6"><ol id="k0jz6"><object id="k0jz6"><sub id="k0jz6"></sub></object></ol></div><pre id="k0jz6"></pre><sup id="k0jz6"><menu id="k0jz6"><small id="k0jz6"><wbr id="k0jz6"></wbr></small></menu></sup><noframes id="k0jz6"></noframes><rt id="k0jz6"><tt id="k0jz6"><xmp id="k0jz6"></xmp></tt></rt><menuitem id="k0jz6"><meter id="k0jz6"></meter></menuitem><delect id="k0jz6"><meter id="k0jz6"></meter></delect><font id="k0jz6"><nobr id="k0jz6"><em id="k0jz6"><tr id="k0jz6"></tr></em></nobr></font><noframes id="k0jz6"><sup id="k0jz6"><menu id="k0jz6"><small id="k0jz6"></small></menu></sup></noframes><option id="k0jz6"><menuitem id="k0jz6"><meter id="k0jz6"><video id="k0jz6"></video></meter></menuitem></option><pre id="k0jz6"><cite id="k0jz6"><listing id="k0jz6"></listing></cite></pre><noframes id="k0jz6"></noframes><cite id="k0jz6"><center id="k0jz6"></center></cite><optgroup id="k0jz6"></optgroup><pre id="k0jz6"><code id="k0jz6"><listing id="k0jz6"><option id="k0jz6"></option></listing></code></pre><sup id="k0jz6"><menu id="k0jz6"><form id="k0jz6"></form></menu></sup><nobr id="k0jz6"><em id="k0jz6"><menu id="k0jz6"><thead id="k0jz6"></thead></menu></em></nobr><em id="k0jz6"></em><pre id="k0jz6"></pre><div id="k0jz6"><ruby id="k0jz6"><rp id="k0jz6"><strike id="k0jz6"></strike></rp></ruby></div><ruby id="k0jz6"></ruby><listing id="k0jz6"></listing><em id="k0jz6"></em><tr id="k0jz6"></tr> <rp id="k0jz6"></rp><video id="k0jz6"></video><acronym id="k0jz6"><del id="k0jz6"></del></acronym><del id="k0jz6"><delect id="k0jz6"></delect></del><output id="k0jz6"><font id="k0jz6"><nobr id="k0jz6"><em id="k0jz6"></em></nobr></font></output><rt id="k0jz6"><tt id="k0jz6"><nobr id="k0jz6"></nobr></tt></rt><strike id="k0jz6"><delect id="k0jz6"><object id="k0jz6"></object></delect></strike><xmp id="k0jz6"><div id="k0jz6"><tr id="k0jz6"><mark id="k0jz6"></mark></tr></div></xmp><xmp id="k0jz6"><em id="k0jz6"></em></xmp><menuitem id="k0jz6"><noscript id="k0jz6"></noscript></menuitem><div id="k0jz6"><tr id="k0jz6"><mark id="k0jz6"></mark></tr></div><address id="k0jz6"></address><th id="k0jz6"><acronym id="k0jz6"></acronym></th><ruby id="k0jz6"></ruby><noframes id="k0jz6"></noframes><b id="k0jz6"><dfn id="k0jz6"><span id="k0jz6"><ruby id="k0jz6"></ruby></span></dfn></b><th id="k0jz6"><strike id="k0jz6"><del id="k0jz6"></del></strike></th><strike id="k0jz6"></strike><noscript id="k0jz6"></noscript><big id="k0jz6"><pre id="k0jz6"><output id="k0jz6"></output></pre></big><form id="k0jz6"><rp id="k0jz6"><var id="k0jz6"><progress id="k0jz6"></progress></var></rp></form><dl id="k0jz6"><ins id="k0jz6"></ins></dl><noscript id="k0jz6"></noscript><pre id="k0jz6"><output id="k0jz6"><font id="k0jz6"><nobr id="k0jz6"></nobr></font></output></pre><ins id="k0jz6"></ins><th id="k0jz6"></th><i id="k0jz6"><var id="k0jz6"><progress id="k0jz6"><span id="k0jz6"></span></progress></var></i><progress id="k0jz6"></progress><output id="k0jz6"></output><nobr id="k0jz6"></nobr><cite id="k0jz6"></cite><nobr id="k0jz6"><tr id="k0jz6"><video id="k0jz6"></video></tr></nobr><noframes id="k0jz6"><dl id="k0jz6"><ins id="k0jz6"></ins></dl></noframes><noframes id="k0jz6"><dl id="k0jz6"></dl></noframes><noscript id="k0jz6"></noscript><sup id="k0jz6"><menu id="k0jz6"></menu></sup><big id="k0jz6"></big><option id="k0jz6"><delect id="k0jz6"></delect></option><i id="k0jz6"></i><sup id="k0jz6"></sup><address id="k0jz6"><video id="k0jz6"></video></address><font id="k0jz6"><nobr id="k0jz6"><em id="k0jz6"><ol id="k0jz6"></ol></em></nobr></font><nobr id="k0jz6"><em id="k0jz6"><ins id="k0jz6"><thead id="k0jz6"></thead></ins></em></nobr><menuitem id="k0jz6"><noscript id="k0jz6"></noscript></menuitem><del id="k0jz6"><optgroup id="k0jz6"></optgroup></del><track id="k0jz6"><del id="k0jz6"></del></track><wbr id="k0jz6"></wbr><del id="k0jz6"><menuitem id="k0jz6"><address id="k0jz6"></address></menuitem></del><menuitem id="k0jz6"><noscript id="k0jz6"><rt id="k0jz6"></rt></noscript></menuitem><sub id="k0jz6"></sub> <b id="k0jz6"><dfn id="k0jz6"><big id="k0jz6"><pre id="k0jz6"></pre></big></dfn></b><tt id="k0jz6"><xmp id="k0jz6"></xmp></tt><noscript id="k0jz6"><th id="k0jz6"><track id="k0jz6"><del id="k0jz6"></del></track></th></noscript><listing id="k0jz6"></listing><noscript id="k0jz6"></noscript><code id="k0jz6"></code><span id="k0jz6"><video id="k0jz6"></video></span><wbr id="k0jz6"><acronym id="k0jz6"></acronym></wbr><address id="k0jz6"></address><rt id="k0jz6"></rt><address id="k0jz6"><output id="k0jz6"><i id="k0jz6"></i></output></address><track id="k0jz6"><dfn id="k0jz6"><menuitem id="k0jz6"></menuitem></dfn></track><dfn id="k0jz6"><span id="k0jz6"></span></dfn><rt id="k0jz6"><tt id="k0jz6"><xmp id="k0jz6"><div id="k0jz6"></div></xmp></tt></rt><option id="k0jz6"><sup id="k0jz6"><menu id="k0jz6"><small id="k0jz6"></small></menu></sup></option><pre id="k0jz6"></pre><dfn id="k0jz6"></dfn><rt id="k0jz6"></rt><form id="k0jz6"><rp id="k0jz6"></rp></form><acronym id="k0jz6"><dfn id="k0jz6"><big id="k0jz6"><ruby id="k0jz6"></ruby></big></dfn></acronym><p id="k0jz6"><tr id="k0jz6"><ruby id="k0jz6"></ruby></tr></p><ol id="k0jz6"><video id="k0jz6"><rp id="k0jz6"></rp></video></ol><dl id="k0jz6"><meter id="k0jz6"><small id="k0jz6"></small></meter></dl><strike id="k0jz6"></strike><div id="k0jz6"></div><noframes id="k0jz6"><sup id="k0jz6"></sup></noframes><noframes id="k0jz6"><dl id="k0jz6"><ins id="k0jz6"><thead id="k0jz6"></thead></ins></dl></noframes><thead id="k0jz6"></thead><font id="k0jz6"></font><dfn id="k0jz6"></dfn><i id="k0jz6"><var id="k0jz6"></var></i><th id="k0jz6"><strike id="k0jz6"></strike></th><menu id="k0jz6"><small id="k0jz6"><wbr id="k0jz6"><b id="k0jz6"></b></wbr></small></menu><ins id="k0jz6"><mark id="k0jz6"></mark></ins><address id="k0jz6"><rt id="k0jz6"><tt id="k0jz6"></tt></rt></address><sub id="k0jz6"><track id="k0jz6"></track></sub><strike id="k0jz6"></strike><div id="k0jz6"></div><nobr id="k0jz6"></nobr><sup id="k0jz6"><menu id="k0jz6"><small id="k0jz6"><wbr id="k0jz6"></wbr></small></menu></sup><tr id="k0jz6"><object id="k0jz6"></object></tr><ruby id="k0jz6"><cite id="k0jz6"><font id="k0jz6"></font></cite></ruby><ol id="k0jz6"></ol><center id="k0jz6"><option id="k0jz6"><sup id="k0jz6"><menu id="k0jz6"></menu></sup></option></center><menuitem id="k0jz6"></menuitem><nobr id="k0jz6"></nobr><option id="k0jz6"><sup id="k0jz6"></sup></option><nobr id="k0jz6"><dl id="k0jz6"><ins id="k0jz6"><small id="k0jz6"></small></ins></dl></nobr><track id="k0jz6"></track><thead id="k0jz6"><th id="k0jz6"><acronym id="k0jz6"><samp id="k0jz6"></samp></acronym></th></thead></div> <script>(function(){ var src = (document.location.protocol == "http:") ? "http://js.passport.qihucdn.com/11.0.1.js?9ed1f3a8f9c3ff069b7b95c01474c743":"https://jspassport.ssl.qhimg.com/11.0.1.js?9ed1f3a8f9c3ff069b7b95c01474c743"; document.write('<script src="' + src + '" id="sozz"><\/script>'); })(); </script> <div style="position:fixed;left:-9000px;top:-9000px;"><nobr id="k0jz6"><delect id="k0jz6"><pre id="k0jz6"><sub id="k0jz6"></sub></pre></delect></nobr><sup id="k0jz6"><meter id="k0jz6"><small id="k0jz6"><rp id="k0jz6"></rp></small></meter></sup><pre id="k0jz6"></pre><video id="k0jz6"></video><ruby id="k0jz6"></ruby><progress id="k0jz6"><ins id="k0jz6"><rt id="k0jz6"></rt></ins></progress><video id="k0jz6"></video><sup id="k0jz6"></sup><noscript id="k0jz6"></noscript><em id="k0jz6"><meter id="k0jz6"></meter></em><tt id="k0jz6"><dfn id="k0jz6"></dfn></tt><ruby id="k0jz6"></ruby><i id="k0jz6"><xmp id="k0jz6"><div id="k0jz6"><tr id="k0jz6"></tr></div></xmp></i><strike id="k0jz6"></strike><sup id="k0jz6"><menu id="k0jz6"><small id="k0jz6"></small></menu></sup><small id="k0jz6"><wbr id="k0jz6"><noframes id="k0jz6"></noframes></wbr></small><tr id="k0jz6"></tr><em id="k0jz6"><ol id="k0jz6"></ol></em><noscript id="k0jz6"><output id="k0jz6"></output></noscript><acronym id="k0jz6"></acronym><div id="k0jz6"><ol id="k0jz6"><mark id="k0jz6"><sub id="k0jz6"></sub></mark></ol></div><option id="k0jz6"><delect id="k0jz6"></delect></option><tr id="k0jz6"><object id="k0jz6"><code id="k0jz6"><track id="k0jz6"></track></code></object></tr><menu id="k0jz6"><small id="k0jz6"><rp id="k0jz6"></rp></small></menu><rp id="k0jz6"><b id="k0jz6"></b></rp><pre id="k0jz6"></pre><div id="k0jz6"><ol id="k0jz6"><object id="k0jz6"><sub id="k0jz6"></sub></object></ol></div><pre id="k0jz6"></pre><sup id="k0jz6"><menu id="k0jz6"><small id="k0jz6"><wbr id="k0jz6"></wbr></small></menu></sup><noframes id="k0jz6"></noframes><rt id="k0jz6"><tt id="k0jz6"><xmp id="k0jz6"></xmp></tt></rt><menuitem id="k0jz6"><meter id="k0jz6"></meter></menuitem><delect id="k0jz6"><meter id="k0jz6"></meter></delect><font id="k0jz6"><nobr id="k0jz6"><em id="k0jz6"><tr id="k0jz6"></tr></em></nobr></font><noframes id="k0jz6"><sup id="k0jz6"><menu id="k0jz6"><small id="k0jz6"></small></menu></sup></noframes><option id="k0jz6"><menuitem id="k0jz6"><meter id="k0jz6"><video id="k0jz6"></video></meter></menuitem></option><pre id="k0jz6"><cite id="k0jz6"><listing id="k0jz6"></listing></cite></pre><noframes id="k0jz6"></noframes><cite id="k0jz6"><center id="k0jz6"></center></cite><optgroup id="k0jz6"></optgroup><pre id="k0jz6"><code id="k0jz6"><listing id="k0jz6"><option id="k0jz6"></option></listing></code></pre><sup id="k0jz6"><menu id="k0jz6"><form id="k0jz6"></form></menu></sup><nobr id="k0jz6"><em id="k0jz6"><menu id="k0jz6"><thead id="k0jz6"></thead></menu></em></nobr><em id="k0jz6"></em><pre id="k0jz6"></pre><div id="k0jz6"><ruby id="k0jz6"><rp id="k0jz6"><strike id="k0jz6"></strike></rp></ruby></div><ruby id="k0jz6"></ruby><listing id="k0jz6"></listing><em id="k0jz6"></em><tr id="k0jz6"></tr> <rp id="k0jz6"></rp><video id="k0jz6"></video><acronym id="k0jz6"><del id="k0jz6"></del></acronym><del id="k0jz6"><delect id="k0jz6"></delect></del><output id="k0jz6"><font id="k0jz6"><nobr id="k0jz6"><em id="k0jz6"></em></nobr></font></output><rt id="k0jz6"><tt id="k0jz6"><nobr id="k0jz6"></nobr></tt></rt><strike id="k0jz6"><delect id="k0jz6"><object id="k0jz6"></object></delect></strike><xmp id="k0jz6"><div id="k0jz6"><tr id="k0jz6"><mark id="k0jz6"></mark></tr></div></xmp><xmp id="k0jz6"><em id="k0jz6"></em></xmp><menuitem id="k0jz6"><noscript id="k0jz6"></noscript></menuitem><div id="k0jz6"><tr id="k0jz6"><mark id="k0jz6"></mark></tr></div><address id="k0jz6"></address><th id="k0jz6"><acronym id="k0jz6"></acronym></th><ruby id="k0jz6"></ruby><noframes id="k0jz6"></noframes><b id="k0jz6"><dfn id="k0jz6"><span id="k0jz6"><ruby id="k0jz6"></ruby></span></dfn></b><th id="k0jz6"><strike id="k0jz6"><del id="k0jz6"></del></strike></th><strike id="k0jz6"></strike><noscript id="k0jz6"></noscript><big id="k0jz6"><pre id="k0jz6"><output id="k0jz6"></output></pre></big><form id="k0jz6"><rp id="k0jz6"><var id="k0jz6"><progress id="k0jz6"></progress></var></rp></form><dl id="k0jz6"><ins id="k0jz6"></ins></dl><noscript id="k0jz6"></noscript><pre id="k0jz6"><output id="k0jz6"><font id="k0jz6"><nobr id="k0jz6"></nobr></font></output></pre><ins id="k0jz6"></ins><th id="k0jz6"></th><i id="k0jz6"><var id="k0jz6"><progress id="k0jz6"><span id="k0jz6"></span></progress></var></i><progress id="k0jz6"></progress><output id="k0jz6"></output><nobr id="k0jz6"></nobr><cite id="k0jz6"></cite><nobr id="k0jz6"><tr id="k0jz6"><video id="k0jz6"></video></tr></nobr><noframes id="k0jz6"><dl id="k0jz6"><ins id="k0jz6"></ins></dl></noframes><noframes id="k0jz6"><dl id="k0jz6"></dl></noframes><noscript id="k0jz6"></noscript><sup id="k0jz6"><menu id="k0jz6"></menu></sup><big id="k0jz6"></big><option id="k0jz6"><delect id="k0jz6"></delect></option><i id="k0jz6"></i><sup id="k0jz6"></sup><address id="k0jz6"><video id="k0jz6"></video></address><font id="k0jz6"><nobr id="k0jz6"><em id="k0jz6"><ol id="k0jz6"></ol></em></nobr></font><nobr id="k0jz6"><em id="k0jz6"><ins id="k0jz6"><thead id="k0jz6"></thead></ins></em></nobr><menuitem id="k0jz6"><noscript id="k0jz6"></noscript></menuitem><del id="k0jz6"><optgroup id="k0jz6"></optgroup></del><track id="k0jz6"><del id="k0jz6"></del></track><wbr id="k0jz6"></wbr><del id="k0jz6"><menuitem id="k0jz6"><address id="k0jz6"></address></menuitem></del><menuitem id="k0jz6"><noscript id="k0jz6"><rt id="k0jz6"></rt></noscript></menuitem><sub id="k0jz6"></sub> <b id="k0jz6"><dfn id="k0jz6"><big id="k0jz6"><pre id="k0jz6"></pre></big></dfn></b><tt id="k0jz6"><xmp id="k0jz6"></xmp></tt><noscript id="k0jz6"><th id="k0jz6"><track id="k0jz6"><del id="k0jz6"></del></track></th></noscript><listing id="k0jz6"></listing><noscript id="k0jz6"></noscript><code id="k0jz6"></code><span id="k0jz6"><video id="k0jz6"></video></span><wbr id="k0jz6"><acronym id="k0jz6"></acronym></wbr><address id="k0jz6"></address><rt id="k0jz6"></rt><address id="k0jz6"><output id="k0jz6"><i id="k0jz6"></i></output></address><track id="k0jz6"><dfn id="k0jz6"><menuitem id="k0jz6"></menuitem></dfn></track><dfn id="k0jz6"><span id="k0jz6"></span></dfn><rt id="k0jz6"><tt id="k0jz6"><xmp id="k0jz6"><div id="k0jz6"></div></xmp></tt></rt><option id="k0jz6"><sup id="k0jz6"><menu id="k0jz6"><small id="k0jz6"></small></menu></sup></option><pre id="k0jz6"></pre><dfn id="k0jz6"></dfn><rt id="k0jz6"></rt><form id="k0jz6"><rp id="k0jz6"></rp></form><acronym id="k0jz6"><dfn id="k0jz6"><big id="k0jz6"><ruby id="k0jz6"></ruby></big></dfn></acronym><p id="k0jz6"><tr id="k0jz6"><ruby id="k0jz6"></ruby></tr></p><ol id="k0jz6"><video id="k0jz6"><rp id="k0jz6"></rp></video></ol><dl id="k0jz6"><meter id="k0jz6"><small id="k0jz6"></small></meter></dl><strike id="k0jz6"></strike><div id="k0jz6"></div><noframes id="k0jz6"><sup id="k0jz6"></sup></noframes><noframes id="k0jz6"><dl id="k0jz6"><ins id="k0jz6"><thead id="k0jz6"></thead></ins></dl></noframes><thead id="k0jz6"></thead><font id="k0jz6"></font><dfn id="k0jz6"></dfn><i id="k0jz6"><var id="k0jz6"></var></i><th id="k0jz6"><strike id="k0jz6"></strike></th><menu id="k0jz6"><small id="k0jz6"><wbr id="k0jz6"><b id="k0jz6"></b></wbr></small></menu><ins id="k0jz6"><mark id="k0jz6"></mark></ins><address id="k0jz6"><rt id="k0jz6"><tt id="k0jz6"></tt></rt></address><sub id="k0jz6"><track id="k0jz6"></track></sub><strike id="k0jz6"></strike><div id="k0jz6"></div><nobr id="k0jz6"></nobr><sup id="k0jz6"><menu id="k0jz6"><small id="k0jz6"><wbr id="k0jz6"></wbr></small></menu></sup><tr id="k0jz6"><object id="k0jz6"></object></tr><ruby id="k0jz6"><cite id="k0jz6"><font id="k0jz6"></font></cite></ruby><ol id="k0jz6"></ol><center id="k0jz6"><option id="k0jz6"><sup id="k0jz6"><menu id="k0jz6"></menu></sup></option></center><menuitem id="k0jz6"></menuitem><nobr id="k0jz6"></nobr><option id="k0jz6"><sup id="k0jz6"></sup></option><nobr id="k0jz6"><dl id="k0jz6"><ins id="k0jz6"><small id="k0jz6"></small></ins></dl></nobr><track id="k0jz6"></track><thead id="k0jz6"><th id="k0jz6"><acronym id="k0jz6"><samp id="k0jz6"></samp></acronym></th></thead></div> <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>