½â¾öLinuxϵͳËÀ»úÎÊÌâµÄÒªÁì
ÔõÑù½â¾ölinuxϵͳÖзºÆðµÄϵͳËÀ»úÎÊÌâ
Ëæ×ÅÊÖÒÕµÄÉú³¤£¬Linux²Ù×÷ϵͳÒѾ³ÉΪÐí¶àÆóÒµºÍСÎÒ˽ÈËÓû§µÄÊ×Ñ¡¡£È»¶ø£¬¾ÍÏñÆäËû²Ù×÷ϵͳһÑù£¬LinuxϵͳҲ¿ÉÄÜ»áÓöµ½ÏµÍ³ËÀ»úµÄÎÊÌ⡣ϵͳËÀ»ú²»µ«»áµ¼ÖÂÊý¾ÝµÄɥʧ£¬»¹»áÓ°ÏìÊÂÇéµÄ¾ÙÐкÍÓû§µÄÌåÑé¡£Òò´Ë£¬½â¾öLinuxϵͳÖзºÆðµÄϵͳËÀ»úÎÊÌâÊǺÜÊÇÖ÷ÒªµÄ¡£ÔÚ±¾ÎÄÖУ¬ÎÒÃǽ«Ì½ÌÖһЩ½â¾öÕâ¸öÎÊÌâµÄÒªÁìºÍ°ì·¨¡£
Ò»¡¢¼ì²éÓ²¼þ¹ÊÕÏ
ϵͳËÀ»ú¿ÉÄÜÊÇÓÉÓ²¼þ¹ÊÕÏÒýÆðµÄ¡£Òò´Ë£¬Ê×ÏÈÒª¼ì²éÓ²¼þÊÇ·ñÕý³£ÔË×÷¡£¿ÉÒÔͨ¹ýÒÔϼ¸¸ö°ì·¨¾ÙÐУº
¼ì²éÓ²¼þÅþÁ¬£ºÈ·±£ËùÓеÄÓ²¼þ×°±¸¶¼×¼È·ÅþÁ¬£¬²¢ÇÒûÓÐËɶ¯»òÍÑÂä¡£
¼ì²éÓ²¼þ״̬£ºÊ¹ÓÃÊʵ±µÄÏÂÁîºÍ¹¤¾ßÀ´¼à²âÓ²¼þµÄ״̬¡£ÀýÈ磬¿ÉÒÔʹÓÔlshw”ÏÂÁîÀ´Éó²éϵͳµÄÓ²¼þÉèÖÃÐÅÏ¢£¬»òÕßʹÓÔsmartctl”ÏÂÁîÀ´¼ì²éÓ²Å̵Ŀµ½¡×´Ì¬¡£
¼ì²éÓ²¼þÇý¶¯³ÌÐò£ºÈ·±£ËùÓеÄÓ²¼þÇý¶¯³ÌÐò¶¼ÊÇ×îеİ汾£¬²¢ÇÒûÓб¬·¢³åÍ»»ò¹ýʧ¡£
¶þ¡¢¼ì²éÈí¼þÎÊÌâ
ϵͳËÀ»ú¿ÉÄÜÒ²ÓëÈí¼þÎÊÌâÓйء£ÔÚ½â¾öÕâ¸öÎÊÌâ֮ǰ£¬Ê×ÏÈÒª¼ì²éÒÔϼ¸¸ö·½Ã棺
¸üÐÂϵͳ£ºÈ·±£ÏµÍ³ÖеÄËùÓÐÈí¼þ¶¼ÊÇ×îа汾¡£¿ÉÒÔʹÓÔapt-get”»ò”yum”ÏÂÁîÀ´¸üÐÂÈí¼þ°ü¡£
¼ì²éϵͳÈÕÖ¾£º¼ì²éϵͳÈÕÖ¾ÒÔÉó²éÊÇ·ñÓÐÈκιýʧ»òÒì³£ÐÂÎÅ¡£¿ÉÒÔʹÓÔjournalctl”ÏÂÁîÀ´Éó²éϵͳÈÕÖ¾¡£
¼ì²éÀú³Ì£º¼ì²éϵͳÖÐÔËÐеÄÀú³Ì£¬¿´ÊÇ·ñÓÐÈκγåÍ»»òÒì³£¡£¿ÉÒÔʹÓÔps”ÏÂÁîÀ´ÁгöËùÓеÄÀú³Ì¡£
¼ì²éÄÚ´æʹÓÃÇéÐΣºÈ·±£ÏµÍ³µÄÄÚ´æʹÓÃÕý³£¡£¿ÉÒÔʹÓÔfree”ÏÂÁîÀ´Éó²éϵͳµÄÄÚ´æÇéÐΡ£
Èý¡¢Ê¹ÓùÊÕÏɨ³ý¹¤¾ß
ÈôÊÇÒÔÉÏÒªÁ춼ûÓнâ¾öÎÊÌ⣬»¹¿ÉÒÔʵÑéʹÓÃһЩ¹ÊÕÏɨ³ý¹¤¾ßÀ´¶¨Î»Ï¢Õù¾öÎÊÌâ¡£ÒÔÏÂÊǼ¸¸ö³£ÓõŤ¾ß£º
Memtest86£ºÓÃÓÚ¼ì²âϵͳÄÚ´æÊÇ·ñ±£´æÎÊÌâ¡£¿ÉÒÔʹÓÃLive CD»òUSBÆô¶¯Memtest86²¢ÔËÐвâÊÔ¡£
Systemtap£ºÓÃÓÚ¸ú×ÙϵͳµÄÖ´ÐÐÀú³Ì¡£¿ÉÒÔʹÓÃSystemtapÀ´²éÕÒ²¢ÐÞ¸´¿ÉÄܵ¼ÖÂϵͳËÀ»úµÄÎÊÌâ¡£
GDB£¨GNUµ÷ÊÔÆ÷£©£ºÓÃÓÚµ÷ÊÔϵͳÖеijÌÐò¡£¿ÉÒÔʹÓÃGDBÀ´ÆÊÎöϵͳËÀ»úʱµÄ¿ÍÕ»ÐÅÏ¢£¬²¢ÕÒ³öÒý·¢¹ÊÕϵĴúÂë¡£
ËÄ¡¢×·Çóרҵ×ÊÖú
ÈôÊÇÒÔÉÏÒªÁ춼ÎÞ·¨½â¾öÎÊÌ⣬ÄÇô×îºóÒ»²½¾ÍÊÇ×·ÇóרҵÈËÊ¿µÄ×ÊÖú¡£¿ÉÒÔÁªÏµLinuxϵͳά»¤Õß¡¢ÏµÍ³ÖÎÀíÔ±»òÆäËûÊÖÒÕÖ§³ÖÖ°Ô±À´½â¾öϵͳËÀ»úÎÊÌâ¡£ÕâЩרҵÈËʿͨ³£Óиü¸»ºñµÄÂÄÀúºÍ¸üÉîÈëµÄÊÖÒÕ֪ʶ£¬Äܹ»Ìṩ¸ü׼ȷµÄ½â¾ö¼Æ»®¡£
×ÛÉÏËùÊö£¬½â¾öLinuxϵͳÖзºÆðµÄϵͳËÀ»úÎÊÌâÐèÒª×ÛºÏ˼Á¿Ó²¼þºÍÈí¼þÒòËØ£¬²¢Ê¹ÓÃÊʵ±µÄ¹¤¾ßºÍÒªÁì¾ÙÐÐÕï¶ÏºÍÐÞ¸´¡£Ö»ÓÐͨ¹ýÒ»Á¬µÄÆ𾢺ÍÄÍÐÄ£¬ÎÒÃDzŻªÀֳɽâ¾öÕâ¸öÎÊÌ⣬ʹLinuxϵͳÔËÐÐÔ½·¢Îȹ̺Ϳɿ¿¡£Ï£Íû±¾ÎÄÌṩµÄÒªÁìºÍ°ì·¨Äܹ»¶ÔÄú½â¾öϵͳËÀ»úÎÊÌâÓÐËù×ÊÖú¡£
ÒÔÉϾÍÊǽâ¾öLinuxϵͳËÀ»úÎÊÌâµÄÒªÁìµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡