ºìÁªLinuxÃÅ»§
Linux°ïÖú

Ç¿ÁÒÍƼö£ºLinux¾­µäÊé¼® ¡¶¸ßÐÔÄÜLinux·þÎñÆ÷¹¹½¨ÊµÕ½¢ò¡·

·¢²¼Ê±¼ä:2014-10-30 16:06:31À´Ô´:ºìÁª×÷Õß:ixdba
[i=s] ±¾Ìû×îºóÓÉ ixdba ÓÚ 2014-10-30 16:08 ±à¼­ [/i]

ÓɹúÄÚÖøÃû¼¼ÊõÉçÇø51CTO¶¦Á¦ÍƼö¡¢»ªÕÂͼÊé³öÆ·¡¢2014ÄêÄÏ·ÇÂìÒÏ£¨¸ß¿¡·å£©×îм¼ÊõÁ¦×÷£º¡¶¸ßÐÔÄÜLinux·þÎñÆ÷¹¹½¨ÊµÕ½----ϵͳ°²È«¡¢¹ÊÕÏÅŲ顢×Ô¶¯»¯ÔËάÓ뼯Ⱥ¼Ü¹¹¡·£¬ÒѾ­Éϼܷ¢ÐУ¬´ËÊéÊÇ¡¶¸ßÐÔÄÜLinux·þÎñÆ÷¹¹½¨ÊµÕ½---ÔËά¼à¿Ø¡¢ÐÔÄܵ÷ÓÅ¡¢¼¯ÈºÓ¦Óá·µÄæ¢ÃÃƪ£¬ÈÔÈ»ÑØÓÃÁËʵս¡¢ÊµÓá¢Í¨Ëס¢Ò׶®µÄд×÷Ìص㣬ÔÚÄÚÈÝÉϸü¼Óʵս»¯£¬´ÓÔËάµÄ¶à¸ö·½ÃæÒÔ½üËÆÕæʵµÄ»·¾³½éÉÜÔËά¹¤×÷Öеĸ÷¸ö·½·½ÃæÃ棬´ËÊéÐÂÔö¼ÓÁËÔËάÖкÜÈÝÒ׺öÂÔµ«ÊÇÓÖÊǷdz£ÖØÒªµÄ°²È«Õ½ڣ¬Õⲿ·ÖÄÚÈÝÊDZ¾ÊéµÄÒ»´óÁÁµã£¬Ç¿ÁÒÍƼö¸ø´ó¼Ò¡£·ÅÑÛͬÀàµÄͼÊ飬ÄܽéÉÜÔËά°²È«·½ÃæµÄ²¢²»¶à£»

ͬʱ£¬´ËÊé´Ó¿ªÊ¼Ö®Ç°µÄ¼òµ¥ÔËά½×¶ÎÂõÏòÁË´ó¹æÄ£ÔËάÄÚÈݵĽéÉÜ£¬×Ô¶¯ »¯ÔËάƪÖ÷Òª½éÉÜÁ˺£Á¿Ö÷»úµÄ×Ô¶¯»¯²¿Êð/ÅäÖù¤¾ß£¬½Ó׎éÉÜÁËÔËάµÄºËÐÄ£º×Ô¶¯»¯¼à¿Ø¡¢·Ö²¼Ê½¼à¿ØµÄÓ¦Óã¬ÕâЩÄÚÈÝÊǶԴó¹æÄ£¼¯ÈºÔËάϵÄʵս½éÉÜ£¬Õâ Ò²·ûºÏÔËάÈÕÒæ·¢Õ¹µÄÐèÒª¡£¶ø×îºóµÄ¼¯ÈºÓ¦Óò¿·ÖÖ÷Òª½²ÊöÁ˸߿ÉÓü¯ÈºÈí¼þ¡¢¸ºÔؾùºâ¼¯ÈºÈí¼þÒÔ¼°mysql¸ßÐÔÄܼ¯ÈºµÄʵÀýÓ¦Óá£

×ݹۡ¶¸ßÐÔÄÜLinux¹¹½¨ÊµÕ½¢ò¡·È«ÊéÄÚÈÝ£¬ÄÚÈݸü¼ÓʵÓúÍʵս»¯£¬Èç¹ûÄãÊÇLinuxµÄ¿ñÈÈ°®ºÃÕߣ¬»òÕßÏë´ÓÊÂLinuxÔËά¹¤×÷£¬¾ø¶Ô²»Òª´í¹ý¡¶¸ßÐÔÄÜLinux¹¹½¨ÊµÕ½¢ò¡·Õâ±¾Ê飬ÒòΪËü¾ø¶Ô²»»áÁîÄãʧÍû¡£

×îºó£¬·ÖÏíϱ¾ÊéµÄĿ¼£¬Èôó¼Ò¶Ô±¾ÊéÄÚÈÝÏȶÃΪ¿ì£¡

°²È«ÔËάƪ
Ò» Linux·þÎñÆ÷°²È«ÔËά
1.1 ÕË»§ºÍµÇ¼°²È«
1.1.1 ɾ³ýÌØÊâµÄÕË»§ºÍÕË»§×é
1.1.2 ¹Ø±Õϵͳ²»ÐèÒªµÄ·þÎñ
1.1.3 ÃÜÂ밲ȫ²ßÂÔ
1.1.4 ºÏÀíʹÓÃsu¡¢sudoÃüÁî
1.1.5 ɾ¼õϵͳµÇ¼»¶Ó­ÐÅÏ¢
1.1.6 ½ûÖ¹Control-Alt-Delete¼üÅ̹رÕÃüÁî
1.2 Ô¶³Ì·ÃÎÊ¡¢ÈÏÖ¤°²È«
1.2.1 Ô¶³ÌµÇ¼½ûÓÃTelnet¶ø²ÉÓÃSSH·½Ê½
1.2.2 ºÏÀíʹÓÃShellÀúÊ·ÃüÁî¼Ç¼¹¦ÄÜ
1.2.3 ÆôÓÃtcp_wrappers·À»ðǽ
1.3 Îļþϵͳ°²È«
1.3.1 Ëø¶¨ÏµÍ³ÖØÒªÎļþ
1.3.2 ÎļþȨÏÞ¼ì²éºÍÐÞ¸Ä
1.3.3 /tmp¡¢/var/tmp¡¢/dev/shm°²È«É趨
1.4 ϵͳÈí¼þ°²È«¹ÜÀí
1.4.1 Èí¼þ×Ô¶¯Éý¼¶¹¤¾ßyum
1.4.2 yumµÄ°²×°ÓëÅäÖÃ
1.4.3 yumµÄÌصãÓë»ù±¾Ó÷¨
1.4.4 ¼¸¸ö²»´íµÄyumÔ´
1.5 LinuxºóÃÅÈëÇÖ¼ì²â¹¤¾ß
1.5.1 rootkitºóÃżì²â¹¤¾ßchkrootkit
1.5.2 rootkitºóÃżì²â¹¤¾ßrkhunter
1.6 ·þÎñÆ÷ÔâÊܹ¥»÷ºóµÄ´¦Àí¹ý³Ì
1.6.1 ´¦Àí·þÎñÆ÷ÔâÊܹ¥»÷µÄÒ»°ã˼·
1.6.2 ¼ì²é²¢Ëø¶¨¿ÉÒÉÓû§
1.6.3 ²é¿´ÏµÍ³ÈÕÖ¾
1.6.4 ¼ì²é²¢¹Ø±Õϵͳ¿ÉÒɽø³Ì
1.6.5 ¼ì²éÎļþϵͳµÄÍêºÃÐÔ
1.7 Ò»´ÎLinux±»ÈëÇÖºóµÄ·ÖÎö
1.7.1 Êܹ¥»÷ÏÖÏó
1.7.2 ³õ²½·ÖÎö
1.7.3 ¶ÏÍø·ÖÎöϵͳ
1.7.4 Ñ°ÕÒ¹¥»÷Ô´
1.7.5 ²éÕÒ¹¥»÷Ô­Òò
1.7.6 ½Ò¿ªÃÕÍÅ
1.7.7 ÈçºÎ»Ö¸´ÍøÕ¾

¶þ LinuxÍøÂ簲ȫÔËά

2.1 ÍøÂçʵʱÁ÷Á¿¼à²â¹¤¾ßiftop
2.1.1 iftopÄÜ×öʲô
2.1.2 iftopµÄ°²×°
2.1.3 ʹÓÃiftop¼à¿ØÍø¿¨ÊµÊ±Á÷Á¿
2.2ÍøÂçÁ÷Á¿¼à¿ØÓë·ÖÎö¹¤¾ßNtop/Ntopng
2.2.1 NtopÓëMRTGµÄÒìͬ
2.2.2 NtopÓëNtopng¹¦ÄܽéÉÜ
2.2.3 °²×°NtopÓëNtopng
2.2.4 Ntop/NtopngʹÓü¼ÇÉ
2.3 ÍøÂçÐÔÄÜÆÀ¹À¹¤¾ßIperf
2.3.1 IperfÄÜ×öʲô
2.3.2 Iperf°²×°ÓëʹÓÃ
2.3.3 IperfÓ¦ÓÃʵÀý
2.4 ÍøÂç̽²âºÍ°²È«ÉóºË¹¤¾ßNmap
2.4.1 Nmap¡¢Zenmap¼ò½é
2.4.2 Nmap»ù±¾¹¦ÄÜÓë½á¹¹
2.4.3 NmapµÄ°²×°ÓëÑéÖ¤
2.4.4 NmapµÄµäÐÍÓ÷¨
2.4.5 NmapÖ÷»ú·¢ÏÖɨÃè
2.4.6 Nmap¶Ë¿ÚɨÃè
2.4.7 Nmap°æ±¾Õì²â

Èý Êý¾Ý°²È«¹¤¾ßdrbd¡¢extundelete

3.1 Êý¾Ý¾µÏñÈí¼þDRBD½éÉÜ
3.1.1 DRBDµÄ»ù±¾¹¦ÄÜ
3.1.2 DRBDµÄ¹¹³É
3.1.3 DRBDÓëÏÖÔڵļ¯ÈºµÄ¹Øϵ
3.1.4 DRBDµÄÖ÷ÒªÌØÐÔ
3.2 DRBDµÄ°²×°ÓëÅäÖÃ
3.2.1 °²×°»·¾³ËµÃ÷
3.2.2 DRBDµÄ°²×°²¿Êð
3.2.3 ¿ìËÙÅäÖÃÒ»¸öDRBD¾µÏñϵͳ
3.3 DRBDµÄ¹ÜÀíÓëά»¤
3.3.1 Æô¶¯DRDB
3.3.2 ²âÊÔDRBDÊý¾Ý¾µÏñ
3.3.3 DRBDÖ÷±¸½ÚµãÇл»
3.4Êý¾Ý»Ö¸´Èí¼þextundelete½éÉÜ
3.4.1 ÈçºÎʹÓá°rm -rf¡±ÃüÁî
3.4.2 extundeleteÓëext3grepµÄÒìͬ
3.4.3 extundeleteµÄ»Ö¸´Ô­Àí
3.4.4 °²×°extundelete
3.4.5 extundeleteÓ÷¨Ïê½â
3.5 ʵսextundelete»Ö¸´Êý¾ÝµÄ¹ý³Ì
3.5.1 ͨ¹ýextundelete»Ö¸´µ¥¸öÎļþ
3.5.2 ͨ¹ýextundelete»Ö¸´µ¥¸öĿ¼
3.5.3 ͨ¹ýextundelete»Ö¸´ËùÓÐÎóɾ³ýÊý¾Ý
3.5.4 ͨ¹ýextundelete»Ö¸´Ä³¸öʱ¼ä¶ÎµÄÊý¾Ý



¹ÊÕÏÅŲéƪ
ËÄ Linux³£¼ûϵͳ¹ÊÕÏ´¦Àí·½·¨

4.1 ´¦Àíϵͳ¹ÊÕϵĻù±¾Ë¼Â·
4.2 LinuxϵͳÎÞ·¨Æô¶¯µÄ½â¾ö·½·¨
4.2.1 ÎļþϵͳÆÆ»µµ¼ÖÂϵͳÎÞ·¨Æô¶¯
4.2.2 /etc/fstabÎļþ¶ªÊ§µ¼ÖÂϵͳÎÞ·¨Æô¶¯
4.3 LinuxϵͳÎÞÏìÓ¦£¨ËÀ»ú£©ÎÊÌâ·ÖÎö
4.4 Linuxϳ£¼ûÍøÂç¹ÊÕϵĴ¦Àí˼·
4.3.1 ¼ì²éÍøÂçÓ²¼þÎÊÌâ
4.3.2 ¼ì²éÍø¿¨ÊÇ·ñ¹¤×÷Õý³£
4.3.3 ¼ì²éDNS½âÎöÎļþÊÇ·ñÉèÖÃÕýÈ·
4.3.4 ¼ì²é·þÎñÊÇ·ñÕý³£´ò¿ª
4.3.5 ¼ì²é·ÃÎÊȨÏÞÊÇ·ñ´ò¿ª
4.3.6 ¼ì²é¾ÖÓòÍøÖ÷»úÖ®¼äÁª»úÊÇ·ñÕý³£

Îå Linux¹ÊÕÏÅŲ鰸Àýʵս

5.1 ³£¼ûϵͳ¹ÊÕÏ°¸Àý
5.1.1 suÇл»Óû§´øÀ´µÄÒÉ»ó
5.1.2 ¡°Read-only file system¡±´íÎóÓë½â¾ö·½·¨
5.1.3 ¡°Argument list too long¡±´íÎóÓë½â¾ö·½·¨
5.1.4 inodeºÄ¾¡µ¼ÖÂÓ¦ÓùÊÕÏ
5.1.5 ÎļþÒÑɾ³ýµ«¿Õ¼ä²»ÊͷŵÄÔ­Òò
5.1.6 ¡°Too many open files¡±´íÎóÓë½â¾ö·½·¨
5.2 apache³£¼û´íÎó¹ÊÕÏ°¸Àý
5.2.1 ¡°No space left on device¡±´íÎóÓë½â¾ö·½·¨
5.2.2 apache(20012)¹ÊÕÏÓë½â¾ö·½·¨
5.2.4 ¡°could not bind to address 0.0.0.0:80¡°´íÎóÓë½â¾ö·½·¨
5.3 Ò»´ÎÒòNAS´æ´¢¹ÊÕÏÒýÆðµÄLinuxϵͳ»Ö¸´°¸Àý
5.3.1 ¹ÊÕÏÏÖÏóÃèÊö
5.3.2 ÎÊÌâÅжÏ˼·
5.3.3 ÎÊÌâ´¦Àí¹ý³Ì
5.3.4 ½â¾öÎÊÌâ

×Ô¶¯»¯ÔËάƪ
Áù ÇáÁ¿¼¶ÔËάÀûÆ÷pssh¡¢pdshºÍmussh
6.1 ²¢ÐÐsshÔËά¹¤¾ßpssh
6.1.1 psshÓ¦Óó¡¾°
6.1.2 psshµÄ°²×°ÓëÓ÷¨
6.1.3 psshÓ¦ÓÃʵÀý
6.2 ²¢Ðзֲ¼Ê½ÔËά¹¤¾ßPDSH
6.2.1 PDSHÓ¦Óó¡¾°
6.2.2 PDSH°²×°ÓëÓï·¨½éÉÜ
6.2.3 PDSHÓ¦ÓÃʵÀý
6.3 ¶àÖ÷»ússh·â×°Æ÷mussh
6.3.1 mussh¹¦ÄܽéÉÜ
6.3.2 musshµÄ°²×°ÓëÓï·¨½éÉÜ
6.3.3 musshÓ¦ÓÃʵÀý

Æß ·Ö²¼Ê½¼à¿Øϵͳganglia

7.1 Ganglia¼ò½é
7.2 GangliaµÄ×é³É
7.3 GangliaµÄ¹¤×÷Ô­Àí
7.3.1 GangliaÊý¾ÝÁ÷Ïò·ÖÎö
7.3.2 Ganglia¹¤×÷ģʽ
7.4 GangliaµÄ°²×°
7.4.1 yum°²×°·½Ê½
7.4.2 Ô´Â뷽ʽ°²×°Ganglia
7.5 ÅäÖÃÒ»¸öGanglia·Ö²¼Ê½¼à¿Øϵͳ
7.5.1 GangliaÅäÖÃÎļþ½éÉÜ
7.5.2 Ganglia¼à¿Øϵͳ¼Ü¹¹Í¼
7.5.3 Ganglia¼à¿Ø¹ÜÀí¶ËÅäÖÃ
7.5.4 Ganglia¿Í»§¶ËÅäÖÃ
7.5.5 GangliaÖ®Web¶ËÅäÖÃ
7.6 Ganglia¼à¿ØϵͳµÄ¹ÜÀíºÍά»¤
7.7 Ganglia¼à¿ØÀ©Õ¹ÊµÏÖ»úÖÆ
7.7.1 À©Õ¹Ganglia¼à¿Ø¹¦Äܵķ½·¨
7.7.2 ͨ¹ýgmetric½Ó¿ÚÀ©Õ¹Ganglia¼à¿Ø
7.7.3 ͨ¹ýpython²å¼þÀ©Õ¹ganglia¼à¿Ø
7.7.4 ʵս֮ÀûÓÃpython½Ó¿Ú¼à¿ØNginxÔËÐÐ״̬
7.8 GangliaÔÚʵ¼ÊÓ¦ÓÃÖÐÒª¿¼ÂǵÄÎÊÌâ
7.8.1 ÍøÂçIO¿ÉÄÜ´æÔÚÆ¿¾±
7.8.2 CPU¿ÉÄÜ´æÔÚÆ¿¾±
7.8.3 gmetad rrdÊý¾ÝдÈë¿ÉÄÜ´æÔÚÆ¿¾±

°Ë »ùÓÚnagiosµÄ·Ö²¼Ê½¼à¿Øƽ̨centreon

8.1 centreon¸ÅÊö
8.2 centreonµÄÌصã
8.3 centreonµÄ½á¹¹
8.4 °²×°centreon+nagios¼à¿Øϵͳ
8.4.1 °²×°Ö§³ÖcentreonµÄyumÔ´
8.4.2 °²×°ÏµÍ³»ù´¡ÒÀÀµ¿â
8.4.3 °²×°nagiosÒÔ¼°nagios-plugins
8.4.4 °²×°ndoutils
8.4.5 °²×°nrpe
8.4.6 °²×°centreon
8.4.7 °²×°ÅäÖÃCentreon Web
8.4.8 Æô¶¯centreonÏà¹Ø·þÎñ
8.4.9 °²×°ÎÊÌâ×ܽá
8.5 ÅäÖÃcentreon¼à¿Øϵͳ
8.5.1 Ìí¼ÓÖ÷»úºÍÖ÷»ú×é
8.5.2 ÅúÁ¿Ìí¼ÓÖ÷»ú
8.5.3 ¼à¿ØÒýÇæ¹ÜÀí
8.5.4 Ìí¼Ó·þÎñºÍ·þÎñ×é
8.5.5 ¼à¿Ø±¨¾¯ÅäÖÃ
8.5.6 Óû§ºÍÓû§È¨ÏÞ¹ÜÀí
8.6. ÅäÖ÷ֲ¼Ê½¼à¿Ø
8.6.1 ·Ö²¼Ê½¼à¿Ø¹¹¼ÜÓëʵÏÖÔ­Àí
8.6.2 ·Ö²¼Ê½¼à¿Ø´î½¨»·¾³½éÉÜ
8.6.3 ¼à¿ØÈí¼þµÄ°²×°
8.6.4 ÅäÖýڵã¼ässhÐÅÈεǼ
8.6.5 ÔÚCentral serverÉÏÌí¼Ó·Ö²¼Ê½¼à¿ØÅäÖÃ
8.7 ³£¼û·þÎñ¼à¿ØÅäÖÃ
8.7.1 Nagios²å¼þ±àд¹æ·¶
8.7.2 ¼à¿ØApacheÔËÐÐ״̬
8.7.3 ¼à¿ØMysqlÔËÐÐ״̬
8.7.4 ¼à¿ØHADOOP HDFSÔËÐÐ״̬
8.8 ×ÀÃæ¼à¿Ø±¨¾¯Æ÷Nagstamon

¾Å ͨ¹ýGangliaÓëCentreon¹¹½¨ÖÇÄÜ»¯¼à¿Ø±¨¾¯Æ½Ì¨

9.1 ÖÇÄÜÔËά¼à¿Ø±¨¾¯Æ½Ì¨µÄ×é³É
9.2 Ganglia×÷ΪÊý¾ÝÊÕ¼¯Ä£¿é
9.3 Centreon×÷Ϊ¼à¿Ø±¨¾¯Ä£¿é
9.4 GangliaÓëCentreonµÄÎÞ·ìÕûºÏ
9.4.1 Êý¾Ý³éÈ¡½Å±¾
9.4.2 ʵÏÖGangliaÓëCentreonµÄÍêÃÀÕûºÏ
9.5 ÔÚcentreonÖÐʵÏÖÅúÁ¿Êý¾ÝÊÕ¼¯Óë¼à¿Ø±¨¾¯

¼¯Èº¹¹¼Üƪ
Ê® ¸ßÐÔÄÜWeb·þÎñÆ÷Nginx
10.1 ¸ßÐÔÄÜWeb·þÎñÆ÷Nginx½éÉÜ
10.1.1 NginxµÄ×é³ÉÓ빤×÷Ô­Àí
10.1.2 NginxµÄÐÔÄÜÓÅÊÆ
10.2 NginxµÄ°²×°
10.2.1 °²×°NginxÒÀÀµ¿â
10.2.2 ¿ìËÙ°²×°Nginx
10.2.3 NginxÈÕ³£Î¬»¤¼¼ÇÉ
10.3 ÅäÖÃÓëµ÷ÊÔNginx
10.3.1 NginxÅäÖÃÎļþ½á¹¹
10.3.2 NginxÅäÖÃÎļþÏê½â
10.3.3 NginxÈÕ³£Î¬»¤¼¼ÇÉ
10.4 Nginx³£Óù¦ÄܽéÉÜ
10.4.1 Nginx·´Ïò´úÀíÓ¦ÓÃʵÀý
10.4.2 NginxµÄURLÖØдӦÓÃʵÀý
10.5 Nginx×÷ΪWeb»º´æ·þÎñÆ÷Ó¦Óð¸Àý
10.5.1 NginxÏ»º´æ·þÎñÆ÷µÄ°²×°
10.5.2 ÅäÖÃNginx»º´æ·þÎñÆ÷
10.5.3 ²âÊÔproxy_cacheʵÏֵĻº´æ¹¦ÄÜ
10.5.4 ÈçºÎÇå³ýÖ¸¶¨µÄURL»º´æ
10.6 Nginx×÷Ϊ¸ºÔؾùºâ·þÎñÆ÷Ó¦Óð¸Àý
10.6.1 NginxµÄ¸ºÔؾùºâËã·¨
10.6.2 NginxµÄ¸ºÔؾùºâÅäÖÃʵÀý
10.7 NginxÐÔÄÜÓÅ»¯¼¼ÇÉ
10.7.1 ±àÒë°²×°¹ý³ÌÓÅ»¯
10.7.2 ÀûÓÃTCMallocÓÅ»¯NginxµÄÐÔÄÜ
10.7.3 NginxÄں˲ÎÊýÓÅ»¯

ʮһ ¸ßÐÔÄܼ¯ÈºÈí¼þKeepalived

11.1 Keepalived½éÉÜ
11.1.1 KeepalivedÊÇʲô
11.1.2 VRRPЭÒéÓ빤×÷Ô­Àí
11.1.3 Keepalived¹¤×÷Ô­Àí
11.1.4 KeepalivedµÄÌåϵ½á¹¹
11.2 Keepalived°²×°ÓëÅäÖÃ
11.2.1 KeepalivedµÄ°²×°¹ý³Ì
11.2.2 KeepalivedµÄÈ«¾ÖÅäÖÃ
11.2.3 KeepalivedµÄVRRPDÅäÖÃ
11.2.4 KeepalivedµÄLVSÅäÖÃ
11.3 Keepalived»ù´¡¹¦ÄÜÓ¦ÓÃʵÀý
11.3.1 Keepalived»ù´¡HA¹¦ÄÜÑÝʾ
11.3.2 ͨ¹ývrrp_scriptʵÏÖ¶Ô¼¯Èº×ÊÔ´µÄ¼à¿Ø
11.3.3 Keepalived¼¯ÈºÖÐÖ÷¡¢±¸½ÇÉ«Ñ¡¾Ù²ßÂÔ

Ê®¶þ ǧÍò¼¶¸ß²¢·¢¸ºÔؾùºâÈí¼þHAProxy

12.1 ¸ßÐÔÄܸºÔؾùºâÈí¼þHAProxy½éÉÜ
12.1.1 HAProxy¼ò½é
12.1.2 ËIJãºÍÆ߲㸺ÔؾùºâµÄÇø±ð
12.1.3 HAProxyÓëLVSµÄÒìͬ
12.2 HAProxy»ù´¡ÅäÖÃÓëÓ¦ÓÃʵÀý
12.2.1 ¿ìËÙ°²×°HAProxy¼¯ÈºÈí¼þ
12.2.2 HAProxy»ù´¡ÅäÖÃÎļþÏê½â
12.2.3 HAProxyµÄÈÕÖ¾ÅäÖòßÂÔ
12.2.4 ͨ¹ýHAProxyµÄACL¹æÔòʵÏÖÖÇÄܸºÔؾùºâ
12.3 »ùÓÚÐéÄâÖ÷»úµÄHAProxy¸ºÔؾùºâϵͳÅäÖÃʵÀý
12.3.1 ͨ¹ýHAProxyµÄACL¹æÔòÅäÖÃÐéÄâÖ÷»ú
12.3.2 ²âÊÔHAProxyʵÏÖÐéÄâÖ÷»úºÍ¸ºÔؾùºâ¹¦ÄÜ
12.3.3 ²âÊÔHAProxyµÄ¹ÊÕÏתÒƹ¦ÄÜ
12.3.4 ʹÓÃHAProxyµÄWeb¼à¿Øƽ̨

Ê®Èý ¹¹½¨¸ßÐÔÄܵÄMysql¼¯ÈºÏµÍ³

13.1³£¼ûµÄ¸ß¿ÉÓÃMysql½â¾ö·½°¸
13.1.1 MysqlÖ÷´Ó¸´ÖÆ£¨MySQL replication£©½â¾ö·½°¸
13.1.2 Mysql Ö®MMM¸ß¿ÉÓýâ¾ö·½°¸
13.1.3 MysqlÖ®Heartbeat/SAN¸ß¿ÉÓýâ¾ö·½°¸
13.1.4 MysqlÖ®Heartbeat/DRBD¸ß¿ÉÓýâ¾ö·½°¸
13.1.5 MysqlÖ®MySQL Cluster¸ß¿ÉÓýâ¾ö·½°¸
13.2 ͨ¹ýKeepAlived´î½¨MysqlË«Ö÷ģʽµÄ¸ß¿ÉÓü¯ÈºÏµÍ³
13.2.1 Mysql Replication½éÉÜ
13.2.2 Mysql ReplicationʵÏÖÔ­Àí
13.2.3 Mysql Replication³£Óüܹ¹
13.2.4 MysqlË«Ö÷ģʽ¼Ü¹¹Í¼
13.2.5 MYSQLÖ÷Ö÷»¥±¸Ä£Ê½ÅäÖÃ
13.2.6 ÅäÖÃkeepalivedʵÏÖMysqlË«Ö÷¸ß¿ÉÓÃ
13.2.7 ²âÊÔMySQLÖ÷´Óͬ²½¹¦ÄÜ
13.2.8 ²âÊÔkeepalivedʵÏÖMysql¹ÊÕÏתÒÆ
13.3 ͨ¹ýMMM¹¹½¨Mysql¸ß¿ÉÓü¯ÈºÏµÍ³
13.3.1 MMM¸ß¿ÉÓÃmysql·½°¸¼ò½é
13.3.2 MMMµäÐÍÓ¦Ó÷½°¸
13.3.3 MMM¸ß¿ÉÓÃmysql·½°¸¼Ü¹¹Í¼
13.3.4 MMMµÄ°²×°ÓëÅäÖÃ
13.3.5 MMMµÄ¹ÜÀí
13.3.6 ²âÊÔMMMʵÏÖmysql¸ß¿ÉÓù¦ÄÜ
13.4 Mysql¶Áд·ÖÀë½â¾ö·½°¸
13.4.1 ͨ¹ýamoebaʵÏÖMysql¶Áд·ÖÀë
13.4.2 ͨ¹ýkeepalived¹¹½¨¸ß¿ÉÓõÄamoeba·þÎñ

Ê®ËÄ ¹¹½¨¸ß¿ÉÓõÄHAProxy¸ºÔؾùºâ¼¯ÈºÏµÍ³

14.1¸ßÐÔÄܸºÔؾùºâϵͳ¹¹¼ÜÉè¼ÆÔ­Ôò
14.1.1 HAproxy³£¼û·½°¸ÓëÍØÆË
14.1.2 ¸ß¿ÉÓü¯ÈºÈí¼þµÄÑ¡Ôñ
14.2´î½¨HAproxy+Keepalived¸ß¿ÉÓøºÔؾùºâϵͳ
14.2.1 ´î½¨»·¾³ÃèÊö
14.2.2 ÅäÖÃHAproxy¸ºÔؾùºâ·þÎñÆ÷
14.2.3 ÅäÖÃÖ÷¡¢±¸KeepAlived·þÎñÆ÷
14.3²âÊÔKeepalived+HAproxy¸ß¿ÉÓøºÔؾùºâ¼¯Èº
14.3.1 ²âÊÔKeepalivedµÄ¸ß¿ÉÓù¦ÄÜ
14.3.2 ²âÊÔ¸ºÔؾùºâ¹¦ÄÜ
14.4 ¹¹½¨Ë«Ö÷¸ß¿ÉÓõÄHAproxy¸ºÔؾùºâϵͳ
14.4.1 ϵͳ¼Ü¹¹Í¼ÓëʵÏÖÔ­Àí
14.4.2 °²×°²¢ÅäÖÃHAproxy¼¯ÈºÏµÍ³
14.4.3 °²×°²¢ÅäÖÃË«Ö÷µÄKeepAlived¸ß¿ÉÓÃϵͳ
14.4.4 ²âÊÔË«Ö÷¸ß¿ÉÓõÄHAproxy¸ºÔؾùºâ¼¯ÈºÏµÍ³
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 17 ÌõÆÀÂÛ