Linux½ø³Ì¼äͨѶ֮ÏûÏ¢¶ÓÁÐ
1. »ù±¾¸ÅÄî
ÏûÏ¢¶ÓÁеÄ×î¼Ñ¶¨ÒåÊÇ£ºÄں˵ØÖ·¿Õ¼äÖеÄÄÚ²¿Á´±í¡£ÏûÏ¢¿ÉÒÔ˳ÐòµØ·¢Ë͵½¶ÓÁÐÖУ¬
²¢ÒÔ¼¸ÖÖ²»Í¬µÄ·½Ê½´Ó¶ÓÁÐÖлñÈ¡¡£µ±È»£¬Ã¿¸öÏûÏ¢¶ÓÁж¼ÊÇÓÉ IPC±êʶ·ûËùΨһ±êʶµÄ¡£
2. ÄÚ²¿ºÍÓû§Êý¾Ý½á¹¹
ÒªÍê³ÉÀí½âÏóϵͳ V IPCÕâÑù¸´ÔÓµÄÎÊÌ⣬¹Ø¼üÊÇÒª³¹µ×ÊìϤÄں˵ļ¸¸öÄÚ²¿Êý¾Ý½á¹¹¡£
ÉõÖÁ¶ÔÄÇЩ×î»ù±¾µÄ²Ù×÷À´Ëµ£¬Ö±½Ó·ÃÎÊÕâЩ½á¹¹ÖеÄij¼¸¸ö½á¹¹Ò²ÊDZØÒªµÄ£¬¶øÆäËûµÄ½á
¹¹ÔòÍ£ÁôÔÚÒ»¸ö¸üµÍµÄ¼¶±ðÉÏ¡£
3. ÏûÏ¢»º³åÇø
ÎÒÃÇÒª½éÉܵĵÚÒ»¸ö½á¹¹ÊÇ msgbuf½á¹¹¡£Õâ¸öÌØÊâµÄÊý¾Ý½á¹¹¿ÉÒÔÈÏΪÊÇÏûÏ¢Êý¾ÝµÄÄ£
°å¡£ËäÈ»¶¨ÒåÕâÖÖÀàÐ͵ÄÊý¾Ý½á¹¹ÊdzÌÐòÔ±µÄÖ°Ô𣬵«ÊǶÁÕß¾ø¶Ô±ØÐëÖªµÀʵ¼ÊÉÏ´æÔÚ
msgbufÀàÐ͵Ľṹ¡£ËüÊÇÔÚÔÚ linux/msg.hÖж¨ÒåµÄ£¬ÓÐ2¸ö³ÉÔ±£º
• mtype—ËüÊÇÏûÏ¢ÀàÐÍ£¬ÒÔÕýÊýÀ´±íʾ¡£Õâ¸öÊý±ØÐëΪһ¸öÕýÊý£¡
• mtext—Ëü¾ÍÊÇÏûÏ¢Êý¾Ý¡£
4. ÄÚºËmsg½á¹¹
Äں˰ÑÏûÏ¢¶ÓÁÐÖеÄÿ¸öÏûÏ¢¶¼´æ·ÅÔÚ msg½á¹¹µÄ¿ò¼ÜÖС£¸Ã½á¹¹ÊÇÔÚ linux/msg.hÖж¨Òå
µÄ£¬ÈçÏÂÊÇÆä³ÉÔ±µÄÃèÊö£º
• msg_next—ÕâÊÇÒ»¸öÖ¸Õ룬ָÏòÏûÏ¢¶ÓÁÐÖеÄÏÂÒ»¸öÏûÏ¢¡£ÔÚÄÚºËÑ°Ö·¿Õ¼äÖУ¬ËüÃÇ
Êǵ±×÷Ò»¸öÁ´±í´æ´¢µÄ¡£
• msg_type—ÕâÊÇÏûÏ¢ÀàÐÍ£¬ËüµÄÖµÊÇÔÚÓû§½á¹¹ msgbufÖи³ÓèµÄ¡£
• msg_spot—ÕâÊÇÒ»¸öÖ¸Õ룬ָÏòÏûÏ¢ÌåµÄ¿ªÊ¼´¦¡£
• msg_ts—ÕâÊÇÏûÏ¢Îı¾(ÏûÏ¢Ìå)µÄ³¤¶È¡£
• ÄÚºË msgid_ds½á¹¹—IPC¶ÔÏó·ÖΪÈýÀ࣬ÿһÀ඼ÓÐÒ»¸öÄÚ²¿Êý¾Ý½á¹¹£¬¸ÃÊý¾Ý½á¹¹
ÊÇÓÉÄÚºËά»¤µÄ¡£¶ÔÓÚÏûÏ¢¶ÓÁжøÑÔ£¬ËüµÄÄÚ²¿Êý¾Ý½á¹¹ÊÇ msqid_ds½á¹¹¡£¶ÔÓÚϵͳÉÏ
´´½¨µÄÿ¸öÏûÏ¢¶ÓÁУ¬Äں˾ùΪÆä´´½¨¡¢´æ´¢ºÍά»¤¸Ã½á¹¹µÄÒ»¸öʵÀý¡£¸Ã½á¹¹ÔÚ
linux/msg.hÖж¨Ò壬ÈçÏÂËùʾ£º
struct msqid_ds{
struct ipc_perm msg_perm;
msgqnum_t msg_qnum;
msglen_t msg_qbytes;
pid_t msg_lspid;
pid_t msg_lrpid;
&
Ïà¹ØÎĵµ£º
×ÜÀÀ
ÓÃiptables -ADC À´Ö¸¶¨Á´µÄ¹æ
Ôò
£¬-AÌí¼Ó -Dɾ³ý -C ÐÞ¸Ä
iptables - [RI] chain rule num rule-specification[option]
ÓÃiptables - RI ͨ¹ý¹æÔòµÄ˳ÐòÖ¸¶¨
iptables -D chain rule num[option]
ɾ³ýÖ¸¶¨¹æÔò
iptables -[LFZ] [chain][option]
ÓÃiptables -LFZ Á´Ãû [Ñ¡Ïî]
iptables -[NX] chain
ÓÃ -NX ......
1¡¢ÖжÏÊÇÒ»ÖÖµçÐźţ¬ÓÉÓ²¼þÉ豸Éú³É£¬²¢Ö±½ÓËÍÈëÖжϿØÖÆÆ÷µÄÊäÈëÒý½ÅÉÏ¡£È»ºóÔÙÓÉÖжϿØÖÆÆ÷Ïò´¦ÀíÆ÷·¢ËÍÏàÓ¦µÄÐźš£´¦ÀíÆ÷Ò»¾¼ì²âµ½´ËÐźţ¬±ãÖжÏ×Ô¼ºµÄµ±Ç°¹¤×÷ת¶ø´¦ÀíÖжϡ£´Ëºó£¬´¦ÀíÆ÷»á֪ͨ²Ù×÷ϵͳÒѾ²úÉúÖжϣ¬ÕâÑù£¬²Ù×÷ϵͳ¾Í¿ÉÒÔ¶ÔÕâ¸öÖжϽøÐÐÊʵ±µÄ´¦ÀíÁË¡£
2¡¢²»Í¬µÄÉ豸¶ÔÓ¦µÄÖжϲ»Í ......
²Ù×÷ϵͳÔÀí¼°Æ½Ì¨¿ª·¢£¨MS Win32 / BSD
Unix / GNU Linux£©
×÷Õß alvin_lee @ 2006-04-30 09:51:05
ÏàÐÅ´ó¼Ò¶ÔLinux°²×°Ó¦¸ÃÊǼҳ£±ã·¹ÁË,¶ø´ó¶àÊý·¢ÐаæµÄ°æ±¾¸üÐÂÒ²·Ç³£¿ì¡£Èç¹û
²»Ïëÿ´Î°²×°Ð°汾µÄʱºò¶¼Òª¿ÌÅÌ»òÕß°²×°µ½VMWareÉϵĻ°£¬ÄÇôÄã¿ÉÒÔ¿¼ÂÇʹÓÃU ......
ÔËÐл·¾³£ºfedora12 + jdk1.6
1£ºÆô¶¯myeclipseʱ JVM terminated. Exit code=127
½â¾ö·½·¨Ò»£º
java -jar startup.jar
instead of the eclipse executable
½â¾ö·½·¨¶þ£º
Ò²ÓпÉÄÜÊÇfedora×Ô´øµÄfirefoxÔËÐеÄjava»·¾³ÓëeclipseÔËÐеÄjava»·¾³ÓгåÍ»£¬½«fedora×Ô´øµÄfirefoxɾ³ý£¬ÔÙ´ÓÍøÉÏÏÂÔظöÓþͿÉÒÔÁË
×¢£ºÒÔ ......
1.BIOS×Ô¼ì
¼ÆËã»úÔÚ½ÓͨµçÔ´Ö®ºóÊ×ÏȽøÐÐBIOS×Լ죬¼´ÎÒÃÇËù˵µÄpost(power on self test).×Ô¼ìÍê³Éºó£¬È»ºó¸ù¾ÝBIOSÖеÄÉèÖõÄÒýµ¼Ë³Ðò£¬´ÓÓ²ÅÌ¡¢¹âÅÌÒýµ¼£¬Í¨³£ÎÒÃÇʹÓÃÓ²ÅÌÀ´Òýµ¼ÏµÍ³¡£ÔÚÓ²Å̵ĵÚÒ»¸öÉÈÇø£¨0´ÅµÀ0ÖùÃæ1ÉÈÇø£©ÓÐÒ»¶Î´úÂë½Ð×öMBR£¨Master Boot Record.Ö÷Òýµ¼¼Ç¼£©£©£ ......