¼òµ¥linuxÍøÂç±à³Ì
linuxÍøÂç±à³Ì
1. »ù±¾¸ÅÄî
˵µ½ÍøÂç±à³Ì,²»µÃ²»ÏÈÌáµ½OSI²Î¿¼Ä£ÐÍ,ÆäÆß²ãÄ£ÐÍ´Óϵ½ÉÏ·Ö±ðΪ
1.ÎïÀí²ã(Physical Layer,PH)
2.Êý¾ÝÁ´Â·²ã(Data Link Layer,DL)
3.ÍøÂç²ã(Network Layer,N)
4.ÔËÊä²ã(Transport Layer,T)
5.»á»°²ã(Session Layer,S)
6.±íʾ²ã(Presentation Layer,P)
7.Ó¦Óòã(Application Layer,A)
ÏÖÔÚ×îÁ÷ÐеÄÍøÂçÐÒéÎÞÒɾÍÊÇTCP/IP(Transmission Control Protocol/Internet Protocol)ÐÒé.
×¢:
l IP £¨Internet Protocol£©£¬Íø¼ÊÐÒ飻IPÊÇTCP/IPµÄ×îµ×²ã£¬¸ß²ãÐÒ鶼Ҫת»¯ÎªIP°ü£¬IP°üº¬ÁËÔ´µØÖ·ºÍÄ¿µÄµØÖ·£¬Â·Óɾö²ßÒ²·¢ÉúÔÚIP²ã£»
l ICMP £¨Internet Control Message Protocol£©£¬Íø¼Ê±¨ÎÄÐÒ飻Ëü°üÀ¨ÁËÊý¾Ý°üµÄ´íÎ󡢿ØÖƵÈÏà¹ØÐÅÏ¢¡£±ÈÈçpingÃüÁî¾ÍÊÇÀûÓÃICMPÀ´²âÊÔÒ»¸öÍøÂçµÄÁ¬½ÓÇé¿öµÄ¹¤¾ß£»
l TCP £¨Transmission Control Protocol£©£¬´«Êä¿ØÖÆÐÒé¡£TCPÔËÐÐÔÚIPÖ®ÉÏ£¬ÊÇ»ùÓÚÊý¾ÝÁ÷Á¬½ÓºÍÃæÏòµÄÐÒ飬ӦÓóÌÐò°ÑÊý¾ÝÒª¾¹ýTCP/IPµÄ·Ö¸î³ÉÈô¸É°ü£¬ÕâÑùÊý¾Ý¾ÍÒÔ×Ö½ÚÁ÷·¢ËͺͽÓÊÕ£¬µ½´ïÄ¿µÄµØºó£¬TCP/IPÔÙ°´Ë³Ðò½øÐÐ×é×°¡£TCP/IPÒª±£Ö¤»úÆ÷Óë»úÆ÷Ö®¼äµÄÁ¬½ÓµÄ¿É¿¿ÐÔ£¬»¹ÒªÓоÀ´í¡£TCPÊÇ·ñ±»Ñ¡Ôñ£¬È¡¾öÓÚÓ¦ÓóÌÐò»ò·þÎñ£»
l UDP £¨User Datagram Protocol£© £¬Óû§Êý¾Ý±¨ÐÒé £¬ÏóTCPÒ»ÑùÔËÐÐÔÚIPÖ®ÉÏ£¬ÊÇ»ùÓÚÊý¾Ý±¨»ò·Ö×éµÄÐÒ飬UDP/IP¿ÉÒÔÖ±½Ó·¢ËͺͽÓÊÕÊý¾Ý±¨ÎÄ£¬¶ø²»±Ø×öÑéÖ¤£¬ÕâÒ»µãÓëTCP/IP²»Í¬¡£TCPÊÇ·ñ±»Ñ¡Ôñ£¬È¡¾öÓÚÓ¦ÓóÌÐò»ò·þÎñ£»
2. »ù±¾½Ó¿Ú
ÒÔUnix/Linuxƽ̨ΪÀý,ϵͳ»á½¨Á¢Ðí¶àÍøÂç·þÎñ³ÌÐò
$netstat -a
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:1975 &n
Ïà¹ØÎĵµ£º
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
1.µãºÅ½ø¶ÈÏÔʾcode 1
#!/bin/sh
#Êä³ö"."½ø¶ÈÌõº¯Êý£¬¼æÈÝbsh¡¢ksh¡¢bash
#Ê×ÏÈtrap 1 2 3 15Ðźţ¬ÖØÒª
trap 'kill $BG_PID;echo;exit' 1 2 3 15
function dots
{
stty -echo >/dev/null 2>&1
  ......
1. »ù±¾¸ÅÄî
˵µ½ÍøÂç±à³Ì,²»µÃ²»ÏÈÌáµ½OSI²Î¿¼Ä£ÐÍ,ÆäÆß²ãÄ£ÐÍ´Óϵ½ÉÏ·Ö±ðΪ
1.ÎïÀí²ã(Physical Layer,PH)
2.Êý¾ÝÁ´Â·²ã(Data Link Layer,DL)
3.ÍøÂç²ã(Network Layer,N)
4.ÔËÊä²ã(Transport Layer,T)
5.»á»°²ã(Session Layer,S)
6.±íʾ²ã(Presentation Layer, ......
http://www.chineselinuxuniversity.net/articles/30602.shtml
Linux½ø³Ìµ÷¶È³ÌÐòËäÈ»
Ìرð
ÖØÒª
£¬µ«Ëü²»¹ýÊÇÒ»¸ö´æÔÚÓÚÄں˿ռäÖеĺ¯Êý¶øÒÑ£¬²¢²»ÉñÃØ¡£LinuxµÄµ÷¶È³ÌÐòÊÇÒ»¸ö½ÐSchedule£¨£©µÄº¯Êý£¬Õâ¸öº¯Êý±»µ÷ÓõÄƵÂʺܸߣ¬ÓÉËüÀ´¾ö¶¨ÊÇ·ñ
Òª½øÐнø³ÌµÄÇл»£¬Èç¹ûÒªÇл»µÄ»°£¬Çл»µ½Äĸö½ø³ÌµÈµÈ¡£ÎÒÃÇ
ÏÈÀ´ ......
LinuxÖУ¬cron±»ÓÃÀ´µ÷¶ÈÖظ´µÄÈÎÎñ£¬linux atÃüÁî±»ÓÃÀ´ÔÚÖ¸¶¨Ê±¼äÄÚµ÷¶ÈÒ»´ÎÐÔµÄÈÎÎñ¡£
ҪʹÓÃlinux atÃüÁÄã±ØÐë°²×°ÁËat RPMÈí¼þ°ü£¬²¢ÇÒ atd·þÎñ±ØÐëÔÚÔËÐС£
¿ÉÒÔʹÓÃÒ»ÏÂÃüÁîÆô¶¯atd·þÎñ£º
[root@sso_4 sbin]# /sbin/service atd start
ÒªÅж¨¸ÃÈí¼þ°üÊÇ·ñ±»°²×° ......