ÔõÑù½â¾öLinuxϵͳÖзºÆðµÄЧÀÍÎÞ·¨Æô¶¯ºÍÉèÖùýʧÎÊÌâ
ÔõÑù½â¾ölinuxϵͳÖзºÆðµÄЧÀÍÎÞ·¨Æô¶¯ºÍÉèÖùýʧÎÊÌâ
СÐò£º
ÔÚʹÓÃLinuxϵͳÀú³ÌÖУ¬ÎÒÃdz£³£»áÓöµ½Ð§ÀÍÎÞ·¨Æô¶¯ºÍÉèÖùýʧµÄÎÊÌâ¡£ÕâЩÎÊÌâͨ³£µ¼ÖÂϵͳÎÞ·¨Õý³£ÔËÐУ¬¸øÎÒÃǵÄÊÂÇéºÍѧϰ´øÀ´Ò»¶¨µÄÀ§ÈÅ¡£±¾ÎĽ«ÏÈÈÝһЩ³£¼ûµÄ½â¾öÒªÁ죬×ÊÖúÎÒÃÇѸËÙ½â¾öÕâЩÎÊÌâ¡£
Ò»¡¢¼ì²éÈÕÖ¾ºÍ¹ýʧÐÅÏ¢
ЧÀÍÎÞ·¨Æô¶¯ºÍÉèÖùýʧͨ³£»áÔÚϵͳµÄÈÕÖ¾ÎļþÖÐÓÐÏìÓ¦µÄ¼Í¼¡£ÎÒÃÇ¿ÉÒÔͨ¹ýÉó²éÈÕÖ¾Îļþ£¬Ïàʶ¹ýʧµÄÏêϸԵ¹ÊÔÓÉ¡£ÔÚ´ó´ó¶¼Linux¿¯ÐаæÖУ¬ÈÕÖ¾Îļþͨ³£´æ´¢ÔÚ/var/logĿ¼Ï¡£ÎÒÃÇ¿ÉÒÔʹÓù¤¾ßÈçcat¡¢tailµÈÉó²éÈÕÖ¾Îļþ¡£Éó²éÈÕÖ¾Îļþ¿ÉÒÔΪÎÒÃÇÌṩÓйØÎÊÌâµÄһЩÏßË÷£¬´Ó¶ø¸üºÃµØ½â¾öЧÀÍÎÞ·¨Æô¶¯ºÍÉèÖùýʧµÄÎÊÌâ¡£
¶þ¡¢¼ì²éЧÀÍÊÇ·ñÒÑ×°ÖûòÒÑ׼ȷÉèÖÃ
ЧÀÍÎÞ·¨Æô¶¯ºÍÉèÖùýʧµÄ³£¼ûÔµ¹ÊÔÓÉÖ®Ò»ÊÇЧÀÍδ׼ȷװÖûòδ׼ȷÉèÖá£ÎÒÃÇ¿ÉÒÔʹÓÃÏÂÁîÈçsystemctl status¡¢serviceµÈ¼ì²éЧÀ͵Ä״̬¡£ÈôÊÇЧÀÍδװÖã¬ÎÒÃÇ¿ÉÒÔʹÓðü¹ÜÀíÆ÷Èçapt¡¢yumµÈ×°ÖÃЧÀÍ¡£ÈôÊÇЧÀÍÒÑ×°Öõ«ÉèÖÃÍÉ»¯£¬ÎÒÃÇÐèÒª¼ì²éÉèÖÃÎļþ£¬È·±£ÉèÖÃÎļþÖеIJÎÊýºÍÑ¡Ïî׼ȷ¡£Í¨³£ÉèÖÃÎļþλÓÚ/etcĿ¼Ï£¬ÎÒÃÇ¿ÉÒÔʹÓÃÎı¾±à¼Æ÷Éó²éºÍÐÞ¸ÄÉèÖÃÎļþ¡£
Èý¡¢¼ì²éЧÀÍÒÀÀµÏîºÍȨÏÞ
ЧÀÍÆô¶¯ºÍÉèÖùýʧµÄÁíÒ»¸ö³£¼ûÔµ¹ÊÔÓÉÊÇȱÉÙЧÀ͵ÄÒÀÀµÏî»òȨÏÞȱ·¦¡£Ð§ÀÍͨ³£»áÒÀÀµÓÚÆäËûЧÀÍ»òϵͳ×é¼þ£¬ÕâЩÒÀÀµÏî¿ÉÄÜÊÇÆäËûЧÀÍ¡¢¿âÎļþ»òϵͳ×é¼þ¡£ÎÒÃÇ¿ÉÒÔʹÓÃÈçlsof¡¢ldd¡¢psµÈÏÂÁîÉó²éЧÀ͵ÄÒÀÀµÏî¡£ÈôÊÇЧÀÍȱÉÙÒÀÀµÏÎÒÃÇÐèҪװÖÃÏìÓ¦µÄÒÀÀµÏî¡£ÁíÍ⣬ЧÀÍÆô¶¯ºÍÉèÖû¹ÐèÒªÏìÓ¦µÄȨÏÞ¡£ÎÒÃÇ¿ÉÒÔʹÓÃchmodºÍchownÏÂÁî¸ü¸ÄÎļþºÍĿ¼µÄȨÏÞ£¬È·±£Ð§À;ßÓÐ×ã¹»µÄȨÏÞ¡£
ËÄ¡¢ÖØÆôºÍÖØÐÂÉèÖÃЧÀÍ
ÓÐЩʱ¼ä£¬Ð§ÀÍÎÞ·¨Æô¶¯ºÍÉèÖùýʧÊÇÓÉÓÚÔÝʱµÄÎÊÌâÒýÆðµÄ£¬ÈçЧÀÍÍ߽⡢ÉèÖÃÎļþË𻵵ȡ£ÔÚÕâÖÖÇéÐÎÏ£¬ÖØÆôºÍÖØÐÂÉèÖÃЧÀÍ¿ÉÄÜ»á½â¾öÎÊÌâ¡£ÎÒÃÇ¿ÉÒÔʹÓÃÈçsystemctl restart¡¢service restartµÈÏÂÁîÖØÆôЧÀÍ¡£ÈôÊÇÎÊÌâÈÔÈ»±£´æ£¬ÎÒÃÇ¿ÉÒÔʵÑéÖØÐÂÉèÖÃЧÀÍ¡£ÖØÐÂÉèÖÃЧÀÍͨ³£»áÌìÉúеÄÉèÖÃÎļþ£¬ÁýÕ־ɵÄÉèÖÃÎļþ£¬´Ó¶ø½â¾öÎÊÌâ¡£
Îå¡¢×·Çó×ÊÖúºÍ²Î¿¼¹Ù·½Îĵµ
ÈôÊÇÎÒÃÇʵÑéÁËÉÏÊöÒªÁìÈÔÈ»ÎÞ·¨½â¾öÎÊÌ⣬ÎÒÃÇ¿ÉÒÔÏòLinuxÉçÇøºÍÏà¹ØÂÛ̳׷Çó×ÊÖú¡£Ðí¶àLinux¿¯Ðа涼Óйٷ½µÄÎĵµºÍÓû§ÊֲᣬÎÒÃÇ¿ÉÒÔÔÚÕâЩÎĵµÖÐÕÒµ½ÓйØÌض¨Ð§À͵ÄÏêϸÐÅϢϢÕù¾ö¼Æ»®¡£±ðµÄ£¬ÎÒÃÇ»¹¿ÉÒԲο¼Ïà¹ØµÄÍøÉϽ̳̺ÍÊé¼®£¬ÒÔ»ñÈ¡¸ü¶àµÄ×ÊÖú¡£
½áÂÛ£º
ÔÚLinuxϵͳÖУ¬Ð§ÀÍÎÞ·¨Æô¶¯ºÍÉèÖùýʧÊdz£¼ûµÄÎÊÌ⡣ͨ¹ý¼ì²éÈÕÖ¾ºÍ¹ýʧÐÅÏ¢£¬¼ì²éЧÀÍÊÇ·ñÒÑ×°ÖûòÒÑ׼ȷÉèÖ㬼ì²éЧÀÍÒÀÀµÏîºÍȨÏÞ£¬ÖØÆôºÍÖØÐÂÉèÖÃЧÀÍ£¬ÒÔ¼°×·Çó×ÊÖúºÍ²Î¿¼¹Ù·½Îĵµ£¬ÎÒÃÇ¿ÉÒÔѸËÙ½â¾öÕâЩÎÊÌ⡣ϣÍû±¾ÎÄÄܶÔÄú½â¾öLinuxϵͳÖÐЧÀÍÎÞ·¨Æô¶¯ºÍÉèÖùýʧÎÊÌâÓÐËù×ÊÖú¡£
ÒÔÉϾÍÊÇÔõÑù½â¾öLinuxϵͳÖзºÆðµÄЧÀÍÎÞ·¨Æô¶¯ºÍÉèÖùýʧÎÊÌâµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡