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

Linux ÍøÂç½Ó¿ÚÅäÖÃÎļþ¼°Ïà¹Ø¹¤¾ß——ת

 1¡¢ ¹ØÓÚÍøÂç½Ó¿Ú¼°ÅäÖù¤¾ß˵Ã÷£»
ÍøÂç½Ó¿Ú(interface)ÊÇÍøÂçÓ²¼þÉ豸ÔÚ²Ù×÷ϵͳÖеıíʾ·½·¨£¬±ÈÈçÍø¿¨ÔÚLinux²Ù×÷ϵͳÖÐÓà ethX,ÊÇÓÉ0¿ªÊ¼µÄÕýÕûÊý£¬±ÈÈçeth0¡¢eth1...... ethX¡£¶øÆÕͨèºÍADSLµÄ½Ó¿ÚÊÇ pppX£¬±ÈÈçppp0µÈ£»
ÔÚLinux²Ù×÷ϵͳÖÐÅäÖÃÍøÂç½Ó¿Ú£¬Ò»°ãÊÇͨ¹ýÍøÂçÅäÖù¤¾ßʵÏֵģ¬µ«×îÖÕÄ¿µÄ»¹ÊÇͨ¹ýÍøÂçÅäÖù¤¾ßÀ´´ïµ½ÐÞ¸ÄÓëÍøÂçÏà¹ØµÄÅäÖÃÎļþ¶øÆð×÷Óõġ£ÓÉ´Ë˵À´£¬ÎÒÃÇÅäÖÃÍøÂç¿ÉÒÔÖ±½ÓÐÞ¸ÄÅäÖÃÎļþ¡£±ÈÈçÍøÂçÍøÂç½Ó¿Ú£¨Íø¿¨£©µÄIPµØÖ·¡¢×ÓÑÚÂë¡¢Íø¹Ø£¬ÔÚSlackware ÖÐÖ»ÐèÐÞ¸ÄÒ»¸öÅäÖÃÎļþ¾ÍÐÐÁË /etc/rc.d/rc.inet1 £¬¶øÔÚ Redhat/Fedora µÈ»òÒÔRedhat/Fedora Ϊ»ù´¡µÄ·¢ÐаæÖУ¬Ò»°ãÒªÉæ¼°µ½ºÃ¼¸¸öÎļþ£¬±ÈÈç°üÀ¨ /etc/sysconfig/network-scripts/ifcfg-eth0ÔÚÄڵȡ£
Á˽âLinuxÍøÂçÅäÖÃÎļþÊǼ«ÎªÖØÒªµÄ£¬ÎÒÃÇͨ¹ý¹¤¾ßÐÞ¸ÄÁËʲô£¬ÊÇÔõôÉúЧµÄ£¬Ö»ÓÐÁ˽âÍøÂçÅäÖÃÎļþ²ÅÄܸãÇå³þ¡£×ö¸ö²»Ç¡µ±µÄ±ÈÓ÷£ºLinux ϵͳÊÇÒ»¸ö͸Ã÷µÄºÐ×Ó£¬ÖÁÓÚºÐ×ÓÀï×°µÄÊÇʲô¶¼ÊÇһĿÁËÈ»µÄ¡£¶ø±ÕÔ´²Ù×÷ϵͳ£¬ÎÒÃÇûÓлú»áÖªµÀÕâЩ£¬¸ü²»ÖªµÀËûÊÇÔõôʵÏֵġ£
¶ÔÓÚ¸´ÔÓµÄÍøÂçÄ£ÐÍ£¬Linux ÊÇÓм«´óµÄÓÅÊÆ£¬¿ÉÄÜÔÚÎÒÃÇ¿´¿´man ºÍhelp£¬ÐÞ¸ÄÐÞ¸ÄÅäÖÃÎļþ£¬ÔÚ¼¸·ÖÖӾͿÉÒԸ㶨¡£µ«±ÕԴͼÐνçÃæµÄ²Ù×÷ϵͳ¾ÍûÓÐÕâôÐÒÔËÁË£¬·´¸´µÄµãÊó±ê£¬µãÁ˼¸Ê®´ÎÉÏ°Ù´ÎÒ²½â¾ö²»ÁËÒ»¸öÎÊÌ⣬ÕâÊǼ«Îª³£¼ûµÄ¡£
ÓÉÓÚLinux´æÔںܶàµÄ·¢ÐкͰ汾£¬´ó¶à·¢Ðа汾¶¼ÓÐ×Ô¼ºµÄרÓÃÅäÖù¤¾ß¡£Ö÷ÒªÊÇΪÁË·½±ãÓû§ÅäÖÃÍøÂ磻µ«Ò²ÓÐͨÓõÄÅäÖù¤¾ß£¬±ÈÈç ifconfig ¡¢ifup¡¢ifdown£»
2 ¹ØÓÚÍøÂçÓ²¼þÉ豸µÄÇý¶¯£»
ÎÒÔÚÒÔÇ°µÄÎĵµÖÐÓÐд¹ý£¬ÍøÂçÓ²¼þ£¬±ÈÈçÍø¿¨£¨°üÀ¨ÓÐÏß¡¢ÎÞÏߣ©£¬Ã¨°üÀ¨ÆÕͨèºÍADSLèµÈ£¬¶¼ÊÇÐèÒªÄÚºËÖ§³ÖµÄ£¬ËùÒÔÎÒÃÇÊ×ÏȵÃÖªµÀ×Ô¼ºµÄÍøÂçÉ豸ÊDz»ÊÇÒѾ­±»Ó²ÄÚºËÖ§³ÖÁË¡£Èç¹û²»Ö§³Ö£¬ÎÒÃǵÃÕÒÇý¶¯£¨»òͨ¹ýÄں˱àÒ룩À´Ö§³ÖËü£»
Çë²Î¿¼£º
3¡¢ifconfig ÅäÖÃÍøÂç½Ó¿ÚµÄ¹¤¾ß½éÉÜ£»
ifconfig ÊÇÒ»¸öÓÃÀ´²é¿´¡¢ÅäÖá¢ÆôÓûò½ûÓÃÍøÂç½Ó¿ÚµÄ¹¤¾ß£¬Õâ¸ö¹¤¾ß¼«Îª³£Óõġ£±ÈÈçÎÒÃÇ¿ÉÒÔÓÃÕâ¸ö¹¤¾ßÀ´ÁÙʱÐÔµÄÅäÖÃÍø¿¨µÄIPµØÖ·¡¢ÑÚÂë¡¢¹ã²¥µØÖ·¡¢Íø¹ØµÈ¡£Ò²¿ÉÒÔ°ÑËüдÈëÒ»¸öÎļþÖУ¨±ÈÈç/etc/rc.d/rc.local)£¬ÕâÑùϵͳÒýµ¼ºó£¬»á¶ÁÈ¡Õâ¸öÎļþ£¬ÎªÍø¿¨ÉèÖÃIPµØÖ·£»²»¹ýÕâÑù×öÄ¿Ç°¿´À´Ã»ÓÐÌ«´óµÄ±ØÒª¡£Ö÷ÒªÊǸ÷¸ö·¢Ðа汾¶¼ÓÐ×Ô¼ºµÄÅäÖù¤¾ß£¬ÎÞÂÛÈçºÎÒ²ÄÜ°ÑÖ÷»ú¼ÓÈëµ½ÍøÂçÖУ»
ÏÂÃæÎÒÃÇ¿´¿´ifconfig Ó÷¨£»
3.1 ifconfig ²é¿´ÍøÂç½Ó¿Ú״̬£»
ifconfig Èç¹û²


Ïà¹ØÎĵµ£º

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

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

ʵսLinux Bluetooth±à³Ì (Æß) SDPЭÒé

Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖЭÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀЭÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......

¹ØÓÚLinux³£ÓõĶþ½øÖÆÎļþ·ÖÎö·½·¨

 
¡¡¡¡1¡¢ ×îÊ×ÏÈÓ¦¸Ã³¢ÊÔstringsÃüÁî,±ÈÈçÄõ½Ò»¸ö½Ðcr1µÄ¶þ½øÖÆÎļþ,¿ÉÒÔ:
¡¡¡¡$ strings cr1 | more
¡¡¡¡ÀïÃæ¿ÉÄÜ»áÓÐһЩ¶ÔÓÚÕâ¸öcr1µÄÃèÊö,ÕâЩÐÅÏ¢
¶¼ÊDZàÒëÖ®ºóÔÚ³ÌÐòÖÐÁôϵÄһЩÎı¾ÐÔµÄ˵Ã÷,ËùÒÔ¿ÉÄÜ»á¸æËßÄãÕâ¸öÎļþÊÇʲô.
¡¡¡¡±ÈÈçÓÐÊä³ö:
¡¡¡¡$ strings cr1 | more
¡¡¡¡%s %s %s%s%s -> %s%s% ......

Linux µÄÎļþϵͳ

Linux Ê×ÏÈ´´½¨ramfsÎļþϵͳ(/)
È»ºó°Ñinitrd.imgÎļþ¼ÓÔص½ / Ŀ¼Ï¡£
ÆäËüÎļþϵͳÊÇ×öΪramfsµÄÒ»¸öĿ¼½áµã¹ÒÔØÉÏÈ¥µÄ¡£
initrd.imgÊÇÒ»¸öÓÃzipѹËõµÄcpio¸ñʽµÄѹËõÎļþ¡£°´ÏÂÃæ²½ÖèʵÏÖ½âѹ
µÚÒ»²½£º½«initrd.img¸ÄÃûΪinitrd.img.gz
mv initrd.img initrd.img.gz
µÚ¶þ²½£ºÓÃgunzip½âѹÉú³Éinitrd.img
gunzi ......

ǶÈëʽ linux Ï ͨÓà console£¨¿ØÖÆ̨£© µÄʵÏÖ

Ç°ÑÔ£º
        µ±ÎÒÃÇʹÓÃǶÈëʽlinux ½øÐпª·¢Ê±£¬kernel ÅÜÆðÀ´Ö®ºó£¬ÎÒÃÇÏ£ÍûÄÜͨ¹ý´®¿Ú£¨±ê×¼ÊäÈë¡¢Êä³ö£©£¬ÔÚÓ¦ÓóÌÐòÕýÔÚÔËÐеĹý³ÌÖУ¬½øÐÐһЩµ÷ÊÔ¹¤×÷£¬ÀýÈ磬¶ÔCPUһЩ¼Ä´æ½øÐе÷Õû£¬ÒÔ¹Û²âµ÷ÕûÒÔºóµÄ½á¹û£¬²¢ÇÒ£¬µ±ÎÒÃÇÎÞ·¨°ÑÎÒÃǵÄÓ¦ÓóÌÐò·ÅÔÚºǫ́ÔËÐУ¬ÄÇôÎÒÃǾÍÐèÒªÊ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ