ÈçÄÇÀïÖÃLinuxϵͳÖзºÆðµÄЧÀÍÉèÖùýʧÎÊÌâ
ÈçÄÇÀïÖÃlinuxϵͳÖзºÆðµÄЧÀÍÉèÖùýʧÎÊÌâ
ÔÚʹÓÃLinuxϵͳʱ£¬¾³£»áÓöµ½Ò»Ð©Ð§ÀÍÉèÖùýʧµÄÎÊÌ⣬ÀýÈçij¸öЧÀÍÎÞ·¨Æô¶¯¡¢ÉèÖÃÎļþ¹ýʧµÈ¡£Õë¶ÔÕâЩÎÊÌ⣬±¾ÎĽ«ÏÈÈÝһЩ³£¼ûµÄ½â¾öÒªÁ죬×ÊÖú¶ÁÕß½â¾öÕâЩÎÊÌâ¡£
Ò»¡¢¼ì²é¹ýʧÈÕÖ¾
µ±Ð§ÀÍÉèÖ÷ºÆðÎÊÌâʱ£¬Ê×ÏÈÓ¦¸ÃÉó²é¹ýʧÈÕÖ¾£¬ÒÔ±ãÏàʶÏêϸµÄ¹ýʧÐÅÏ¢¡£ÔÚLinuxϵͳÖУ¬¹ýʧÈÕ־ͨ³£´æ´¢ÔÚ/var/logĿ¼Ï¡£¿ÉÒÔͨ¹ýÏÂÁî”tail -f /var/log/[service].log”ʵʱÉó²é¹ýʧÈÕÖ¾¡£Í¨¹ýÉó²é¹ýʧÈÕÖ¾£¬¿ÉÒÔ»ñµÃЧÀͱ¨´íµÄÔµ¹ÊÔÓÉ£¬½ø¶ø¾ÙÐÐÕë¶ÔÐԵĽâ¾ö¡£
¶þ¡¢¼ì²éÉèÖÃÎļþ
ÉèÖÃÎļþ¹ýʧÊÇЧÀÍÉèÖó£¼ûµÄÎÊÌâÖ®Ò»¡£µ±Ð§ÀÍÎÞ·¨Æô¶¯Ê±£¬Ó¦µ±¼ì²éЧÀ͵ÄÉèÖÃÎļþÊÇ·ñ׼ȷ¡£Ã¿¸öЧÀͶ¼ÓÐ×Ô¼ºµÄÉèÖÃÎļþ£¬Î»ÓÚ/etcĿ¼Ï»òÕßЧÀ͵Ä×°ÖÃĿ¼ÖС£¿ÉÒÔʹÓÃÎı¾±à¼Æ÷·¿ªÉèÖÃÎļþ£¬¼ì²é¸÷ÏîÉèÖÃÊÇ·ñ׼ȷ¡£×¢ÖØÉó²éÎļþÖеÄ×¢ÊͺÍÌáÐÑÐÅÏ¢£¬ÓÐʱ¼äÎÊÌâ¾ÍÔÚÕâЩÌáÐÑÖлñµÃ½â´ð¡£
Èý¡¢ÖØÆôЧÀÍ
ÓÐʱ¼ä£¬Ð§ÀÍÉèÖÃÎļþÐ޸ĺó£¬ÐèÒªÖØÐÂÆô¶¯Ð§ÀͲŻªÉúЧ¡£Ê¹ÓÃÏÂÁî”systemctl restart [service]”»ò”service [service] restart”¿ÉÒÔÖØÆôЧÀÍ¡£ÔÚÖØÆôÇ°£¬¿ÉÒÔʹÓÃÏÂÁî”systemctl status [service]”»ò”service [service] status”¼ì²éЧÀÍÄ¿½ñµÄ״̬¡£ÈôÊÇЧÀÍÕýÔÚÔËÐУ¬¿ÉÒÔÏÈ×èÖ¹ÔÙÖØÆô¡£
ËÄ¡¢¼ì²éÒÀÀµ¹Øϵ
ЧÀÍÖ®¼ä¿ÉÄܱ£´æÒÀÀµ¹Øϵ£¬µ±Ä³¸öЧÀÍÉèÖùýʧʱ£¬»áµ¼ÖÂÒÀÀµÓÚËüµÄÆäËûЧÀÍÒ²ÎÞ·¨Õý³£ÊÂÇé¡£Òò´Ë£¬ÔÚ½â¾öÎÊÌâʱ£¬ÐèÒª¼ì²éЧÀ͵ÄÒÀÀµ¹Øϵ¡£¿ÉÒÔʹÓÃÏÂÁî”systemctl list-dependencies [service]”»ò”chkconfig –list [service]”Éó²éЧÀ͵ÄÒÀÀµ¹Øϵ£¬²¢Öð¸ö¼ì²éÕâЩÒÀÀµÐ§À͵ÄÉèÖá£
Î塢ʹÓõ÷ÊÔ¹¤¾ß
ÔÚ½â¾öЧÀÍÉèÖùýʧÎÊÌâʱ£¬¿ÉÒÔʹÓÃһЩµ÷ÊÔ¹¤¾ßÀ´×ÊÖú¶¨Î»ÎÊÌâ¡£ÀýÈ磬¿ÉÒÔʹÓÃstraceÏÂÁî×·×ÙЧÀÍÆô¶¯Àú³ÌÖеÄϵͳŲÓã¬Éó²éÏêϸÍÉ»¯µÄλÖ᣿ÉÒÔʹÓÃlsofÏÂÁîÉó²éЧÀÍÕ¼ÓõĶ˿ÚÊÇ·ñ±»ÆäËûÀú³ÌÕ¼Óã¬ÒÔ¼°Ð§À͵ÄȪԴ¡£¿ÉÒÔʹÓÃtcpdumpÏÂÁ»ñÍøÂç°ü£¬ÆÊÎöЧÀÍÖ®¼äµÄͨѶÇéÐΡ£
Áù¡¢²éÔÄÎĵµºÍÉçÇø
½â¾öЧÀÍÉèÖùýʧÎÊÌâʱ£¬¿ÉÒԲο¼Ð§À͵Ĺٷ½ÎĵµºÍÉçÇøÖеÄÂÄÀú·ÖÏí¡£¹Ù·½ÎĵµÖÐͨ³£°üÀ¨ÁËЧÀ͵ÄÏêϸ˵Ã÷¡¢ÉèÖÃʾÀýºÍ³£¼ûÎÊÌâ½â´ð¡£ÉçÇøÖеÄÌÖÂÛºÍÂÄÀú·ÖÏí¿ÉÒÔ×ÊÖúÎÒÃÇÃ÷È·Ï¢Õù¾öÎÊÌâ¡£ÔÚÓöµ½ÎÊÌâʱ£¬¿ÉÒÔÏÈÈ¥ËÑË÷Ïà¹ØµÄÎĵµºÍÉçÇø×ÊÔ´£¬ºÜ¿ÉÄÜÄܹ»ÕÒµ½½â¾ö¼Æ»®¡£
×ܽá
´¦Öóͷ£LinuxϵͳÖзºÆðµÄЧÀÍÉèÖùýʧÎÊÌâÐèÒªÄÍÐĺͼ¼ÇÉ¡£Í¨¹ýÉó²é¹ýʧÈÕÖ¾¡¢¼ì²éÉèÖÃÎļþ¡¢ÖØÆôЧÀÍ¡¢¼ì²éÒÀÀµ¹Øϵ¡¢Ê¹Óõ÷ÊÔ¹¤¾ßºÍ²éÔÄÎĵµºÍÉçÇø£¬¿ÉÒÔ¸ü¿ìËٵؽâ¾öÎÊÌ⡣ͬʱ£¬»ýÀÛÒ»¶¨µÄÂÄÀúÒ²ÊǺÜÊÇÖ÷ÒªµÄ£¬Í¨¹ýһֱѧϰºÍʵ¼ù£¬Ìá¸ß×Ô¼ºµÄÎÊÌâ½â¾öÄÜÁ¦¡£Ï£Íû±¾ÎĵÄÏÈÈݶԶÁÕßÔÚ´¦Öóͷ£LinuxϵͳЧÀÍÉèÖùýʧÎÊÌâʱÓÐËù×ÊÖú¡£
ÒÔÉϾÍÊÇÈçÄÇÀïÖÃLinuxϵͳÖзºÆðµÄЧÀÍÉèÖùýʧÎÊÌâµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡