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

LinuxÍøÂçÅäÖÃ

ÍøÂçÅäÖÃ:
¡¡¡¡VMware°²×°ºó»áÓм¸¸öĬÈÏÍø¿¨£¬·Ö±ðÊÇVmnet0£¬Vmnet1ºÍVmnet8£¬³£ÓÃHOST-ONLY£¬BridgeºÍNATÁªÍø·½Ê½¡£±¾ÎĽéÉÜNAT·½Ê½¡£
VmwareÉèÖ㺠 
ÔÚVmwareÉèÖúÃUbuntuµÄÍøÂçÁ¬½Ó·½Ê½£¬Ñ¡ÔñNAT
IPµØÖ·¿ÉÒÔͨ¹ývmware>edit>virtual networking settings ²é¿´£¬ÈçÏÂͼ£º
 
 
NATÉèÖãº
DHCPÉèÖãº
 
UbuntuÉèÖãº
¡¡¡¡ÐÞ¸ÄUbuntuµÄÍøÂçÅäÖãº
system>network>Ñ¡Ôñetho£¬Í¬Ê±ÉèÖÃIPΪ×Ô¶¯»ñÈ¡¡£Ôö¼ÓDNS£¬Ôö¼ÓvmwareÖÐnat»ñÈ¡µÄ¶¯Ì¬DNS
¡¡¡¡1) ÉèÖþ²Ì¬IP¡¢Íø¹Ø¡¢ÑÚÂëµÈ¡£vi /etc/network/interfaces£¬Ìí¼ÓÒÔÏÂÄÚÈÝ£º
¡¡¡¡iface eth0 inet static
¡¡¡¡address 192.168.0.149
¡¡¡¡netmask 255.255.255.0
¡¡¡¡gateway 192.168.0.2
¡¡¡¡auto eth0
µ±È»¿ÉÒÔʹÓö¯Ì¬IP£¬Ö»ÒªXPÖеÄVmware DHCPºÍVmware NAT·þÎñ³É¹¦Æô¶¯£º
È»ºóÅäÖÃÈçÏ£º
# The loopback network interface£¨ÅäÖû·»Ø¿Ú£©
¡¡¡¡auto lo                                       # ¿ª»ú×Ô¶¯¼¤lo½Ó¿Ú
¡¡¡¡iface lo inet loopback                        # ÅäÖÃlo½Ó¿ÚΪ»·»Ø¿Ú
¡¡¡¡# The primary network interface £¨ÅäÖÃÖ÷ÍøÂç½Ó¿Ú£©
¡¡¡¡auto eth0                                     #¿ª»ú×Ô¶¯¼¤»îeth0½Ó¿Ú
¡¡¡¡iface eth0 inet dhcp                          #ÅäÖÃeth0½Ó¿ÚΪDHCP×Ô¶¯»ñÈ¡
¡¡¡¡2) Ìí¼ÓDNS£¬vi /etc/resolv.conf£¬Ìí¼ÓÒÔÏÂÄÚÈÝ£º £¨×¢ÒâÕâÀïûÓÐresolv.conf¾Íн¨Ò»¸ö£©
¡¡¡¡nameserver 192.168.0.2
¡¡¡¡3) ÉúЧ£º /etc/init.d/networking restart
¡¡¡¡4) ÔÚXPµÄ¿í´øÁ´½ÓÊÇOKµÄÇé¿öÏ£¬²âÊÔUbuntuÊÇ·ñOK¡£±ÈÈç ping www.baidu.c


Ïà¹ØÎĵµ£º

spinlock ÓëlinuxÄں˵÷¶ÈµÄ¹Øϵ


¹ØÓÚ×ÔÐýËøÓ÷¨½éÉܵÄÎÄÕ£¬ÒѾ­Óкܶ࣬µ«ÓÐЩϸ½ÚµÄµØ·½µãµÄ»¹²»¹»Í¸¡£ÎÒÕâÀï¾Í°ÑÎÒ¸öÈËÈÏΪ´ó¼ÒÈÝÒ×ÓÐÒÉÎʵĵط½ÄóöÀ´ÌÖÂÛһϡ£

Ò»¡¢×ÔÐýËø£¨spinlock£©¼ò½é

×ÔÐýËøÔÚͬһʱ¿ÌÖ»Äܱ»×î¶àÒ»¸öÄÚºËÈÎÎñ³ÖÓУ¬ËùÒÔÒ»¸öʱ¿ÌÖ»ÓÐÒ»¸öÏß³ÌÔÊÐí´æÔÚÓÚÁÙ½çÇøÖС£Õâµã¿ÉÒÔÓ¦ÓÃÔڶദÀí»úÆ÷¡¢»òÔËÐÐÔÚµ¥´¦ÀíÆ÷ÉϵÄÇ ......

Linux iptables ¶Ë¿Ú Ó³Éä°¸Àý

iptablesÊÇÒ»¸ö
Linux
ÏÂÓÅÐãµÄnat+·À»ðǽ¹¤¾ß£¬ÎÒʹÓøù¤¾ßÒԽϵÍÅäÖõĴ«Í³pcÅäÖÃÁËÒ»¸ö
Áé»îÇ¿¾¢µÄ·À»ðǽ+natϵ
ͳ,СÓÐÐĵ㬿´
ÁËÍøÉÏÒ²ÓкܶàÕâ·½ÃæµÄÎÄÕ£¬µ«ÊÇËƺõҪô˵µÄ±È½ÏÉÙ£¬ÒªÃ´¾ÍÊDZȽÏÆ«£¬ÄÚÈݲ»È«£¬ÈÝÒ×Îóµ¼£¬ÎÒÑо¿ÁËÒ»¶Îʱ¼äµÄiptablesͬʱҲÓÃÁ˺ܾã¬ÓеãµÎ
¾­Ñ飬дÀ´¹©´ó¼Ò²Î¿¼£¬Í¬Ê±Ò²±¸ ......

³£ÓõÄLinuxÃüÁîÖ®Ò»

poweroff
shutdown -h Á¢¿Ì¹Ø»ú
shutdown -h 10 10·Öºó¹Ø»ú
shutdown -h 20:25 ʲôʱºò¶¨Ê±¹Ø»ú
shutdown -r now
reboot
pwd ÏÔʾµ±Ç°Â·¾¶
cd .. ·µ»ØÉÏÒ»¼¶
mkdir -p animal/dog Ç¿ÖÆ´´½¨animalĿ¼ÒÔ¼°×ÓĿ¼dog
rm * ɾ³ýÎļþ»òÕßĿ¼
rm -f * Ç¿ÖÆɾ³ý
cat a.txt>>b.ini ½«a.txtÏÔʾ²¢×·¼Óµ½b.iniµÄÄ ......

Linux NAND FLASHÇý¶¯´úÂë·ÖÎö

FLASHÇý¶¯ÔÚǶÈëʽϵͳÖÐÓÐמÙ×ãÇáÖصÄλÖ㬶øÄ¿Ç°Êг¡ÉÏNAND FLASHµÄ¼Û¸ñÓÖÒª±ãÒËÓëNOR
FLASH,Ëæ×ÅÔ½À´Ô½¶àµÄƽ̨֧³Ö´ÓNAND FLASHÖÐÆô¶¯£¬ÕÆÎÕNAND
flashµÄÇý¶¯±àдÓÐ×ÅÖØÒªµÄÏÖʵÒâÒ壬ÓÉÓÚÄÚºËÒѾ­Íê³ÉÁ˴󲿷ֵŤ×÷£¬Êµ¼Ê¹¤×÷Öд󲿷ֹ¤³Ìʦ¶ÔNAND
FLASHÇý¶¯Ö»ÊǼòµ¥µÄÐ޸ģ¬¶ÔÆ乤×÷Ô­Àí²¢²»Ì«Çå³þ£¬ÏÂÃæÎÒà ......

perlÔÚlinuxÖÐÕÒ²»µ½½âÊÍÆ÷µÄÎÊÌâ

×î½ü¸Ð½Ó´¥perl£¬¸Ð¾õºÜ²»´í£¬´¦ÀíÎı¾·Ç³£·½±ã¡£Ç°½×¶ÎÓÃcȥͳ¼ÆһЩÎı¾£¬ÀÛµÄÒªËÀ£¬¶øÇÒ³ÌÐòÖл¹¾­³£³öbug£»¶øÓÃperlÔò²»Í¬£¬Ëü±ÜÃâµÄ¸´ÔÓµÄÊý¾Ý½á¹¹£¬ÕâÑù³ö´íµÄ¸ÅÂʾͺÜСÁË£¬¶øÇÒ±àд´úÂë¶ÌС¾«º·¡£Ç°Á½Ì콫perlÄõ½linuxÉÏÔËÐУ¬ËäÈ»Ìí¼ÓÁË#!/usr/local/bin/perl£¬µ«»¹ÊÇÌáʾÕÒ²»µ½½âÊÍÆ÷£ºbad interpreter¡£ÓôÃÆѽ¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ