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

linuxÏÂÌí¼Ó·Óɱí

 # redhat-config-network
/* ʹÓÃifconfigÃüÁîÅäÖò¢²é¿´ÍøÂç½Ó¿ÚÇé¿ö */
//ÅäÖÃeth0µÄIP£¬Í¬Ê±¼¤»îÉ豸
# ifconfig eth0 192.168.168.119 netmask 255.255.255.0 up
//ÅäÖÃeth0±ðÃûÉ豸 eth0:1 µÄIP£¬²¢Ìí¼Ó·ÓÉ
# ifconfig eth0:1 192.168.168.110
# route add –host 192.168.168.110 dev eth0:1
//¼¤»î£¨½ûÓã©É豸
# ifconfig eth0:1 up(down)
//²é¿´ËùÓУ¨Ö¸¶¨£©ÍøÂç½Ó¿ÚÅäÖÃ
# ifconfig (eth0)
/* ʹÓÃroute ÃüÁîÅäÖ÷Óɱí */
//Ìí¼Óµ½Ö÷»ú·ÓÉ
# route add –host 192.168.168.110 dev eth0:1
# route add –host 192.168.168.119 gw 192.168.168.1
//Ìí¼Óµ½ÍøÂçµÄ·ÓÉ
# route add –net IP netmask MASK eth0
# route add –net IP netmask MASK gw IP
# route add –net IP/24 eth1
//Ìí¼ÓĬÈÏÍø¹Ø
# route add default gw IP
//ɾ³ý·ÓÉ
# route del –host 192.168.168.110 dev eth0:1
/* ³£ÓÃÃüÁî */
# traceroute www.pconline.com.cn
# ping www.pconline.com.cn
//ÏÔʾÍøÂç½Ó¿Ú״̬ÐÅÏ¢
# netstat –I
//ÏÔʾËùÓмà¿ØµÄ·þÎñÆ÷µÄSocketºÍÕýÔÚʹÓÃSocketµÄ³ÌÐòÐÅÏ¢
# netstat –lpe
//ÏÔʾÄں˷ÓɱíÐÅÏ¢
# netstat –r
# netstat –nr
//ÏÔʾTCP/UDP´«ÊäЭÒéµÄÁ¬½Ó״̬
# netstat –t
# netstat –u
//¸ü¸ÄÖ÷»úÃû
# hostname myhost
//²é¿´ARP»º´æ
# arp
//Ìí¼Ó
# arp –s IP MAC
//ɾ³ý
# arp –d IP
/* ÔËÐ춱ðÓëÍøÂç·þÎñ */
//²é¿´µ±Ç°ÔËÐ춱ð
# runlevel
//ÔËÐ춱ðµÄÇл»
# init
# telinit
UNIXϵͳÉÏÉèÖ÷ÓÉ
ÓÉÓÚAIXÔÚÒµ½çµÄ¹ã·ºÊ¹Ó㬱¾ÎÄÒÔAIX²Ù×÷ϵͳΪÀý¶ÔÈçºÎÔÚUNIXÉÏÉèÖ÷ÓɽøÐнéÉÜ¡£
¶ÔÓÚ¾²Ì¬Â·ÓɶøÑÔ£¬Â·Óɱí¿ÉÓÃSMITÃüÁî»òROUTEÃüÁî½øÐÐÊÖ¹¤Î¬»¤¡£ÐèÒªÖ¸³öµÄÊÇSMITÃüÁî¿É¸üÐÂODMÊý¾Ý¿âÏàÓ¦µÄ·ÓÉÐÅÏ¢£¬Òò´Ë¿ÉÓÀ¾ÃÉúЧ£¬¶øROUTEÃüÁî²¢²»ÐÞ¸ÄODMÊý¾Ý¿â£¬Òò´ËÔÚ»úÆ÷ÖØÐÂÆô¶¯Ê±½«¶ªÊ§Â·ÓÉ¡£ÏÂÃæÊ×ÏȽéÉÜROUTEÃüÁîµÄʹÓ÷½·¨¡£
route add -inet -net 192.168.0.1 192.168.0.1
A    B    C    D        E
A£ºÃüÁÓÐadd,flush,delete,change,monitor£¬
B£ºÍøÂç×åϵ£¬-inet(ĬÈÏ),xns£¨´ú±íXERORÍøÂçϵͳ£¬ÏÖÒѺÜÉÙʹÓã©£¬
C£ºÍøÂç±êÖ¾£º-net(ÍøÂç),-host(Ö÷»ú£¬Ä¬ÈÏ)£¬
D£ºÄ¿µÄIPµ


Ïà¹ØÎĵµ£º

ÐÞ¸ÄLinux¿ÉÖ§³ÖµÄsocket×î´óÁ¬½ÓÊý

 ÒýÓÃhttp://hi.baidu.com/fishzy0819/blog/item/76bc82347b94f681a61e1298.html
2009-10-25 15:43
×î½ü×ö¹«Ë¾·þÎñÆ÷³ÌÐò´Ówindowsµ½LinuxµÄÒÆÖ²¹¤×÷£¬ÎҵķþÎñÆ÷ʹÓõÄACEµÄEpollģʽ£¬Ö§³Ö2000¸öÁ¬½Ó¡£ÔÚLinuxϱàÒë·þÎñÆ÷³ÌÐòºó£¬ÔËÐУ¬±¨´íÁË¡£
²é
ÁË×ÊÁϺó·¢ÏÖÊÇ£¬ÔÚLinuxÏÂEpollģʽĬÈÏÖ»Ö§³Ö1024¸öÁ¬½Ó£ ......

½â¾öLinuxÉϲ»ÁËÍøµÄÎÊÌâ

Ìø³ö¹ßÐÔ˼ά½â¾öLinuxÉϲ»ÁËÍøµÄÎÊÌâ
(À´×Ôhttp://hi.baidu.com/zfxwyh1985/blog/item/b3882a1285fa3cc8c3fd78c2.html)
2008-10-29 09:54
    һ̨½»»»»ú£¬ һ̨Win2003µÄ»úÆ÷×öΪ¾ÖÓòÍøµÄÍø¹Ø£¨ÆäIPµØÖ·ÉèΪ192.168.0.1£©£¬µçÐŹ«Ë¾¸øÎÒÃÇÒ»¸öÉÏÍøÕʺſÉÒÔ¼¸Ì¨»úÆ÷ͬʱ²¦ºÅ¡£ÆäËü»úÆ÷µÄIP µØÖ·Éè³É192. ......

Linux Shell ¡¶abs_guide¡· ѧϰ±Ê¼Ç(1)

µÚÒ»²¿·Ö
 
1.ΪʲôʹÓÃshell
Ä¿Ç°Á÷ÐеÄLinux shell ±»³Æ֮ΪBASH¡£¶ÔÓÚÈκÎÏëÊʵ±¾«Í¨Ò»Ð©¹ÜÀí֪ʶµÄÈËÀ´Ëµ£¬ÕÆÎÕshell½Å±¾¶¼ÊÇ×î»ù±¾µÄ£»shell½Å±¾×ñÑ­µäÐ͵ÄUNIXÕÜѧ£¬¼È°Ñ´óµÄ¸´ÔӵŤ³Ì·Ö³ÉС¹æÄ£µÄ×ÓÈÎÎñ£¬²¢ÇÒ°ÑÕâЩ²¿¼þºÍ¹¤¾ß×éºÏÆðÀ´¡£
ʲôʱºò²»Ê¹ÓÃshell£º
×ÊÔ´Ãܼ¯ÐÍÈÎÎñ£¬ÓÈÆäÊÇÐèÒª¿¼ÂÇЧ ......

LinuxÏÂscpµÄÓ÷¨

 LinuxÏÂscpµÄÓ÷¨
scp¾ÍÊÇsecure copy£¬Ò»¸öÔÚlinuxÏÂÓÃÀ´½øÐÐÔ¶³Ì¿½±´ÎļþµÄÃüÁî¡£
ÓÐʱÎÒÃÇÐèÒª»ñµÃÔ¶³Ì·þÎñÆ÷ÉϵÄij¸öÎļþ£¬¸Ã·þÎñÆ÷¼ÈûÓÐÅäÖÃftp·þÎñÆ÷£¬Ò²Ã»ÓÐ×ö¹²Ïí£¬ÎÞ·¨Í¨¹ý³£¹æ;¾¶»ñµÃÎļþʱ£¬Ö»ÐèҪͨ¹ý¼òµ¥µÄscpÃüÁî±ã¿É´ïµ½Ä¿µÄ¡£
Ò»¡¢½«±¾»úÎļþ¸´ÖƵ½Ô¶³Ì·þÎñÆ÷ÉÏ
#scp /home/administrator/news ......

Linux kernel development Chapter1

 1 linuxÄÚºË
²¢²»Çø·ÖÏ̺߳ͽø³Ì¡£¶ÔÓÚÄÚºËÀ´Ëµ£¬ËùÓеÄÏ̺߳ͽø³Ì¶¼Ò»Ñù£¬Ö»ÊÇÆäÖеÄһЩ¹²Ïí×ÊÔ´¶øÒÑ¡£
 2 Äں˿ª·¢Ìص㣺
    2.1 linuxÄں˿ª·¢²»ÄÜʹÓÃcº¯Êý¿â£¬ÒòΪc¿âÐèÒª²Ù×÷ϵͳµÄÖ§³Ö£¬¶øÇÒc¿âµÄ´óСºÍЧÂÊÒ²ÊÇÄں˿ª·¢Ëù²»ÄÜÈÝÈ̵ģ»
        ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ