Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

linux ÏûÏ¢¶ÓÁÐʹÓþ­Ñé

¸ÅÊö£º
ÏûÏ¢¶ÓÁÐÊÇlinuxϽø³Ì¼äͨÐŵÄÒ»ÖÖ·½Ê½£¬Ò»°ãÓÃÓÚ´«ËÍÉÙÁ¿Êý¾Ý£¬Èç¹û´óÁ¿Êý¾ÝÐèÒªÔÚ½ø³Ì¼ä¹²Ïí£¬Ôò¿ÉÒÔÓù²ÏíÄÚ´æ¡£
º¯Êý½Ó¿ÚʹÓãº
linuxÏÂÌṩÁËÒÔϼ¸¸ö½Ó¿Ú£¬ÓÃÓÚÏûÏ¢¶ÓÁеÄʹÓã¬Ê¹ÓÃÒ»°ã¹ý³ÌÈçÏ£º
1. µ÷ÓÃftok½Ó¿Ú²úÉúÒ»¸ökey.
    ʹÓÃftokµÄºÃ´¦ÊÇ£¬·ÃÎÊͬһ¸öÏûÏ¢¶ÓÁеIJ»Í¬½ø³Ì¿ÉÒÔͨ¹ýͬһ¸öÎļþ·ÃÎÊÏàͬµÄ¶ÓÁÐ.
    ÁíÍ⣬Èç¹ûÎļþ±»É¾³ý£¬¼´Ê¹ÖØвúÉúºóÄÚÈÝһģһÑù£¬ÈÔÈ»¿ÉÄܲúÉú²»Í¬µÄkey
£¬ÒòΪÎļþµÄinodeÓëkeyÖµµÄ²úÉúÓйء£
2. µ÷ÓÃmsgget(ʹÓÃkey×÷Ϊ²ÎÊý)²úÉúÒ»¸ö¶ÓÁÐ
3. ½ø³Ì¿ÉÒÔÓÃmsgsnd·¢ËÍÏûÏ¢µ½Õâ¸ö¶ÓÁУ¬ÏàÓ¦µÄ±ðµÄ½ø³ÌÓÃ
msgrcv¶ÁÈ¡¡£
      ÕâÀïÐèҪעÒâmsgsnd¿ÉÄÜ»áʧ°ÜµÄÁ½¸öÇé¿ö:
      a) ¿ÉÄܱ»Öжϴò¶Ï(°üÀ¨msgsndºÍmsgrcv). ÓÈÆäÊÇ´óÁ÷Á¿Ó¦ÓÃÖиüÈÝÒ׳öÏÖ.
                  ±È½Ï°²È«µÄÓ÷¨ÊÇÅжϲÙ×÷ÊÇ·ñ±»Öжϴò¶Ï£¬Èç¹û±»´ò¶Ï£¬ÔòÐèÒª¼ÌÐø³¢ÊÔ¡£
      b) ÏûÏ¢¶ÓÁÐÂú
                 ²úÉúÕâ¸ö´íÎó£¬ÔòÐèÒª¿¼ÂÇÌá¸ßϵͳÏûÏ¢¶ÓÁйæ¸ñ£¬»òÕ߲鿴ÏûÏ¢½ÓÊÕ´¦ÊÇ·ñÓÐÎÊÌâ
4. msgctlº¯Êý¿ÉÒÔÓÃÀ´É¾³ýÏûÏ¢¶ÓÁÐ
    ÏûÏ¢¶ÓÁвúÉúÖ®ºó£¬³ý·ÇÃ÷È·µÄɾ³ý£¨¿ÉÒÔÓã©£¬²úÉúµÄ¶ÓÁлáÒ»Ö±±£ÁôÔÚϵͳÖС£linuxÏÂÏûÏ¢¶ÓÁеĸöÊýÊÇÓÐÏ޵ģ¬×¢ÒⲻҪй¶¡£Èç¹ûʹÓÃÒѾ­´ïµ½ÉÏÏÞ£¬msggetµ÷Óûáʧ°Ü£¬²úÉúµÄ´íÎóÂë¶ÔÓ¦µÄÌáʾÐÅϢΪno space left on device.
Ïà¹ØÃüÁîÐнӿÚ:
¿ÉÒÔʹÓÃipcs, ÒÔ¼°ipcrmÃüÁî½øÐÐÑéÖ¤£¬Õï¶Ï¡£
ipcs -q -l  Áгöµ±Ç°ÏµÍ³ÏûÏ¢¶ÓÁйæ¸ñÅäÖÃ
ipcs -q     Áгöµ±Ç°ÏµÍ³ÏûÏ¢¶ÓÁеļòµ¥Ê¹ÓÃÇé¿ö
ipcs -q -u Áгöµ±Ç°ÏµÍ³ÏûÏ¢¶ÓÁеÄÏêϸʹÓÃÇé¿ö
ipcrm      ¿ÉÒÔÊÖ¹¤É¾³ýij¸öÏûÏ¢¶ÓÁÐ


Ïà¹ØÎĵµ£º

ʹÓÃlinuxÓиÐ

    ÒòΪ¹«Ë¾Òª¾­ÓªGroupON£¬ÏÂÔØÁËÒ»¸ö¿ªÔ´PHPÄ£°å´òËãÒ»ÊÔ£¬°³µ½µ×ÊÇMSÕóÓªµÄ£¬ÈýÌ춼û²¿ÊðºÃLinux + Apache2.0 + PHP5.0 + MySQL5.0 + Zend Optimizer3.3.0¡£
    Ö±µ½½ñÌ죬ÎÒ²ÅÇ×ÉíÌå»áµ½ÎªÊ²Ã´linuxÃâ·Ñ¡¢¿ªÔ´£¬Óû§ÈºÕâôÉÙ¡£
    ÕýÊÇÒòΪ¿ªÔ´£¬ËùÒÔËüµÄÓ¦ÓÃÈí¼þ¿ ......

linuxÄÚºËÄ£¿éÖⶻñÖжϵÄÒ»¸öÀý×Ó

Ö±½ÓÉÏÀý×Ó°É¡£Ö»ÊDz¶»ñij¸öÉ豸µÄÖж϶øÒÑ¡£¡£¡£
¸ÃÎļþµÄÃû×ÖÊÇirq.c
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/timer.h>
#define DEBUG
#ifdef DEBUG
#define MSG(message, args...) printk( ......

LinuxÄں˲ÎÊýµ÷ÓÅ

1. ²é¿´socket״̬
server1:~ # netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
TIME_WAIT 257
CLOSE_WAIT 117
FIN_WAIT2 2
ESTABLISHED 228
2. #vi /etc/sysctl.conf
3. Ôö¼Ó
   net.ipv4.tcp_keepalive_time = 120
   net.ipv4.tcp_keepalive_probes = 2
 &n ......

linuxµÄPCÉϹÒÔØjffs2¸ùÎļþϵͳӳÏñ

http://linux.ctocio.com.cn/437/8831437.shtml
ÎÒÃÇÔÚµ÷ÊÔÓ²¼þ°åʱ£¬¾­³£ÐèÒª×ö¶à¸öjffs2µÄ¸ùÎļþϵͳӳÏñ£¬ÓÐʱҲҪ¶Ô±ÈÆäËû;¾¶µÃµ½µÄ¿ÉÓõÄjffs2¸ùÎļþϵ
ͳӳÏñ¡£µ«jffs2µÄÎļþϵͳӳÏñ²»Ïó¹âÅ̵ÄÓ³ÏñÎļþÒ»Ñù¿ÉÒÔͨ¹ýloopÉ豸À´¹ÒÔØ……
ÎÒÃÇÔÚµ÷ÊÔÓ²¼þ°åʱ£¬¾­³£ÐèÒª×ö¶à¸öjffs2µÄ¸ùÎļþϵͳ
Ó³Ïñ£¬ ......

LinuxÏÂRamdisk¸ùÎļþϵͳÖÆ×÷¹ý³Ì½âÎö

http://www.soidc.net/articles/1215484977397/20080407/1215945405315_1.html
Ò»¡¢ÔÚÒ»¸öÒѽ¨ºÃµÄÎļþϵͳÉϽøÐÐÐÞ¸Ä
    ÉèÒѽ¨Á¢ºÃµÄÎļþϵͳѹËõÎļþΪramdisk.gz
    1¡¢½âѹ
    #cd ramdisk.gzËùÔÚĿ¼
    #gunzip ramdisk.gz
  &nb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ