ÈçÄÇÀïÖÃLinuxϵͳÖÐƵÈÔ·ºÆðµÄÀú³Ì±»¿¨×¡ÎÊÌâ
ÈçÄÇÀïÖÃlinuxϵͳÖÐƵÈÔ·ºÆðµÄÀú³Ì±»¿¨×¡ÎÊÌâ
Ëæ×ÅLinuxϵͳµÄÆÕ±éÓ¦Óã¬ÓÐʱ¼äÎÒÃÇ»áÓöµ½Àú³Ì±»¿¨×¡µÄÇéÐΡ£ÕâÖÖÇéÐοÉÄܵ¼ÖÂϵͳ±äµÃ²»Îȹ̣¬ÉõÖÁÎÞ·¨¼ÌÐøÕý³£ÔËÐС£ÄÇô£¬ÎÒÃÇÓ¦¸ÃÈçÄÇÀïÖÃlinuxϵͳÖÐƵÈÔ·ºÆðµÄÀú³Ì±»¿¨×¡ÎÊÌâÄØ£¿±¾ÎĽ«ÎªÄúÏÈÈÝһЩ³£¼ûµÄ½â¾ö¼Æ»®¡£
È·¶¨¿¨×¡µÄÀú³Ì£º
Ê×ÏÈ£¬ÎÒÃÇÐèҪȷ¶¨ÄĸöÀú³Ì±»¿¨×¡ÁË¡£ÔÚÖÕ¶ËÖÐʹÓÔps -aux”ÏÂÁî¿ÉÒÔÉó²éÄ¿½ñÔËÐеÄÀú³ÌÁÐ±í¡£ÕÒµ½¿¨×¡µÄÀú³Ì£¬²¢¼Í¼ÏÂÆäÀú³ÌID£¨PID£©ºÍÔËÐÐ״̬¡£
ÖÕÖ¹¿¨×¡µÄÀú³Ì£º
ÈôÊÇij¸öÀú³Ì±»¿¨×¡µ¼ÖÂϵͳÎÞ·¨Õý³£ÔËÐУ¬ÎÒÃÇ¿ÉÒÔʵÑéÖÕÖ¹¸ÃÀú³Ì¡£Ê¹ÓÔkill -9 “ÏÂÁî¿ÉÒÔÇ¿ÖÆÖÕÖ¹Ö¸¶¨Àú³Ì¡£×¢ÖØ£¬Õâ¸öÏÂÁî»áÁ¬Ã¦ÖÕÖ¹Àú³Ì²¢ÊÍ·ÅÏà¹ØµÄ×ÊÔ´£¬µ«Ò²¿ÉÄܵ¼ÖÂÊý¾Ýɥʧ»òÕßÆäËû²»¿ÉÔ¤ÁϵÄЧ¹û¡£Òò´Ë£¬ÔÚʹÓøÃÏÂÁî֮ǰ£¬×îºÃÏȱ¸·ÝÖ÷ÒªµÄÊý¾Ý¡£
ÖØÆôϵͳ£º
ÈôÊÇ¿¨×¡µÄÀú³ÌÎÞ·¨ÖÕÖ¹»òÕßÀú³ÌÖÕÖ¹ºóÎÊÌâÈÔÈ»±£´æ£¬ÎÒÃÇ¿ÉÒÔ˼Á¿ÖØÆôϵͳ¡£ÖØÆôϵͳ¿ÉÒÔɨ³ýϵͳÖеÄ״̬£¬ÖØмÓÔØËùÓеÄÀú³ÌºÍЧÀÍ£¬´Ó¶ø½â¾ö¿¨×¡ÎÊÌ⡣ʹÓÔreboot”ÏÂÁî¿ÉÒÔÖØÆôϵͳ¡£
ÆÊÎöÈÕÖ¾£º
ÔÚ´¦ÀíÀú³Ì±»¿¨×¡ÎÊÌâʱ£¬ÎÒÃÇ¿ÉÒÔͨ¹ýÉó²éϵͳµÄÈÕÖ¾ÎļþÀ´»ñÈ¡¸ü¶àµÄÐÅÏ¢¡£ÌØÊâÊÇ/var/log/messagesºÍ/var/log/syslogÕâÁ½¸öÎļþ£¬ËüÃǼͼÁËϵͳÔËÐÐʱµÄÖÖÖÖÊÂÎñºÍ¹ýʧÐÅÏ¢¡£Í¨Ì«¹ýÎöÕâЩÈÕÖ¾Îļþ£¬ÎÒÃÇ¿ÉÄÜÄܹ»ÕÒ³öµ¼ÖÂÀú³Ì¿¨×¡µÄ»ù´¡Ôµ¹ÊÔÓÉ£¬´Ó¶ø½ÓÄÉÏìÓ¦µÄ²½·¥À´×èÖ¹ÀàËÆÎÊÌâµÄÔٴα¬·¢¡£
¸üÐÂÈí¼þ£º
ÓÐʱ¼ä£¬Àú³Ì±»¿¨×¡µÄÎÊÌâÊÇÓÉÓÚÈí¼þ°æ±¾²»¼æÈÝ»òÕß±£´æbugµ¼Öµġ£ÔÚÕâÖÖÇéÐÎÏ£¬ÎÒÃÇ¿ÉÒÔʵÑé¸üÐÂÏà¹ØµÄÈí¼þ¡£Ê¹Óðü¹ÜÀí¹¤¾ß£¨Èçapt¡¢yum»òÕßdnf£©¿ÉÒÔÀû±ãµØ¸üÐÂϵͳÖеÄÈí¼þ°ü¡£ÁíÍ⣬ÈôÊÇÄúʹÓõÄÊÇ×Ô±àÒëµÄÈí¼þ£¬¿ÉÒÔʵÑéÉý¼¶µ½×îа汾²¢¼ì²é¸üÐÂÈÕÖ¾£¬¿´ÊÇ·ñÓнâ¾öÀàËÆÎÊÌâµÄÐÞ¸´¡£
¼ì²éϵͳ×ÊÔ´£º
ϵͳ×ÊԴȱ·¦¿ÉÄܵ¼ÖÂÀú³Ì¿¨×¡¡£ÎÒÃÇ¿ÉÒÔʹÓÔtop”»òÕß”htop”ÏÂÁîÀ´Éó²éϵͳ×ÊÔ´µÄʹÓÃÇéÐΡ£ÌØÊâÊÇCPU¡¢ÄÚ´æºÍ´ÅÅ̿ռ䣬ÈôÊÇij¸ö×ÊÔ´¿¿½ü¼«ÏÞ£¬Ôò¿ÉÄܵ¼ÖÂÀú³Ì±»¿¨×¡¡£ÔÚÕâÖÖÇéÐÎÏ£¬ÎÒÃÇ¿ÉÒÔ˼Á¿ÊÍ·ÅһЩ×ÊÔ´£¬×èֹһЩ²»ÐëÒªµÄÀú³Ì»òÕßÔöÌíϵͳµÄÉèÖÃÀ´×èÖ¹Àú³Ì¿¨×¡ÎÊÌâ¡£
È·¶¨ÍⲿÒòËØ£º
³ýÁËÉÏÊöÒªÁìÖ®Í⣬ÎÒÃÇ»¹ÐèҪ˼Á¿ÆäËû¿ÉÄܵÄÍⲿÒòËص¼ÖµÄÀú³Ì¿¨×¡ÎÊÌâ¡£ÀýÈ磬ÍøÂç¹ÊÕÏ¡¢Ó²¼þ¹ÊÕÏ¡¢Çå¾²ÎÊÌâµÈµÈ¡£ÔÚ´¦ÀíÀú³Ì¿¨×¡ÎÊÌâʱ£¬ÎÒÃÇÓ¦¸Ã×ÛºÏ˼Á¿ÕâЩÒòËØ£¬²¢ÏìÓ¦µØ½ÓÄɲ½·¥À´½â¾öÎÊÌâ¡£
×ܽ᣺
LinuxϵͳÖÐÀú³Ì±»¿¨×¡ÊÇÒ»¸ö³£¼ûµÄÎÊÌ⣬µ«Í¨¹ýһЩ¼òÆÓµÄÒªÁ죬ÎÒÃÇ¿ÉÒÔ½â¾öÕâ¸öÎÊÌâ¡£Ê×ÏÈ£¬ÎÒÃÇÐèҪȷ¶¨¿¨×¡µÄÀú³Ì£¬²¢ÊµÑéÖÕÖ¹Ëü¡£ÈôÊÇÎÞ·¨ÖÕÖ¹£¬¿ÉÒÔ˼Á¿ÖØÆôϵͳ¡£ÆÊÎöϵͳÈÕÖ¾¡¢¸üÐÂÈí¼þ¡¢¼ì²éϵͳ×ÊÔ´ÒÔ¼°È·¶¨ÍⲿÒòËØ¿ÉÄܵ¼ÖÂÀú³Ì¿¨×¡Ò²Êǽâ¾öÕâ¸öÎÊÌâµÄÓÐÓÃÒªÁ졣ͨ¹ý×ÛºÏÔËÓÃÕâЩҪÁ죬ÎÒÃÇ¿ÉÒÔÌá¸ßLinuxϵͳµÄÎȹÌÐԺͿɿ¿ÐÔ£¬È·±£ÏµÍ³µÄÕý³£ÔËÐС£
ÒÔÉϾÍÊÇÈçÄÇÀïÖÃLinuxϵͳÖÐƵÈÔ·ºÆðµÄÀú³Ì±»¿¨×¡ÎÊÌâµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡