×ðÁú¿­Ê±

Ç¿»¯LinuxЧÀÍÆ÷Çå¾²£ºÓÃÏÂÁîÀ´¼ì²â¶ñÒâÐÐΪ

Ç¿»¯LinuxЧÀÍÆ÷Çå¾²£ºÓÃÏÂÁîÀ´¼ì²â¶ñÒâÐÐΪ

Ëæ×Å»¥ÁªÍøµÄÉú³¤ £¬LinuxЧÀÍÆ÷ÔÚÆóÒµºÍСÎÒ˽¼ÒÖеÄʹÓÃÔ½À´Ô½Æձ顣×÷Ϊһ¸öÖÎÀíÔ± £¬ÎÒÃÇÓ¦¸Ãʱ¿Ì¹ØעЧÀÍÆ÷µÄÇå¾²ÐÔ¡£¶ñÒâÐÐΪµÄ±¬·¢¿ÉÄܵ¼ÖÂÊý¾Ýй¶¡¢ÏµÍ³±ÀÀ £»òÕßÆäËû²»Á¼Ð§¹û¡£ÎªÁËʵʱ·¢Ã÷ºÍ·ÀÓù¶ñÒâÐÐΪ £¬ÎÒÃÇ¿ÉÒÔͨ¹ýʹÓÃһЩÏÂÁîÀ´¼ì²âºÍÆÊÎöЧÀÍÆ÷ÉϵÄÐÐΪ¡£

±¾ÎĽ«ÏÈÈÝһЩ³£ÓõÄÏÂÁîºÍ´úÂëʾÀý £¬×ÊÖúÄúÇ¿»¯Ð§ÀÍÆ÷µÄÇå¾²ÐÔ¡£

ʹÓÔps”ÏÂÁîÉó²éÀú³Ì

“ps”ÏÂÁîÓÃÓÚÉó²éÕýÔÚÔËÐеÄÀú³Ì £¬´ÓÖпÉÒÔ·¢Ã÷һЩÒì³ £»òÕ߶ñÒâµÄÀú³Ì¡£Í¨¹ýʹÓÃһЩÌض¨²ÎÊý £¬ÎÒÃÇ¿ÉÒÔ¹ýÂ˳öһЩ¿ÉÒɵÄÀú³Ì¡£

ÀýÈç £¬ÎÒÃÇ¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÀ´²éÕÒÓë”ssh”Ïà¹ØµÄÀú³Ì£º

ps aux | grep ssh

µÇ¼ºó¸´ÖÆ

ʹÓÔnetstat”ÏÂÁîÉó²éÍøÂçÅþÁ¬

“netstat”ÏÂÁî¿ÉÒÔ×ÊÖúÎÒÃÇÉó²éÄ¿½ñЧÀÍÆ÷ÉϵÄÍøÂçÅþÁ¬¡£Í¨¹ýÉó²éÅþÁ¬µÄÔ´µØµãºÍÄ¿µÄµØµã £¬ÎÒÃÇ¿ÉÒÔ·¢Ã÷¿ÉÄܱ£´æµÄÒì³£ÅþÁ¬¡£

ÀýÈç £¬ÎÒÃÇ¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÀ´²éÕÒÓëij¸öIPµØµãÏà¹ØµÄÍøÂçÅþÁ¬£º

netstat -ant | grep "IPµØµã"

µÇ¼ºó¸´ÖÆ

ʹÓÔfind”ÏÂÁî²éÕÒ¿ÉÒÉÎļþ

“find”ÏÂÁî¿ÉÒÔ×ÊÖúÎÒÃÇÔÚЧÀÍÆ÷ÉϲéÕÒÌض¨ÀàÐÍ»òÕßÃüÃû¹æÔòµÄÎļþ¡£Í¨¹ý²éÕÒ¿ÉÒÉÎļþ £¬ÎÒÃÇ¿ÉÒÔʵʱ·¢Ã÷¿ÉÄܱ£´æµÄ¶ñÒâÈí¼þ»òÕß²¡¶¾¡£

ÀýÈç £¬ÎÒÃÇ¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÀ´²éÕÒÀ©Õ¹ÃûΪ”.sh”µÄ¿ÉÒɾ籾Îļþ£º

find / -name "*.sh" -type f

µÇ¼ºó¸´ÖÆ

ʹÓÔlast”ÏÂÁîÉó²éµÇ¼ÀúÊ·

“last”ÏÂÁî¿ÉÒÔÉó²éϵͳÖеĵǼÀúÊ·¼Í¼¡£Í¨¹ýÉó²é×î½üµÄµÇ¼ÇéÐÎ £¬ÎÒÃÇ¿ÉÒÔ¿ìËÙ·¢Ã÷²»Ã÷Éí·ÝµÄµÇ¼¡£

last

µÇ¼ºó¸´ÖÆ

ʹÓÔlsof”ÏÂÁîÉó²é·­¿ªµÄÎļþ

“lsof”ÏÂÁî¿ÉÒÔÉó²éÄ¿½ñϵͳÉÏ·­¿ªµÄÎļþºÍÀú³Ì¡£Í¨¹ýÉó²éÄÄЩÎļþ±»·­¿ª £¬ÎÒÃÇ¿ÉÒÔ·¢Ã÷һЩÒþ²ØµÄ¶ñÒâÈí¼þ»òÕßδ¾­ÊÚȨµÄ²Ù×÷¡£

ÀýÈç £¬ÎÒÃÇ¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÀ´Éó²éËùÓб»Àú³Ì·­¿ªµÄÎļþ£º

lsof

µÇ¼ºó¸´ÖÆ

ʹÓÔtop”ÏÂÁîÉó²éϵͳ¸ºÔØ

“top”ÏÂÁî¿ÉÒÔʵʱÏÔʾϵͳµÄ¸ºÔØÇéÐκÍÀú³Ì״̬¡£Í¨¹ýÉó²éϵͳµÄ¸ºÔØÇéÐÎ £¬ÎÒÃÇ¿ÉÒÔ·¢Ã÷ÏûºÄ¹ý¶à×ÊÔ´µÄÒì³£Àú³Ì»òÕ߶ñÒâÐÐΪ¡£

top

µÇ¼ºó¸´ÖÆ

ÒÔÉϽöÊÇһЩ³£ÓõÄÏÂÁîºÍʾÀý £¬Äú¿ÉÒÔƾ֤ÏÖÕæÏàÐÎÐ޸ĺÍÀ©Õ¹¡£ÔÚʹÓÃÕâЩÏÂÁîʱ £¬ÇëÖ»¹ÜʹÓÃÖÎÀíԱȨÏÞ £¬ÒÔ±ã»ñÈ¡¸ü¶àµÄϵͳÐÅÏ¢¡£

³ýÁËʹÓÃÏÂÁî¼ì²â¶ñÒâÐÐΪÍâ £¬ÎÒÃÇ»¹¿ÉÒÔ˼Á¿ÆäËûÇå¾²²½·¥ £¬Èç×°Ö÷À»ðǽ¡¢¸üÐÂϵͳ²¹¶¡¡¢ÏÞÖÆÔ¶³Ì»á¼ûµÈ¡£ÌØÊâÊÇ˼Á¿µ½ÏÂÁîµÄ¾ÖÏÞÐÔ £¬¿ÉÄÜÎÞ·¨·¢Ã÷һЩÉîÌõÀíµÄ¶ñÒâÐÐΪ¡£

ÔÚЧÀÍÆ÷Çå¾²·½Ãæ £¬Ò»Á¬µÄ¼à²âºÍ¸üÐÂÊÇÖÁ¹ØÖ÷ÒªµÄ¡£ÊµÊ±½ÓÄɲ½·¥À´± £»¤Ð§ÀÍÆ÷ £¬ÒÔÃâÔâÊÜËðʧ¡£Ï£ÍûÒÔÉϵÄÏÂÁîºÍʾÀýÄÜ×ÊÖúÄúÌá¸ßЧÀÍÆ÷µÄÇå¾²ÐÔ¡£

ÒÔÉϾÍÊÇÇ¿»¯LinuxЧÀÍÆ÷Çå¾²£ºÓÃÏÂÁîÀ´¼ì²â¶ñÒâÐÐΪµÄÏêϸÄÚÈÝ £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí £¬°æȨÕùÒéÓë±¾Õ¾ÎÞ¹Ø £¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿­Ê±ÂËÓÍ»úÍø¹Ù·½Ì¬¶È £¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ £¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢ £¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢ £¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿­Ê±ÊµÊ±ÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±

13452372176

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎå £¬9:30-18:30 £¬½ÚãåÈÕÐÝÏ¢

QR code
¡¾ÍøÕ¾µØͼ¡¿¡¾sitemap¡¿