LinuxЧÀÍÆ÷Éϳ£¼ûµÄÈÕÖ¾ÎļþѹËõºÍ¹éµµ¹ýʧ¼°ÆäÐÞ¸´ÒªÁì
linuxЧÀÍÆ÷ÊÇÆÕ±éÓÃÓÚÍйÜÍøÕ¾ºÍÌṩЧÀ͵Äƽ̨¡£ÔÚЧÀÍÆ÷ÔËÐÐʱ´ú£¬ÈÕÖ¾Îļþ±»Ò»Á¬¼Í¼£¬ÒÔ×ÊÖúÖÎÀíÔ±Õï¶ÏÎÊÌâºÍ¼à¿ØЧÀÍÆ÷Ô˶¯¡£ÎªÁ˼á³ÖЧÀÍÆ÷µÄÐÔÄܺʹ洢¿Õ¼äµÄÓÐÓÃʹÓã¬ÈÕÖ¾ÎļþÐèÒª°´ÆÚ¾ÙÐÐѹËõºÍ¹éµµ¡£È»¶ø£¬ÓÐʱÔÚÖ´ÐÐÕâЩ²Ù×÷ʱ»áÓöµ½Ò»Ð©³£¼ûµÄ¹ýʧ¡£±¾ÎĽ«ÏÈÈݼ¸ÖÖ³£¼ûµÄÈÕÖ¾ÎļþѹËõºÍ¹éµµ¹ýʧÒÔ¼°ÆäÐÞ¸´ÒªÁì¡£
“Permission Denied”¹ýʧ
µ±ÊµÑéѹËõ»ò¹éµµÈÕÖ¾Îļþʱ£¬¿ÉÄÜ»áÓöµ½”Permission Denied”¹ýʧ¡£Õâͨ³£ÊÇÓÉÓÚÓû§Ã»ÓÐ×ã¹»µÄȨÏÞÀ´»á¼û»òÐÞËûÈÕÖ¾ÎļþËùµ¼Öµġ£ÒªÐÞ¸´Õâ¸öÎÊÌ⣬¿ÉÒÔʹÓÃÒÔÏÂÒªÁìÖ®Ò»£º
È·ÈÏÄú¾ßÓÐ×ã¹»µÄȨÏÞ£º¼ì²éÄúÏÖÔÚʹÓõÄÓû§ÊÇ·ñ¾ßÓÐÊʵ±µÄȨÏÞ¡£Äú¿ÉÄÜÐèÒªÇл»µ½¾ßÓÐÊʵ±È¨ÏÞµÄÓû§À´Ö´ÐвÙ×÷¡£
¸ü¸ÄÎļþȨÏÞ£ºÊ¹ÓÔchmod”ÏÂÁî¸ü¸ÄÎļþµÄȨÏÞ¡£ÀýÈ磬ʹÓÃÒÔÏÂÏÂÁÎļþȨÏÞ¸ü¸ÄΪ¿É¶ÁдºÍÖ´ÐУº
chmod 700 filename
µÇ¼ºó¸´ÖÆ
“No space left on device”¹ýʧ
ÔÚ¾ÙÐÐÈÕÖ¾ÎļþѹËõ»ò¹éµµÊ±£¬Ð§ÀÍÆ÷µÄ´æ´¢×°±¸¿ÉÄÜ»áºÄ¾¡¿Õ¼ä£¬µ¼Ö”No space left on device”¹ýʧ¡£Îª½â¾ö´ËÎÊÌ⣬¿ÉÒÔ½ÓÄÉÒÔϲ½·¥Ö®Ò»£º
ÕûÀí´ÅÅ̿ռ䣺¼ì²éЧÀÍÆ÷ÖеÄÈßÓà»ò²»ÐèÒªµÄÎļþ£¬²¢É¾³ýËüÃÇÒÔÊÍ·Å´ÅÅ̿ռ䡣Äú¿ÉÒÔʹÓÔdf -h”ÏÂÁî¼ì²é´ÅÅÌ¿Õ¼äʹÓÃÇéÐΡ£
ѹËõÎļþºó¹éµµ£ºÔÚ¾ÙÐй鵵֮ǰ£¬Ê¹ÓÃѹËõ¹¤¾ß£¨Èçgzip»òbzip2£©¶ÔÈÕÖ¾Îļþ¾ÙÐÐѹËõ¡£Õ⽫ïÔÌÎļþµÄ¾Þϸ£¬Í¬Ê±½ÚÔ¼´æ´¢¿Õ¼ä¡£
“File is locked”¹ýʧ
µ±ÊµÑé¶ÔÕýÔÚÔËÐÐÖеÄÈÕÖ¾Îļþ¾ÙÐÐѹËõ»ò¹éµµÊ±£¬¿ÉÄÜ»áÓöµ½”File is locked”¹ýʧ¡£ÕâÌåÏÖÁíÒ»¸öÀú³ÌÕýÔÚʹÓøÃÎļþ¡£Òª½â¾ö´ËÎÊÌ⣬¿ÉÒÔÖ´ÐÐÒÔϲÙ×÷£º
µã»÷ÏÂÔØ¡°àËÃûÌÃѹËõ¾Þ½³¡±£»
È·ÈÏÎļþÊÇ·ñÕýÔÚ±»ÆäËûÀú³ÌʹÓãºÊ¹ÓÔlsof”ÏÂÁîÉó²éÕýÔÚʹÓøÃÎļþµÄÀú³Ì¡£ÀýÈ磬¹ØÓÚÃûΪ”filename”µÄÎļþ£¬Äú¿ÉÒÔʹÓÃÒÔÏÂÏÂÁ
lsof filename
µÇ¼ºó¸´ÖÆ
ÖÕÖ¹ÕýÔÚʹÓÃÎļþµÄÀú³Ì£ºÊ¹ÓÔkill”ÏÂÁîÖÕÖ¹Ö¸¶¨Àú³Ì¡£¿ÉÊÇ£¬ÔÚÖ´Ðд˲Ù×÷֮ǰ£¬ÇëÈ·±£ÄúÖªµÀÕýÔÚÖÕÖ¹µÄÀú³ÌµÄÖ÷ÒªÐÔºÍÓ°Ïì¡£
“File not found”¹ýʧ
ÓÐʱ»áÓöµ½”File not found”¹ýʧ£¬ÕâÒâζ×ÅÎÞ·¨ÕÒµ½ÒªÑ¹Ëõ»ò¹éµµµÄÎļþ¡£Òª½â¾ö´ËÎÊÌ⣬¿ÉÒÔʵÑéÒÔÏÂÒªÁ죺
È·ÈÏÎļþ·¾¶ºÍÃû³Æ£ºÈ·±£ÄúÊäÈëµÄÎļþ·¾¶ºÍÃû³Æ׼ȷÎÞÎ󡣿É×ÔÐмì²éÎļþλÖûòʹÓÔfind”ÏÂÁîËÑË÷Îļþ¡£
»Ö¸´É¥Ê§µÄÎļþ£ºÈôÊÇ·¢Ã÷Îļþȷʵɥʧ£¬¿ÉÒÔʵÑé´Ó±¸·ÝÖлָ´Îļþ¡£ÈôÊÇûÓб¸·Ý£¬Äú¿ÉÄÜÐèÒª½ÓÄɲ½·¥È·±£Î´À´ÈÕÖ¾ÎļþµÄ°´ÆÚ±¸·Ý¡£
×ܽá
ÈÕÖ¾ÎļþµÄѹËõºÍ¹éµµÊÇÈ·±£Ð§ÀÍÆ÷Õý³£ÔËÐв¢¸ßЧʹÓô洢¿Õ¼äµÄÖ÷Òª²Ù×÷¡£È»¶ø£¬ÔÚ¾ÙÐÐÕâЩ²Ù×÷ʱ£¬¿ÉÄÜ»áÓöµ½ÖÖÖÖ¹ýʧ¡£±¾ÎÄÏÈÈÝÁËһЩ³£¼ûµÄ¹ýʧºÍÐÞ¸´ÒªÁ죬°üÀ¨”Permission Denied”¡¢”No space left on device”¡¢”File is locked”ºÍ”File not found”¡£Í¨¹ýÕÆÎÕÕâЩÐÞ¸´ÒªÁ죬Äú¿ÉÒÔ¸üºÃµØÖÎÀíºÍά»¤LinuxЧÀÍÆ÷ÉϵÄÈÕÖ¾Îļþ¡£
ÒÔÉϾÍÊÇLinuxЧÀÍÆ÷Éϳ£¼ûµÄÈÕÖ¾ÎļþѹËõºÍ¹éµµ¹ýʧ¼°ÆäÐÞ¸´ÒªÁìµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡