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

linuxÍøÂçÅäÖ㦹ÜÀí»ù´¡ [תÔØ]

 
ÍøÂçÅäÖÃÎļþ    LINUX ÔÚ °²×°ÖÐ »ù±¾µÄÅäÖà ¶¼ÒѾ­Íê³ÉÁË    ¶¼ÒÔÎı¾·½Ê½ ±£´æÔÚ/etcĿ¼ÏÂ
.
ÍøÂçÅäÖÃÎļþ£º/etc/sysconfig/network
²é¿´ÃüÁ

[root@localhost ~]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=localhost.localdomain
[root@localhost ~]#
¿ÉÄÜÒòΪһЩLINUX °æ±¾ ²»Í¬ÉÏÃæÏÔʾµÄÐÅÏ¢Ò²²»Í¬     Õâ¸öÎļþ ¿ÉÒÔÓà /netcfg À´Î¬»¤ ²»¹ýÐèÒª X·þÎñÆ÷Ö§³Ö
Ö÷»úÃûºÍIP µØÖ·Ó³Éä £º /etc/hosts
IPµØÖ· µÄÉè¼Æ·½±ã¼ÆËã»úµÄ´¦Àí    µ«ÊǼÇÒäÕâЩ¾Í±È½Ï¿ÝÔïÁË ÎªÁË Ö±½ÓÄÜ·ÃÎÊÖ÷»ú ÏÖÔÚ¶¼²ÉÓÃÓòÃû·½Ê½ ÔçÆÚµÄÓòÃû¾Í±»±£´æÔÚÕâ¸öÎļþÀï
²é¿´ÃüÁ
[root@localhost ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
::1       localhost.localdomain     localhost
[root@localhost ~]#
Õâ¸öÎļþºÍWINDOWS ϵͳÖÐµÄ WINDOWS\system32\etc Ï嵀 HOSTS ²ÉÓÃÏàͬµÄ¸ñʽºÍ¹¦ÄÜ
DNS ¿Í»§ÅäÖãº/etc/resolv.conf
Õâ¸öÎļþ°üº¬ÁËÓòÃû˳ÐòºÍDNS ·þÎñÆ÷µÄÖ÷»úµØÖ·
²é¿´ÃüÁ

[root@localhost ~]# cat /etc/resolv.conf
nameserver 61.128.128.68          £»¿ÉʹÓöà¸öDNS ·þÎñÆ÷µÄµØÖ·
nameserver 61.128.192.68
[root@localhost ~]#
Ö÷»úÃû£º/etc/hostname        £»ÓÐЩ°æ±¾µÄLINUX Ö÷»úÃûÊÇÔÚ/etc/sysconfig/network ÎļþÀï    ÓÐЩ³ýÍâ
²é¿´Ö÷»úÃû£º
[root@localhost ~]# hostname
localhost.localdomain
[root@localhost ~]#
ÍøÂç·þÎñ£º/etc/services
Õâ¸öÎļþ¸ú WINDOWS Ï嵀 WINDOWS\system32\drivers\etc\services ÎļþÒ»Ñù ¸ø³öÁË¶Ë¿Ú ºÍ ·þÎñÃû¶ÔÕÕ    ºÜ¶àϵͳ¶¼»á¶ÁÈ¡Õâ¸öÎļþ
²é¿´ÃüÁ

[root@localhost ~]# tail /etc/services         £»ÕâÀïÈç¹ûʹÓà cat ÃüÁî²é¿´    »áÓкܶࠠ
nimspooler        48001/udp             


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

£¨L2CAPЭÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPЭÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼­Á¬½Ó¿ØÖƺÍÊÊÅäЭÒé (L2CAP) ΪÉϲãЭÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àЭÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãЭÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......

linux sock_rawԭʼÌ×½Ó×Ö±à³Ì (ת£©


sock_rawԭʼÌ×½Ó×Ö±à³Ì¿ÉÒÔ½ÓÊÕµ½±¾»úÍø¿¨ÉϵÄÊý¾ÝÖ¡»òÕßÊý¾Ý°ü,¶ÔÓë¼àÌýÍøÂçµÄÁ÷Á¿ºÍ·ÖÎöÊǺÜÓÐ×÷ÓõÄ.Ò»¹²¿ÉÒÔÓÐ3ÖÖ·½Ê½´´½¨ÕâÖÖsocket
 
1.socket(AF_INET, SOCK_RAW, IPPROTO_TCP|IPPROTO_UDP|IPPROTO_ICMP)·¢ËͽÓÊÕipÊý¾Ý°ü
2.socket(PF_PACKET, SOCK_RAW, htons(ETH_P_IP|ETH_P_ARP|ETH_P_ALL))·¢ËͽÓÊÕÒÔ ......

½â¾ölinuxϲ»ÄÜɾ³ýÂÒÂëÎļþµÄ±¿·½·¨

 1.Ò»´Î¿ª»ú£¬ÓôÃÆ£¬·¢ÏÖ~Ŀ¼ÏÂÓÐÒ»¸ö³¤ÎļþÃûµÄÂÒÂëÎļþ£¬Ôõôɾ¶¼É¾²»µô£¬Ä¿Â¼Ò²²»ÄÜɾ¡£×îºóÏëÁËÒ»¸ö±¿·½·¨É¾µôÁË
ÏÈÔÚ¸ÃĿ¼ÏÂmkdir zz  È»ºó mv *.* zz    OK£¬È»ºórm -rf zzÎļþ¼Ð¾ÍÐÐÁË¡£ºÇºÇ ......

Linux Ïß³ÌÄ£Ð͵ıȽϣºLinuxThreads ºÍ NPTL

 Õª×Ô£ºhttp://www.ibm.com/developerworks/cn/linux/l-threading.html
LinuxThreads ÏîÄ¿×î³õ½«¶àÏ̵߳ĸÅÄîÒýÈëÁË Linux®£¬µ«ÊÇ LinuxThreads ²¢²»×ñÊØ
POSIX Ï̱߳ê×¼¡£¾¡¹Ü¸üÐ嵀 Native POSIX Thread
Library£¨NPTL£©¿âÌî²¹ÁËһЩ¿Õ°×£¬µ«ÊÇÕâÈÔÈ»´æÔÚһЩÎÊÌâ¡£±¾ÎÄΪÄÇЩÐèÒª½«×Ô¼ºµÄÓ¦ÓóÌÐò´Ó LinuxTh ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ