Linux°ª®Ä¹Bºû¹ê¾Ô ( ²Åé ¦r) |
§@ªÌ¡G°ª«T®p | Ãþ§O¡G1. -> §@·~¨t²Î -> Linux |
ĶªÌ¡G |
¥Xª©ªÀ¡G¤H¥Á¶l¹q¥Xª©ªÀ | 3dWoo®Ñ¸¹¡G 53038 ¸ß°Ý®ÑÄy½Ð»¡¥X¦¹®Ñ¸¹¡I¡i¦³®w¦s¡j NT°â»ù¡G 695 ¤¸ |
¥Xª©¤é¡G7/1/2020 |
¶¼Æ¡G568 |
¥úºÐ¼Æ¡G0 |
|
¯¸ªø±ÀÂË¡G |
¦L¨ê¡G¶Â¥Õ¦L¨ê | »y¨t¡G ( ²Åé ª© ) |
|
¥[¤JÁʪ«¨® ¢x¥[¨ì§Úªº³Ì·R (½Ð¥ýµn¤J·|û) |
ISBN¡G9787115521316 |
§@ªÌ§Ç¡@|¡@ĶªÌ§Ç¡@|¡@«e¨¥¡@|¡@¤º®e²¤¶¡@|¡@¥Ø¿ý¡@|¡@§Ç |
(²Åé®Ñ¤W©Òz¤§¤U¸ü³sµ²¯Ó®É¶O¥\, ®¤¤£¾A¥Î¦b¥xÆW, YŪªÌ»Ýn½Ð¦Û¦æ¹Á¸Õ, ®¤¤£«OÃÒ) |
§@ªÌ§Ç¡G |
ĶªÌ§Ç¡G |
«e¨¥¡G |
¤º®e²¤¶¡G¥»®Ñ¥H¹ê»Ú¥Í²£Àô¹Ò¬°I´º¡A¥H¹ê¾Þ¬°¥D¡A¨t²Î¡B¥þ±¦aÁ¿¸Ñ¤FLinux¹Bºû¤Hû¥²¶·´x´¤ªº¹Bºûª¾ÃÑ¡C³q¹L¥»®Ñ¡AŪªÌ¤£¶È¥i¥H´x´¤¥²»Ýªº±M·~ª¾ÃÑ¡AÁÙ¥i¨ã³Æ¹ê»Ú¸Ñ¨M°ÝÃDªº¯à¤O¡C ¥þ®Ñ¤À¬°5½g¡A¦@¦³15³¹¡C²Ä1½g¡]²Ä1¡ã3³¹¡^¬OWeb¡B¼Æ¾Ú®w¹Bºû½g¡A¥Dn¤¶²Ð¤FWeb¹Bºû©M¼Æ¾Ú®w¹Bºûªº¹ê¾Ô§Þ¯à¡C²Ä2½g¡]²Ä4¡ã5³¹¡^¬O¹BºûºÊ±±½g¡A¥Dn¤¶²Ð¤F¥ø·~±`¥Îªº¹BºûºÊ±±¤u¨ã¡C²Ä3½g¡]²Ä6¡ã8³¹¡^¬O¶°¸s¬[ºc½g¡A¥Dn¤¶²Ð¤F3´Ú¶}·½¶°¸s³n¥ó¡C²Ä4½g¡]²Ä9¡ã11³¹¡^¬O½u¤WªA°È¾¹¦w¥þ¡B½ÕÀu¡B¦Û°Ê¤Æ¹Bºû½g¡A¥DnÁ¿z¥Í²£Àô¹Ò¤¤ªA°È¾¹ªº¹Bºû¡B½ÕÀu¡B¦w¥þ¨¾S§Þ¥©¡C²Ä5½g¡]²Ä12¡ã15³¹¡^¬OµêÀÀ¤Æ¡B¤j¼Æ¾Ú¹Bºû½g¡A¥DnÁ¿¸Ñ¤FKVM¡BELK©MHadoopµ¥¤u¨ãªº¬ÛÃöª¾ÃÑ¡C ¥»®Ñ¾A¦X§Æ±æ¨t²Î¡B¥þ±¾Ç²ßLinux¹Bºû§Þ³NªºÅªªÌ¾\Ū¡A¤]¾A¦Xªì/¤¤¯ÅLinux¹Bºû¤Hû¡BLinux¨t²Î¹Bºû¤uµ{®v¡B¤j¼Æ¾Ú¹Bºû¤uµ{®v¡B¹Bºû¶}µo¤uµ{®vµ¥°Ñ¦Ò¡C |
¥Ø¿ý¡G²Ä1½g¡@Web¡B¼Æ¾Ú®w¹Bºû½g ²Ä1³¹¡@°ª®ÄWebªA°È¾¹Nginx 2 1.1¡@¬°¤°¤\¿ï¾ÜNginx 2 1.2¡@¦w¸Ë©M°t¸mNginx 3 1.2.1¡@¦w¸ËNginx 3 1.2.2¡@Nginx°t¸m¤å¥ó¸ÑŪ 5 1.3¡@NginxªººÞ²z»PºûÅ@ 9 1.3.1¡@Nginx°ò¥»«H®§Àˬd 9 1.3.2¡@Nginxªº±Ò°Ê¡BÃö³¬»P«±Ò 10 1.4¡@Nginx±`¨£À³¥Î¹ê¨Ò 11 1.4.1¡@Nginx¤¤locationÀ³¥Î¹ê¨Ò 11 1.4.2¡@Nginx¤Ï¦V¥N²zÀ³¥Î¹ê¨Ò 12 1.4.3¡@Nginx¤¤URLªº«¼g¥\¯à¥H¤Î¤º¸mÅܶq 15 1.4.4¡@Nginx¤¤µêÀÀ¥D¾÷°t¸m¹ê¨Ò 19 1.4.5¡@Nginx¤¤t¸ü§¡¿Åªº°t¸m¹ê¨Ò 20 1.4.6¡@Nginx¤¤HTTPS°t¸mªº¹ê¨Ò 21 1.5¡@LNMPÀ³¥Î¬[ºc¥H¤Î³¡¸p 25 1.5.1¡@LNMP²¤¶ 25 1.5.2¡@Nginxªº¦w¸Ë 26 1.5.3¡@MySQLªº¦w¸Ë 26 1.5.4¡@PHPªº¦w¸Ë 30 1.5.5¡@Nginx¤UPHP-FPMªº°t¸m 32 1.5.6¡@´ú¸ÕLNMP¦w¸Ë¬O§_¥¿±` 35 1.6¡@Nginx +Tomcat¬[ºc»PÀ³¥Î®×¨Ò 36 1.6.1¡@Nginx +Tomcat¾ã¦Xªº¥²n©Ê 36 1.6.2¡@Nginx +Tomcat°ÊÀR¤ÀÂ÷°t¸m¹ê¨Ò 37 1.6.3¡@Nginx +Tomcat¦hTomcatt¸ü§¡¿Å°t¸m¹ê¨Ò 38 ²Ä2³¹¡@°ª®ÄWebªA°È¾¹Apache 39 2.1¡@LAMPªA°È®M¥ó 39 2.1.1¡@LAMP·§z 39 2.1.2¡@LAMPªA°ÈÀô¹Òªº·f«Ø 39 2.1.3¡@´ú¸ÕLAMPÀô¹Ò¦w¸Ëªº¥¿½T©Ê 45 2.1.4¡@¦bLAMPÀô¹Ò¤U³¡¸pphpMyAdmin¤u¨ã 45 2.1.5¡@¦bLAMPÀô¹Ò¤U³¡¸pWordPressÀ³¥Î 46 2.2¡@Apacheªº°ò¦°t¸m 48 2.2.1¡@Apacheªº¥Ø¿ýµ²ºc 48 2.2.2¡@Apache°t¸m¤å¥ó 49 2.3¡@Apache±`¨£¥\¯àÀ³¥Î¹ê¨Ò 57 2.3.1¡@Apache¤UHTTPS°t¸m¹ê¨Ò 57 2.3.2¡@¤Ï¦V¥N²z¥\¯à¹ê¨Ò 58 2.4¡@Apache MPM¼Ò¦¡»P°ò¦½ÕÀu 62 2.4.1¡@MPM¼Ò¦¡·§z 62 2.4.2¡@prefork MPM¼Ò¦¡ 62 2.4.3¡@worker MPM¼Ò¦¡ 63 2.4.4¡@event MPM¼Ò¦¡ 64 2.5¡@Apache¶°¦¨Tomcatºc«Ø°ª®ÄJAVA WebÀ³¥Î 65 2.5.1¡@Apache»PTomcat¾ã¦Xªº¥²n©Ê 66 2.5.2¡@Apache©MTomcat³s±µ¾¹ 66 2.5.3¡@Apache¡BTomcat©MJK¼Ò¶ôªº¦w¸Ë 67 2.5.4¡@Apache»PTomcat¾ã¦X°t¸m 68 ²Ä3³¹¡@¥ø·~±`¨£MySQL¬[ºcÀ³¥Î¹ê¾Ô 74 3.1¡@¿ï¾ÜPercona Server¡BMariaDBÁÙ¬OMYSQL 74 3.1.1¡@MySQL©x¤èµo¦æª© 74 3.1.2¡@MySQL»P¦sÀx¤ÞÀº 74 3.1.3¡@Percona Server for MySQL¤À¤ä 75 3.1.4¡@MariaDB Server 75 3.1.5¡@¦p¦ó¿ï¾Ü 75 3.2¡@MySQL©R¥O¾Þ§@ 76 3.2.1¡@³s±µMySQL 76 3.2.2¡@קï±K½X 76 3.2.3¡@¼W¥[·s¥Î¤á/±ÂÅv¥Î¤á 76 3.2.4¡@¼Æ¾Ú®w°ò¦¾Þ§@ 77 3.2.5¡@MySQLªí¾Þ§@ 78 3.2.6¡@³Æ¥÷¼Æ¾Ú®w 79 3.3¡@MySQL³Æ¥÷«ì´_¤u¨ãXtraBackup 80 3.3.1¡@¦w¸ËXtraBackup¤u¨ã¥] 80 3.3.2¡@XtraBackup¤u¨ã¤¶²Ð 81 3.3.3¡@xtrabackup³Æ¥÷«ì´_¹ê²{ì²z 81 3.3.4¡@innobackupex¤u¨ãªº¨Ï¥Î 81 3.3.5¡@§Q¥Îinnobackupex¶i¦æMySQL¥þ³Æ¥÷ 82 3.3.6¡@§Q¥Îinnobackupex§¹¥þ«ì´_¼Æ¾Ú®w 83 3.3.7¡@XtraBackup°w¹ï®ü¶q¼Æ¾Úªº³Æ¥÷Àu¤Æ 84 3.3.8¡@§¹¾ãªºMySQL³Æ¥÷«ì´_¨Ò¤l 85 3.4¡@±`¨£ªº°ª¥i¥ÎMySQL¸Ñ¨M¤è®× 86 3.4.1¡@¥D±q´_¨î¸Ñ¨M¤è®× 86 3.4.2¡@MMM°ª¥i¥Î¸Ñ¨M¤è®× 86 3.4.3¡@Heartbeat/SAN°ª¥i¥Î¸Ñ¨M¤è®× 87 3.4.4¡@Heartbeat/DRBD°ª¥i¥Î¸Ñ¨M¤è®× 87 3.4.5¡@MySQL Cluster°ª¥i¥Î¸Ñ¨M¤è®× 87 3.5¡@³q¹LKeepalived·f«ØMySQLÂù¥D¼Ò¦¡ªº°ª¥i¥Î¶°¸s¨t²Î 87 3.5.1¡@MySQL Replication¤¶²Ð 88 3.5.2¡@MySQL Replication¹ê²{ì²z 89 3.5.3¡@MySQL Replication±`¥Î¬[ºc 89 3.5.4¡@MySQL¥D¥D¤¬³Æ¼Ò¦¡¬[ºc¹Ï 90 3.5.5¡@MySQL¥D¥D¤¬³Æ¼Ò¦¡°t¸m 91 3.5.6¡@°t¸mKeepalived¹ê²{MySQLÂù¥D°ª¥i¥Î 95 3.5.7¡@´ú¸ÕMySQL¥D±q¦P¨B¥\¯à 97 3.5.8¡@´ú¸ÕKeepalived¹ê²{MySQL¬G»ÙÂಾ 99 3.6¡@MySQL¶°¸s¬[ºcMHAÀ³¥Î¹ê¾Ô 100 3.6.1¡@MHAªº·§©À©Mì²z 101 3.6.2¡@MHA®M¥óªº²Õ¦¨©M«ì´_¹Lµ{ 102 3.6.3¡@¦w¸ËMHA®M¥ó 102 3.6.4¡@°t¸mMHA¶°¸s 106 3.6.5¡@´ú¸ÕMHAÀô¹Ò¥H¤Î±`¨£°ÝÃDÁ`µ² 111 3.6.6¡@±Ò°Ê»PºÞ²zMHA 113 3.6.7¡@MHA¶°¸s¤Á´«´ú¸Õ 114 3.7¡@MySQL¤¤¶¡¥óProxySQL 117 3.7.1¡@ProxySQL²¤¶ 117 3.7.2¡@ProxySQLªº¤U¸ü»P¦w¸Ë 117 3.7.3¡@ProxySQLªº¥Ø¿ýµ²ºc 118 3.7.4¡@ProxySQL®wªí¥\¯à¤¶²Ð 118 3.7.5¡@ProxySQLªº¹B¦æ¾÷¨î 120 3.7.6¡@¦bProxySQL¤U²K¥[»Pקï°t¸m 121 3.8¡@ProxySQL+MHAºc«Ø°ª¥i¥ÎMySQLŪ¼g¤ÀÂ÷¬[ºc 123 3.8.1¡@ProxySQL+MHAÀ³¥Î¬[ºc 123 3.8.2¡@³¡¸pÀô¹Ò»¡©ú 123 3.8.3¡@°t¸m¦ZºÝMySQL 124 3.8.4¡@°t¸m¦ZºÝMySQL¥Î¤á 124 3.8.5¡@¦bProxySQL¤¤²K¥[µ{§Ç½ã¸¹ 125 3.8.6¡@¥[¸ü°t¸m©MÅܶq 125 3.8.7¡@³s±µ¼Æ¾Ú®w¦}¼g¤J¼Æ¾Ú 126 3.8.8¡@©w¸q¸ô¥Ñ³W«h 126 3.8.9¡@ProxySQL¾ã¦XMHA¹ê²{°ª¥i¥Î 128
²Ä2½g¡@¹BºûºÊ±±½g ²Ä4³¹¡@¹BºûºÊ±±§Q¾¹Zabbix 130 4.1¡@Zabbix¹B¦æ¬[ºc 130 4.1.1¡@ZabbixÀ³¥Î²Õ¥ó 131 4.1.2¡@ZabbixªA°È¶iµ{ 131 4.1.3¡@ZabbixºÊ±±³N»y 132 4.2¡@¦w¸Ë¡B³¡¸pZabbixºÊ±±¥»O 133 4.2.1¡@LNMPÀô¹Ò³¡¸p 134 4.2.2¡@½sĶ¦w¸ËZabbix Server 137 4.2.3¡@³Ð«Ø¼Æ¾Ú®w©Mªì©l¤Æªí 138 4.2.4¡@°t¸mZabbix ServerºÝ 138 4.2.5¡@¦w¸Ë»P°t¸mZabbix Agent 140 4.2.6¡@¦w¸ËZabbix GUI 141 4.2.7¡@´ú¸ÕZabbix ServerºÊ±± 144 4.3¡@Zabbix Web°t¸m¸Ô¸Ñ 144 4.3.1¡@¼ÒªOªººÞ²z»P¨Ï¥Î 144 4.3.2¡@³Ð«ØÀ³¥Î¶° 145 4.3.3¡@³Ð«ØºÊ±±¶µ 146 4.3.4¡@³Ð«ØIJµo¾¹ 149 4.3.5¡@³Ð«Ø¥D¾÷²Õ©M¥D¾÷ 152 4.3.6¡@IJµo¾¹°Ê§@°t¸m 154 4.3.7¡@³øĵ´C¤¶Ãþ«¬°t¸m 157 4.3.8¡@ºÊ±±ª¬ºA¬d¬Ý 158 4.4¡@Zabbix¦Û©w¸qºÊ±±¶µ 160 4.4.1¡@Zabbix AgentºÝ¶}±Ò¦Û©w¸qºÊ±±¶µ¥\¯à 160 4.4.2¡@ÅýºÊ±±¶µ±µ¦¬°Ñ¼Æ 160 4.5¡@Zabbixªº¥D°Ê¼Ò¦¡»P³Q°Ê¼Ò¦¡ 161 4.6¡@¦Û°Êµo²{»P¦Û°Êª`¥U 162 4.7¡@Zabbix¹BºûºÊ±±¹ê¾Ô®×¨Ò 168 4.7.1¡@ZabbixºÊ±±MySQLÀ³¥Î¹ê¾Ô 168 4.7.2¡@ZabbixºÊ±±ApacheÀ³¥Î¹ê¾Ô 174 4.7.3¡@ZabbixºÊ±±NginxÀ³¥Î¹ê¾Ô 178 4.7.4¡@ZabbixºÊ±±PHP-FPMÀ³¥Î¹ê¾Ô 182 4.7.5¡@ZabbixºÊ±±TomcatÀ³¥Î¹ê¾Ô 188 4.7.6¡@ZabbixºÊ±±Redis¹ê¨ÒÀ³¥Î¹ê¾Ô 193 ²Ä5³¹¡@¤À¥¬¦¡ºÊ±±¨t²ÎGanglia 201 5.1¡@Ganglia²¤¶ 201 5.2¡@Gangliaªº²Õ¦¨ 201 5.3¡@Gangliaªº¤u§@ì²z 203 5.3.1¡@Ganglia¼Æ¾Ú¬y¦V¤ÀªR 203 5.3.2¡@Ganglia¤u§@¼Ò¦¡ 204 5.4¡@Gangliaªº¦w¸Ë 204 5.4.1¡@yum·½¦w¸Ë¤è¦¡ 204 5.4.2¡@·½½X¤è¦¡ 205 5.5¡@°t¸m¤@ÓGanglia¤À¥¬¦¡ºÊ±±¨t²Î 207 5.5.1¡@Ganglia°t¸m¤å¥ó¤¶²Ð 207 5.5.2¡@GangliaºÊ±±¨t²Î¬[ºc¹Ï 207 5.5.3¡@GangliaºÊ±±ºÞ²zºÝ°t¸m 207 5.5.4¡@Gangliaªº«È¤áºÝ°t¸m 208 5.5.5¡@GangliaªºWebºÝ°t¸m 209 5.6¡@GangliaºÊ±±¨t²ÎªººÞ²z©MºûÅ@ 210 5.7¡@GangliaºÊ±±ÂX®i¹ê²{¾÷¨î 211 5.7.1¡@ÂX®iGangliaºÊ±±¥\¯àªº¤èªk 211 5.7.2¡@³q¹Lgmetric±µ¤fÂX®iGangliaºÊ±± 212 5.7.3¡@³q¹LPython´¡¥óÂX®iGangliaºÊ±± 213 5.7.4¡@¹ê¾Ô¡G§Q¥ÎPython±µ¤fºÊ±±Nginx¹B¦æª¬ºA 214 5.8¡@Ganglia¦b¹ê»ÚÀ³¥Î¤¤n¦Ò¼{ªº°ÝÃD 217 5.8.1¡@ºôµ¸IO¥i¯à¦s¦b²~ÀV 217 5.8.2¡@CPU¥i¯à¦s¦b²~ÀV 217 5.8.3¡@gmetad rrd¼Æ¾Ú¼g¤J¥i¯à¦s¦b²~ÀV 217
²Ä3½g¡@¶°¸s¬[ºc½g ²Ä6³¹¡@°ª©Ê¯à¶°¸s³n¥óKeepalived 220 6.1¡@¶°¸sªº©w¸q 220 6.2¡@¶°¸sªº¯SÂI»P¥\¯à 221 6.2.1¡@°ª¥i¥Î©Ê»P¥iÂX®i©Ê 221 6.2.2¡@t¸ü§¡¿Å»P¿ù»~«ì´_ 221 6.2.3¡@¤ß¸õÀË´ú»Pº}²¾IP 221 6.3¡@¶°¸sªº¤ÀÃþ 222 6.3.1¡@°ª¥i¥Î¶°¸s 222 6.3.2¡@t¸ü§¡¿Å¶°¸s 223 6.3.3¡@¤À¥¬¦¡pºâ¶°¸s 224 6.4¡@HA¶°¸s¤¤ªº¬ÛÃö³N»y 225 6.5¡@Keepalived²¤¶ 225 6.5.1¡@Keepalivedªº¥Î³~ 226 6.5.2¡@VRRP¨óij»P¤u§@ì²z 226 6.5.3¡@Keepalived¤u§@ì²z 227 6.5.4¡@KeepalivedªºÅé¨tµ²ºc 227 6.6¡@Keepalived¦w¸Ë»P°t¸m 229 6.6.1¡@Keepalivedªº¦w¸Ë¹Lµ{ 229 6.6.2¡@Keepalivedªº¥þ§½°t¸m 230 6.6.3¡@KeepalivedªºVRRPD°t¸m 231 6.6.4¡@KeepalivedªºLVS°t¸m 234 6.7¡@Keepalived°ò¦¥\¯àÀ³¥Î¹ê¨Ò 237 6.7.1¡@Keepalived°ò¦HA¥\¯àºt¥Ü 237 6.7.2¡@³q¹LVRRP_script¹ê²{¹ï¶°¸s¸ê·½ªººÊ±± 243 ²Ä7³¹¡@°ª©Ê¯àt¸ü§¡¿Å¶°¸sLVS 247 7.1¡@LVS²¤¶ 247 7.2¡@LVSÅé¨tµ²ºc 247 7.3¡@IPt¸ü§¡¿Å»Pt¸ü½Õ«×ºâªk 248 7.3.1¡@IPt¸ü§¡¿Å§Þ³N 249 7.3.2¡@t¸ü§¡¿Å¾÷¨î 249 7.3.3¡@LVSt¸ü½Õ«×ºâªk 255 7.3.4¡@¾A¥ÎÀô¹Ò 256 7.4¡@LVSªº¦w¸Ë»P¨Ï¥Î 256 7.4.1¡@¦w¸ËIPVSºÞ²z³n¥ó 257 7.4.2¡@ipvsadmªº¥Îªk 257 7.5¡@³q¹LKeepalived·f«ØLVS°ª¥i¥Î©Ê¶°¸s¨t²Î 258 7.5.1¡@¹ê¨ÒÀô¹Ò 258 7.5.2¡@°t¸mKeepalived 259 7.5.3¡@°t¸mReal Server¸`ÂI 261 7.5.4¡@±Ò°ÊKeepalived+LVS¶°¸s¨t²Î 263 7.6¡@´ú¸Õ°ª¥i¥ÎLVSt¸ü§¡¿Å¶°¸s¨t²Î 263 7.6.1¡@°ª¥i¥Î©Ê¥\¯à´ú¸Õ 263 7.6.2¡@t¸ü§¡¿Å´ú¸Õ 264 7.6.3¡@¬G»Ù¤Á´«´ú¸Õ 264 7.7¡@LVS¸g±`¨Ï¥Îªº¶°¸sºôµ¸¬[ºc 265 7.7.1¡@¤ººô¶°¸s¡A¥~ºô¬M®gVIP 265 7.7.2¡@¥þ¥~ºôLVS¶°¸sÀô¹Ò 266 ²Ä8³¹¡@°ª©Ê¯àt¸ü§¡¿Å³n¥óHAProxy 268 8.1¡@°ª©Ê¯àt¸ü§¡¿Å³n¥óHAProxy 268 8.1.1¡@HAProxy²¤¶ 268 8.1.2¡@¥|¼h©M¤C¼ht¸ü§¡¿Åªº°Ï§O 269 8.1.3¡@HAProxy»PLVSªº²§¦P 270 8.2¡@HAProxy°ò¦°t¸m»PÀ³¥Î¹ê¨Ò 270 8.2.1¡@§Ö³t¦w¸ËHAProxy¶°¸s³n¥ó 271 8.2.2¡@HAProxy°ò¦°t¸m¤å¥ó¸Ô¸Ñ 271 8.2.3¡@³q¹LHAProxyªºACL³W«h¹ê²{´¼¯àt¸ü§¡¿Å 277 8.2.4¡@ºÞ²z»PºûÅ@HAProxy 279 8.2.5¡@¨Ï¥ÎHAProxyªºWebºÊ±±¥»O 282 8.3¡@·f«ØHAProxy+Keepalived°ª¥i¥Ît¸ü§¡¿Å¨t²Î 283 8.3.1¡@·f«ØÀô¹Ò´yz 283 8.3.2¡@°t¸mHAProxyt¸ü§¡¿ÅªA°È¾¹ 284 8.3.3¡@°t¸m¥D¡B³ÆKeepalivedªA°È¾¹ 286 8.4¡@´ú¸ÕHAProxy+Keepalived°ª¥i¥Ît¸ü§¡¿Å¶°¸s 289 8.4.1¡@´ú¸ÕKeepalivedªº°ª¥i¥Î¥\¯à 289 8.4.2¡@´ú¸Õt¸ü§¡¿Å¥\¯à 290 ²Ä4½g¡@½u¤WªA°È¾¹¦w¥þ¡B½ÕÀu¡B¦Û°Ê¤Æ¹Bºû½g ²Ä9³¹¡@½u¤WªA°È¾¹¦w¥þ¹Bºû 292 9.1¡@½ã¤á©Mµn¿ý¦w¥þ 292 9.1.1¡@§R°£¯S®íªº½ã¤á©M½ã¤á²Õ 292 9.1.2¡@Ãö³¬¨t²Î¤£»ÝnªºªA°È 293 9.1.3¡@±K½X¦w¥þµ¦²¤ 294 9.1.4¡@¦X²z¨Ï¥Îsu¡Bsudo©R¥O 299 9.1.5¡@§R´î¨t²Îµn¿ýÅwªï«H®§ 300 9.1.6¡@¸T¤îControl-Alt-DeleteÁä½LÃö³¬©R¥O 301 9.2¡@»·µ{³X°Ý©M»{ÃÒ¦w¥þ 301 9.2.1¡@ªö¥ÎSSH¤è¦¡¦Ó«Dtelnet¤è¦¡»·µ{µn¿ý¨t²Î 301 9.2.2¡@¦X²z¨Ï¥Îshell¾ú¥v©R¥O°O¿ý¥\¯à 303 9.2.3¡@±Ò¥ÎTcp_Wrappers¨¾¤õùÙ 305 9.3¡@¤å¥ó¨t²Î¦w¥þ 307 9.3.1¡@Âê©w¨t²Î«n¤å¥ó 307 9.3.2¡@¤å¥óÅvÀˬd©Mקï 309 9.3.3¡@/tmp¡B/var/tmp¡B/dev/shm¦w¥þ³]©w 309 9.4¡@¨t²Î³n¥ó¦w¥þºÞ²z 311 9.4.1¡@³n¥ó¦Û°Ê¤É¯Å¤u¨ãyum 311 9.4.2¡@yumªº¦w¸Ë»P°t¸m 311 9.4.3¡@yumªº¯SÂI»P°ò¥»¥Îªk 313 9.4.4¡@´XÓ¤£¿ùªºyum·½ 315 9.5¡@Linux¦Zªù¤J«IÀË´ú»P¦w¥þ¨¾Å@¤u¨ã 316 9.5.1¡@rootkit¦ZªùÀË´ú¤u¨ãRKHunter 317 9.5.2¡@Linux¦w¥þ¨¾Å@¤u¨ãClamAVªº¨Ï¥Î 320 9.5.3¡@Linux.BackDoor.Gates.5¡]¤å¥ó¯Å§Orootkit¡^ºôµ¸±a¼e§ðÀ»®×¨Ò 322 9.6¡@ªA°È¾¹¾D¨ü§ðÀ»¦Zªº³B²z¹Lµ{ 326 9.6.1¡@³B²zªA°È¾¹¾D¨ü§ðÀ»ªº¤@¯ë«ä¸ô 326 9.6.2¡@Àˬd¦}Âê©w¥iºÃ¥Î¤á 327 9.6.3¡@¬d¬Ý¨t²Î¤é§Ó 328 9.6.4¡@Àˬd¦}Ãö³¬¨t²Î¥iºÃ¶iµ{ 329 9.6.5¡@Àˬd¤å¥ó¨t²Îªº§¹¦n©Ê 329 9.7¡@¤ªªA°È¾¹³Q´Ó¤J«õÄq¯f¬r®×¨Ò¹ê¿ý¥H¤ÎRedis¦w¥þ¨¾S 330 9.7.1¡@°ÝÃD²{¶H 330 9.7.2¡@¤ÀªR°ÝÃD 331 9.7.3¡@°ÝÃD¸Ñ¨M 336 9.7.4¡@²`¤J±´¨sRedis¬O¦p¦ó³Q´Ó¤J 338 ²Ä10³¹¡@½u¤WªA°È¾¹©Ê¯à½ÕÀu®×¨Ò 346 10.1¡@½u¤WLinuxªA°È¾¹°ò¦Àu¤Æµ¦²¤ 346 10.1.1¡@¨t²Î°ò¦°t¸m»P½ÕÀu 346 10.1.2¡@¨t²Î¦w¥þ»P¨¾Å@µ¦²¤ 351 10.1.3¡@¨t²Î¤º®Ö°Ñ¼Æ½ÕÀu 355 10.2¡@¨t²Î©Ê¯à½ÕÀu³WS¥H¤Î¹ï¬Y¹q°Ó¥»OÀu¤Æ¤ÀªR®×¨Ò 358 10.2.1¡@CPU©Ê¯àµû¦ô¥H¤Î¬ÛÃö¤u¨ã 358 10.2.2¡@¤º¦s©Ê¯àµû¦ô¥H¤Î¬ÛÃö¤u¨ã 360 10.2.3¡@ºÏ½LI/O©Ê¯àµû¦ô¥H¤Î¬ÛÃö¤u¨ã 361 10.2.4¡@ºôµ¸©Ê¯àµû¦ô¥H¤Î¬ÛÃö¤u¨ã 363 10.2.5¡@¨t²Î©Ê¯à¤ÀªR¼Ð·Ç 366 10.2.6¡@°ÊºA¡BÀRºA¤º®eµ²¦Xªº¹q°Óºô¯¸Àu¤Æ®×¨Ò 366 10.3¡@¤@¦¸Java¶iµ{¥e¥ÎCPU¹L°ª°ÝÃDªº±Æ¬d¤èªk»P®×¨Ò¤ÀªR 376 10.3.1¡@®×¨Ò¬G»Ù´yz 376 10.3.2¡@Java¤¤¶iµ{»P½uµ{ªº·§©À 377 10.3.3¡@±Æ¬dJava¶iµ{¥e¥ÎCPU¹L°ªªº«ä¸ô 378 10.3.4¡@Tomcat°t¸m½ÕÀu 383 10.3.5¡@Tomcat Connector 3ºØ¹B¦æ¼Ò¦¡¡]BIO¡BNIO¡BAPR¡^ªº¤ñ¸û»PÀu¤Æ 385 ²Ä11³¹¡@¦Û°Ê¤Æ¹Bºû¤u¨ãAnsible 391 11.1¡@Ansibleªº¦w¸Ë 391 11.2¡@Ansibleªº¬[ºc»P¹B¦æì²z 392 11.3¡@Ansible¥D¾÷©M²Õªº°t¸m 394 11.4¡@ansible.cfg»PÀq»{°t¸m 396 11.5¡@Ad-Hoc»Pcommand¼Ò¶ô 396 11.5.1¡@Ad-Hoc¬O¤°¤\ 396 11.5.2¡@command¼Ò¶ô 397 11.5.3¡@shell¼Ò¶ô 398 11.5.4¡@raw¼Ò¶ô 398 11.5.5¡@script¼Ò¶ô 399 11.6¡@Ansible¨ä¥L±`¥Î¥\¯à¼Ò¶ô 399 11.6.1¡@ping¼Ò¶ô 399 11.6.2¡@file¼Ò¶ô 400 11.6.3¡@copy¼Ò¶ô 401 11.6.4¡@service¼Ò¶ô 402 11.6.5¡@cron¼Ò¶ô 402 11.6.6¡@yum¼Ò¶ô 403 11.6.7¡@user¼Ò¶ô»Pgroup¼Ò¶ô 404 11.6.8¡@synchronize¼Ò¶ô 405 11.6.9¡@setup¼Ò¶ô 405 11.6.10¡@get_url¼Ò¶ô 406 11.7¡@ansible-playbook²³æ¨Ï¥Î 406 11.7.1¡@¼@¥»Â²¤¶ 406 11.7.2¡@¼@¥»¤å¥óªº®æ¦¡ 406 11.7.3¡@¼@¥»ªººc¦¨ 407 11.7.4¡@¼@¥»°õ¦æµ²ªG¸ÑªR 408 11.7.5¡@ansible-playbook¦¬¶°facts«H®§®×¨Ò 409 11.7.6¡@¨âÓ§¹¾ãªºansible-playbook®×¨Ò 410
²Ä5½g¡@µêÀÀ¤Æ¡B¤j¼Æ¾Ú¹Bºû½g ²Ä12³¹¡@KVMµêÀÀ¤Æ§Þ³N»PÀ³¥Î 414 12.1¡@KVMµêÀÀ¤Æ¬[ºc 414 12.1.1¡@KVM»PQEMU 414 12.1.2¡@KVMµêÀÀ¾÷ºÞ²z¤u¨ã 414 12.1.3¡@±J¥D¾÷»PµêÀÀ¾÷ 415 12.2¡@VNCªº¦w¸Ë»P¨Ï¥Î 415 12.2.1¡@±Ò°ÊVNC Server 415 12.2.2¡@«±ÒVNC Server 415 12.2.3¡@«È¤áºÝ³s±µ 416 12.3¡@¬d¬Ýµw¥ó¬O§_¤ä«ùµêÀÀ¤Æ 416 12.4¡@¦w¸ËKVM¤º®Ö¼Ò¶ô©MºÞ²z¤u¨ã 416 12.4.1¡@¦w¸ËKVM¤º®Ö 417 12.4.2¡@¦w¸ËvirtºÞ²z¤u¨ã 417 12.4.3¡@¥[¸üKVM¤º®Ö 417 12.4.4¡@¬d¬Ý¤º®Ö¬O§_¶}±Ò 417 12.4.5¡@KVMºÞ²z¤u¨ãªA°È¬ÛÃö 417 12.5¡@±J¥D¾÷ºôµ¸°t¸m 418 12.5.1¡@«Ø¥ß¾ô±µ¾¹ 418 12.5.2¡@°t¸m¾ô±µ³]³Æ 418 12.5.3¡@«±Òºôµ¸ªA°È 419 12.6¡@¨Ï¥ÎKVM§Þ³N¦w¸ËµêÀÀ¾÷ 419 12.7¡@µêÀÀ¾÷´_¨î 421 12.7.1¡@¥»¾÷´_¨î 421 12.7.2¡@±±¨î»OºÞ²zµêÀÀ¾÷ 422 12.7.3¡@µêÀÀ¾÷ªº¾E²¾ 422 12.8¡@KVMµêÀÀ¤Æ±`¥ÎºÞ²z©R¥O 423 12.8.1¡@¬d¬ÝKVMµêÀÀ¾÷°t¸m¤å¥ó¤Î¹B¦æª¬ºA 423 12.8.2¡@KVMµêÀÀ¾÷¶}¾÷ 423 12.8.3¡@KVMµêÀÀ¾÷Ãö¾÷©ÎÂ_¹q 423 ²Ä13³¹¡@ELK¤j³W¼Ò¤é§Ó¹ê®É³B²z¨t²ÎÀ³¥Î¹ê¾Ô 426 13.1¡@ELK¬[ºc¤¶²Ð 426 13.1.1¡@®Ö¤ß²Õ¦¨ 426 13.1.2¡@Elasticsearch¤¶²Ð 426 13.1.3¡@Logstash¤¶²Ð 427 13.1.4¡@Kibana¤¶²Ð 428 13.1.5¡@ELK¤u§@¬yµ{ 428 13.2¡@ZooKeeper°ò¦»P¤Jªù 429 13.2.1¡@ZooKeeper·§©À¤¶²Ð 429 13.2.2¡@ZooKeeperÀ³¥ÎÁ|¨Ò 430 13.2.3¡@ZooKeeper¤u§@ì²z 430 13.2.4¡@ZooKeeper¶°¸s¬[ºc 431 13.3¡@Kafka°ò¦»P¤Jªù 432 13.3.1¡@Kafka°ò¥»·§©À 432 13.3.2¡@Kafka³N»y 432 13.3.3¡@Kafka©Ý¼³¬[ºc 433 13.3.4¡@¥DÃD»P¤À°Ï 434 13.3.5¡@¥Í²£ªÌ¥Í²£¾÷¨î 434 13.3.6¡@®ø¶OªÌ®ø¶O¾÷¨î 434 13.4¡@Filebeat°ò¦»P¤Jªù 435 13.4.1¡@¤°¤\¬OFilebeat 435 13.4.2¡@Filebeat¬[ºc»P¹B¦æì²z 435 13.5¡@ELK±`¨£À³¥Î¬[ºc 436 13.5.1¡@³Ì²³æªºELK¬[ºc 436 13.5.2¡@¨å«¬ELK¬[ºc 437 13.5.3¡@ELK¶°¸s¬[ºc 438 13.6¡@¥ÎELK+Filebeat+Kafka+ZooKeeperºc«Ø¤j¼Æ¾Ú¤é§Ó¤ÀªR¥»O 438 13.6.1¡@¨å«¬ELKÀ³¥Î¬[ºc 439 13.6.2¡@Àô¹Ò»P¨¤¦â»¡©ú 439 13.6.3¡@¦w¸ËJDK¦}³]¸mÀô¹ÒÅܶq 440 13.6.4¡@¦w¸Ë¦}°t¸mElasticsearch¶°¸s 441 13.6.5¡@¦w¸Ë¦}°t¸mZooKeeper¶°¸s 450 13.6.6¡@¦w¸Ë¦}°t¸mKafka Broker¶°¸s 452 13.6.7¡@¦w¸Ë¦}°t¸mFilebeat 457 13.6.8¡@¦w¸Ë¦}°t¸mLogstashªA°È 460 13.6.9¡@¦w¸Ë¦}°t¸mKibana®i¥Ü¤é§Ó¼Æ¾Ú 466 13.6.10¡@½Õ¸Õ¦}ÅçÃÒ¤é§Ó¼Æ¾Ú¬y¦V 470 13.7¡@Logstash°t¸m»yªk¸Ô¸Ñ 472 13.7.1¡@Logstash°ò¥»»yªk²Õ¦¨ 472 13.7.2¡@Logstash¿é¤J´¡¥ó 472 13.7.3¡@Logstash½s½X´¡¥ó ¡]codec¡^ 476 13.7.4¡@Logstash¹LÂo´¡¥ó 477 13.7.5¡@Logstash¿é¥X´¡¥ó 488 13.8¡@ELK¦¬¶°Apache³X°Ý¤é§Ó¹ê¾Ô®×¨Ò 489 13.8.1¡@ELK¦¬¶°¤é§Óªº´XºØ¤è¦¡ 490 13.8.2¡@ELK¦¬¶°Apache³X°Ý¤é§ÓªºÀ³¥Î¬[ºc 490 13.8.3¡@Apacheªº¤é§Ó®æ¦¡»P¤é§ÓÅܶq 491 13.8.4¡@¦Û©w¸qApache¤é§Ó®æ¦¡ 492 13.8.5¡@ÅçÃÒ¤é§Ó¿é¥X 492 13.8.6¡@°t¸mFilebeat 493 13.8.7¡@°t¸mLogstash 494 13.8.8¡@°t¸mKibana 496 13.9¡@ELK¦¬¶°Nginx³X°Ý¤é§Ó¹ê¾Ô®×¨Ò 498 13.9.1¡@ELK¦¬¶°Nginx³X°Ý¤é§ÓÀ³¥Î¬[ºc 498 13.9.2¡@Nginxªº¤é§Ó®æ¦¡»P¤é§ÓÅܶq 499 13.9.3¡@¦Û©w¸qNginx¤é§Ó®æ¦¡ 500 13.9.4¡@ÅçÃÒ¤é§Ó¿é¥X 501 13.9.5¡@°t¸mFilebeat 501 13.9.6¡@°t¸mLogstash 502 13.9.7¡@°t¸mKibana 504 13.10¡@³q¹LELK¦¬¶°MySQLºC¬d¸ß¤é§Ó¼Æ¾Ú 505 13.10.1¡@¶}±ÒºC¬d¸ß¤é§Ó 505 13.10.2¡@ºC¬d¸ß¤é§Ó¤ÀªR 509 13.10.3¡@°t¸mFilebeat¦¬¶°MySQLºC¬d¸ß¤é§Ó 510 13.10.4¡@³q¹LLogstashªºgrok´¡¥ó¹LÂo¡B¤ÀªRMySQL°t¸m¤é§Ó 511 13.10.5¡@³q¹LKibana³Ð«ØMySQLºC¬d¸ß¤é§Ó¯Á¤Þ 513 13.11¡@³q¹LELK¦¬¶°Tomcat³X°Ý¤é§Ó©Mª¬ºA¤é§Ó 515 13.11.1¡@Tomcat¤é§Ó¸ÑªR 515 13.11.2¡@°t¸mTomcatªº³X°Ý¤é§Ó©M¹B¦æª¬ºA¤é§Ó 516 13.11.3¡@°t¸mFilebeat 518 13.11.4¡@³q¹LLogstashªºgrok´¡¥ó¹LÂo¡B¤ÀªRTomcat°t¸m¤é§Ó 519 13.11.5¡@°t¸mZabbix¿é¥X¦}§iĵ 521 13.11.6¡@³q¹LKibana¥»O³Ð«ØTomcat³X°Ý¤é§Ó¯Á¤Þ 522 ²Ä14³¹¡@°ª¥i¥Î¤À¥¬¦¡¶°¸sHadoop³¡¸p¥þ§ð²¤ 524 14.1¡@Hadoop¥ÍºA°éª¾ÃÑ 524 14.1.1¡@Hadoop¥ÍºA·§ªp 524 14.1.2¡@HDFS 525 14.1.3¡@MapReduce¡]¤À¥¬¦¡pºâ®Ø¬[¡^Â÷½upºâ 525 14.1.4¡@HBase¡]¤À¥¬¦¡¦C¦s¼Æ¾Ú®w¡^ 525 14.1.5¡@ZooKeeper¡]¤À¥¬¦¡¨ó§@ªA°È¡^ 526 14.1.6¡@Hive¡]¼Æ¾ÚÜ®w¡^ 526 14.1.7¡@Pig¡]ad-hoc¸}¥»¡^ 527 14.1.8¡@Sqoop¡]¼Æ¾ÚETL/¦P¨B¤u¨ã¡^ 527 14.1.9¡@Flume¡]¤é§Ó¦¬¶°¤u¨ã¡^ 527 14.1.10¡@Oozie¡]¤u§@¬y½Õ«×¾¹¡^ 527 14.1.11¡@YARN¡]¤À¥¬¦¡¸ê·½ºÞ²z¾¹¡^ 527 14.1.12¡@Spark¡]¤º¦sDAGpºâ¼Ò«¬¡^ 529 14.1.13¡@Kafka¡]¤À¥¬¦¡®ø®§¶¤¦C¡^ 529 14.2¡@Hadoopªº°°¤À¥¬¦¡³¡¸p 529 14.2.1¡@Hadoopµo¦æª©¤¶²Ð 529 14.2.2¡@CDHµo¦æª©¥» 530 14.2.3¡@CDH»P¾Þ§@¨t²Îªº¨Ì¿à 530 14.2.4¡@°°¤À¥¬¦¡¦w¸ËHadoop 530 14.2.5¡@¨Ï¥ÎHadoop HDFS©R¥O¶i¦æ¤À¥¬¦¡¦sÀx 534 14.2.6¡@¦bHadoop¤¤¹B¦æMapReduceµ{§Ç 534 14.3¡@°ª¥i¥ÎHadoop2.xÅé¨tµ²ºc 535 14.3.1¡@¨âÓNameNodeªº¦a¦ìÃö¨t 535 14.3.2¡@³q¹LJournalNode«O«ùNameNode¤¸¼Æ¾Úªº¤@P©Ê 535 14.3.3¡@NameNodeªº¦Û°Ê¤Á´«¥\¯à 536 14.3.4¡@°ª¥i¥ÎHadoop¶°¸s¬[ºc 536 14.3.5¡@JournalNode¶°¸s 537 14.3.6¡@ZooKeeper¶°¸s 538 14.4¡@³¡¸p°ª¥i¥ÎªºHadoop¤j¼Æ¾Ú¥»O 538 14.4.1¡@¦w¸Ë°t¸mÀô¹Ò¤¶²Ð 539 14.4.2¡@ZooKeeper¦w¸Ë¹Lµ{ 539 14.4.3¡@Hadoopªº¦w¸Ë 540 14.4.4¡@¤À¥¬¦¡Hadoopªº°t¸m 542 14.5¡@Hadoop¶°¸s±Ò°Ê¹Lµ{ 548 14.5.1¡@Àˬd¦UÓ¸`ÂIªº°t¸m¤å¥óªº¥¿½T©Ê 549 14.5.2¡@±Ò°ÊZooKeeper¶°¸s 549 14.5.3¡@®æ¦¡¤ÆZooKeeper¶°¸s 549 14.5.4¡@±Ò°ÊJournalNode 549 14.5.5¡@®æ¦¡¤Æ¶°¸sNameNode 550 14.5.6¡@±Ò°Ê¥D¸`ÂIªºNameNodeªA°È 550 14.5.7¡@NameNode¥D¡B³Æ¸`ÂI¦P¨B¤¸¼Æ¾Ú 550 14.5.8¡@±Ò°Ê³Æ¾÷¤WªºNameNodeªA°È 551 14.5.9¡@±Ò°ÊZKFC 551 14.5.10¡@±Ò°ÊDataNodeªA°È 552 14.5.11¡@±Ò°ÊResourceManager©M NodeManagerªA°È 552 14.5.12¡@±Ò°ÊHistoryServerªA°È 552 14.6¡@Hadoop¤é±`¹Bºû°ÝÃDÁ`µ² 553 14.6.1¡@¤U½uDataNode 553 14.6.2¡@DataNodeºÏ½L¥X²{¬G»Ù 554 14.6.3¡@¦w¥þ¼Ò¦¡¾ÉPªº¿ù»~ 555 14.6.4¡@NodeManager¥X²{Java heap space 555 14.6.5¡@Too many fetch-failures¿ù»~ 555 14.6.6¡@Exceeded MAX_FAILED_ UNIQUE_FETCHES; bailing-out¿ù»~ 555 14.6.7¡@java.net.NoRouteToHostException: No route to host¿ù»~ 556 14.6.8¡@·s¼WDataNode 556 ²Ä15³¹¡@¤À¥¬¦¡¤å¥ó¨t²ÎHDFS»P¤À¥¬¦¡pºâYARN 558 15.1¡@¤À¥¬¦¡¤å¥ó¨t²ÎHDFS 558 15.1.1¡@HDFSµ²ºc»P¬[ºc 558 15.1.2¡@¦W¦r¸`ÂI¤u§@¾÷¨î 559 15.1.3¡@¤G¯Å¦W¦r¸`ÂI¤u§@¾÷¨î 560 15.1.4¡@HDFS¹B¦æ¾÷¨î¥H¤Î¼Æ¾Ú¦sÀx³æ¤¸¡]block¡^ 561 15.1.5¡@HDFS¼g¤J¼Æ¾Ú¬yµ{¸ÑªR 562 15.1.6¡@HDFSŪ¨ú¼Æ¾Ú¬yµ{¸ÑªR 563 15.2¡@MapReduce»PYARNªº¤u§@¾÷¨î 564 15.2.1¡@²Ä¤@¥NHadoop²Õ¦¨»Pµ²ºc 564 15.2.2¡@²Ä¤G¥NHadoop²Õ¦¨»Pµ²ºc 566
|
§Ç¡G |