linux Kill¶à¸ö½ø³Ì
¾³£ÐèÒªKill¶à¸ö½ø³Ì£¬ÕâЩ½ø³Ì°üº¬¹²Í¬µÄ¹Ø¼ü×Ö£¬¿ÉÒÔÓÃÒ»ÌõÃüÁîKillµôËüÃÇ¡£ ps aux | grep "common" | cut –c 9-15 | xargs kill –9 ¹ÜµÀ·û¡°|¡±ÓÃÀ´¸ô¿ªÁ½¸öÃüÁ¹ÜµÀ·û×ó±ßÃüÁîµÄÊä³ö»á×÷Ϊ¹ÜµÀ·ûÓÒ±ßÃüÁîµÄÊäÈë¡£ÏÂÃæ˵˵ÓùܵÀ·ûÁª½ÓÆðÀ´µÄ¼¸¸öÃüÁ "ps aux" ²é¿´ËùÓнø³ÌµÄÃüÁî¡£Õâʱ¼ìË÷³öµÄ½ø³Ì½«×÷ΪÏÂÒ»ÌõÃüÁîgrep "common"µÄÊäÈë¡£ "grep "common" Ñ¡³öËùÓк¬Óйؼü×Ö"common"µÄ½ø³Ì¡£ "cut -c 9-15" ½ØÈ¡ÊäÈëÐеĵÚ9¸ö×Ö·ûµ½µÚ15¸ö×Ö·û£¬¶øÕâÕýºÃÊǽø³ÌºÅPID¡£ "xargs kill –9" ÖеÄxargsÃüÁîÊÇÓÃÀ´°ÑÇ°ÃæÃüÁîµÄÊä³ö½á¹û£¨PID£©×÷Ϊ"kill –9"ÃüÁîµÄ²ÎÊý£¬²¢Ö´ÐиÃÃüÁî¡£"kill –9" »áÇ¿ÐÐɱµôÖ¸¶¨½ø³Ì¡£
Ïà¹ØÎĵµ£º
¡¡# fstabÎļþµÄ×÷ÓÃ
¡¡¡¡Îļþ/etc/fstab´æ·ÅµÄÊÇϵͳÖеÄÎļþϵͳÐÅÏ¢¡£µ±ÕýÈ·µÄÉèÖÃÁ˸ÃÎļþ£¬Ôò¿ÉÒÔͨ¹ý"mount /directoryname"ÃüÁîÀ´¼ÓÔØÒ»¸öÎļþϵͳ£¬Ã¿ÖÖÎļþϵͳ¶¼¶ÔÓ¦Ò»¸ö¶ÀÁ¢µÄÐУ¬Ã¿ÐÐÖеÄ×ֶζ¼Óпոñ»òtab¼ü·Ö¿ª¡£Í¬Ê±fsck¡¢ mount¡¢umountµÄµÈÃüÁÀûÓøóÌÐò¡£
¡¡¡¡# fstabÎļþ¸ñʽ
¡¡¡¡ÏÂÃæÊÇ/etc/fata ......
×÷ΪLinuxϵijÌÐò¿ª·¢ÈËÔ±£¬´ó¼ÒÒ»¶¨¶¼Óöµ½¹ýMakefile£¬ÓÃmakeÃüÁîÀ´±àÒë×Ô¼ºÐ´µÄ³ÌÐòȷʵÊǺܷ½±ã¡£Ò»°ãÇé¿öÏ£¬´ó¼Ò¶¼ÊÇÊÖ¹¤Ð´Ò»¸ö¼òµ¥Makefile£¬Èç¹ûÒªÏëд³öÒ»¸ö·ûºÏ×ÔÓÉÈí¼þ¹ßÀýµÄMakefile¾Í²»ÄÇôÈÝÒ×ÁË¡£
¡¡¡¡ÔÚ±¾ÎÄÖУ¬½«¸ø´ó¼Ò½éÉÜÈçºÎʹÓÃautoconfºÍautomakeÁ½¸ö¹¤¾ßÀ´°ïÖúÎÒÃÇ×Ô¶¯µØÉú³É·ûºÏ×ÔÓÉÈí¼þ¹ßÀýµÄMa ......
¹ÜµÀ¼°ÓÐÃû¹ÜµÀ
ÔÚ±¾ÏµÁÐÐòÖÐ×÷Õ߸ÅÊöÁË linux ½ø³Ì¼äͨÐŵļ¸ÖÖÖ÷ÒªÊֶΡ£ÆäÖйܵÀºÍÓÐÃû¹ÜµÀÊÇ×îÔçµÄ½ø³Ì¼äͨÐÅ»úÖÆÖ®Ò»£¬¹ÜµÀ¿ÉÓÃÓÚ¾ßÓÐÇ×Ôµ¹Øϵ½ø³Ì¼äµÄͨÐÅ£¬ÓÐÃû¹ÜµÀ¿Ë·þÁ˹ܵÀûÓÐÃû×ÖµÄÏÞÖÆ£¬Òò´Ë£¬³ý¾ßÓйܵÀËù¾ßÓеŦÄÜÍ⣬Ëü»¹ÔÊÐíÎÞÇ×Ôµ¹Øϵ½ø³Ì¼äµÄͨÐÅ¡£ ÈÏÇå¹ÜµÀºÍÓÐÃû¹ÜµÀµÄ¶Áд¹æÔòÊÇÔÚ³ÌÐòÖÐÓ¦Ó ......
¹²ÏíÄÚ´æ:
ʹÓù²ÏíÄÚ´æºÍʹÓÃmalloc()À´·ÖÅäÄÚ´æÇøÓòºÜÏàËÆ¡£Ê¹Óù²ÏíÄÚ´æµÄ·½·¨ÊÇ£º
1 ¶ÔÒ»¸ö½ø³Ì/Ïß³ÌʹÓÃshmget()·ÖÅäÄÚ´æÇøÓò¡£
2 ʹÓÃshmat()·ÅÖÃÒ»¸ö»ò¶à¸ö½ø³Ì/Ïß³ÌÔÚ¹²ÏíÄÚ´æÖУ¬Ò²¿ÉÒÔÓÃshmctl()À´»ñÈ¡ÐÅÏ¢»òÕß¿ØÖƹ²ÏíÇøÓò¡£
3 ʹÓÃshmdt()´Ó¹²Ïí ......
linuxĿ¼¼Ü¹¹
/ ¸ùĿ¼
/bin ³£ÓõÄÃüÁî binary file µÄÄ¿錄
/boot ´æ·ÅϵͳÆô¶¯Ê±±ØÐë¶ÁÈ¡µÄµµ°¸£¬°üÀ¨ºËÐÄ (kernel) ÔÚÄÚ
/boot/grub/menu.lst &n ......