±¾ÎĽ²ÊöÁËLinuxÃüÁîÐÐÐÞ¸ÄIP¡¢Íø¹Ø¡¢DNSµÄ·½·¨
·½Ê½Ò»£º
ifconfig eth0 192.168.1.18 netmask 255.255.255.0
˵Ã÷£º¸ÃÖÖ·½Ê½¿ÉÒÔʹ¸Ä±ä¼´Ê±ÉúЧ£¬ÖØÆôºó»á»Ö¸´ÎªÔÀ´µÄIP
·½Ê½¶þ£º
vi /etc/sysconfig/network-scripts/ifcfg-eth0
˵Ã÷£º¸Ã·½Ê½ÒªÖØÆôºóÉúЧ£¬ÇÒÊÇÓÀ¾ÃµÄ
Èç¹ûÒªÁ¢¼´¸ü¸ÄÇÒÓÀ¾ÃÉúЧ£¬¾ÍÖ»ÄÜÒÔÉÏÁ½ÖÖ·½Ê½Í¬Ê±Ê¹ÓÃÁË¡£
ÒÔÉÏÊÇͨ¹ýlinuxÃüÁîÐÐÐÞ¸ÄIPµÄ·½·¨¡£
Íø¿¨eth0 IPÐÞ¸ÄΪ 102.168.0.1
ifconfig eth0 102.168.0.1 netmask 255.255.255.0
Íø¹ØÐÞ¸ÄΪ 102.168.0.254
route add default gw 102.168.0.254
LinuxÃüÁîÐÐÐÞ¸Ädns
echo "nameserver 202.202.202.20 ">> /etc/resolv.conf
ÖØÆôÍøÂç·þÎñ
Àý×Ó£ºÓÉÔÀ´µÄDHCP¸Ä¹Ì¶¨IP
DEVICE=eth0
HWADDR=00:0C:29:F7:EF:BF
ONBOOT=yes
TYPE=Ethernet
NETMASK=255.255.255.0
IPADDR=192.168.0.68
GATEWAY=192.168.0.1
¼ÓÉϺìÉ«¼´¿É
ÖØÆôÍø¿¨£º
/etc/init.d/network restart
ifconfig eth0 ÐÂip
È»ºó±à¼/etc/sysconfig/network-scripts/ifcfg-eth0£¬ÐÞ¸Äip
[aeolus@db1 network-scripts]$ vi ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=219.136.241.211
NETMASK=255.255.255.128
GATEWAY=219.136.241.254
[aeolus@db1 etc]$ vi resolv.conf
nameserver 202.96.128.68
nameserver 219.136.241.206
£££££££££££££££££££££££
LinuxÏÂÐÞ¸ÄÍø¿¨IPºÍÍø¹Ø
½¨Òéͨ¹ýÖÕ¶Ë×Ö·û·½Ê½ÏÂÀ´ÐÞ¸Ä
Ò»ÐÞ¸ÄIPµØÖ·
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
BROADCAST=192.168.1.255
IPADDR=192.168.1.33
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
USERCTL=no
PEERDNS=no
TYPE=Ethernet
~
vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=none
IPADDR=192.168.2.34
NETMASK=255.255.255.0
USERCTL=no
PEERDNS=no
TYPE=Ethernet
NETWORK=192.168.2.0
BROADCAST=192.168.2.255
¶þÐÞ¸ÄÍø¹Ø
vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=Aaron
GATEWAY=192.168.1.1
ÈýÖØÐÂÆô¶¯ÍøÂçÅäÖÃ
/etc/init.d/network restart
-----------------------------------------------------------------------------------
ÐÞ¸ÄÅäÖÃÎļþ
/etc/sysconfig/network-scripts/ ÏÂÓÐÅäÖÃÎļþ
±ÈÈçÎļþ£ºifcfg-eth0 ´ú±íÊÇÒÔÌ«Íøʵ¼ÊÍ
Ïà¹ØÎĵµ£º
ÔÎÄÁ´½Ó£ºhttp://bbs.linuxtone.org/thread-1986-1-1.html ITÔËάר¼ÒÍø--"×ÔÓÉƽµÈ£¬»¥Öú·ÖÏí£¡"
ÉÏÃæÒýÓÃÁËIBMºìƤÊé½éÉܵĹØÓÚLinuxÐÔÄÜÐèÒª¿¼ÂǵÄÄÚÈÝ¡£½ñÌì¼ÌÐø½ØÑ¡ºÍÐÞ¸ÄÎĵµÖйØÓÚ¼ì²â²¿·ÖµÄ½éÉÜ£¬µ«Õⲿ·Ö²»ÊǺÜÏêϸ£¬½ñºóÓÐʱ¼äÎÒ»áÔÙ²¹³äһЩ²Î¿¼×ÊÁÏ¡£
¡ù×¢£ºÏÂÃ渽ͼµÄÃüÁîÊä³öÐÅÏ¢£¬ÒÔºìÆìDC Server 5.0 fo ......
ûÓÐÔĶÁ¹ýÔ´Âë֮ǰ,¶Ô²Ù×÷ϵͳ×ÜÊDZ§ÓÐÉñÃظÐ,×ÜÊÇÈÏΪ²Ù×÷ϵͳÊǺܰÂÃîµÄ¶«Î÷. Æäʵ,¶ÔÓÚÒ»¸öÓÐÒ»¶¨±à³Ì»ù´¡ºÍϵͳ֪ʶµÄ³ÌÐòÔ±,²Ù×÷ϵͳ²¢²»ÊÇ¿ÉÍû¶ø²»¿É¼°µÄ¶«Î÷. ²Ù×÷ϵͳµÄ×îÖÕÄ¿±êÖ»ÊÇÔÚÓ¦ÓóÌÐò²ãÃæÓëÓ²¼þ²ãÃæÖ®¼ä×öµÄÒ»²ãе÷,¿ÉÄÜÕâ¸ö¶¨ÒåÓÐЩƬÃæ,µ«±¾×ÅÕâÑùµÄ˼Ïë¶Á´úÂëÓ¦¸Ã»áÇáËÉÒ»µã.
ÓÉÓÚ·¢Õ¹µ½ÏÖÔÚ,LINU ......
Linuxϲ鿴ÎĵµÄÚÈÝÃüÁî×ܽá
Ö÷ÒªÓÐÈçϼ¸¸öÃüÁ
cat ÓɵÚÒ»ÐпªÊ¼ÏÔʾÎĵµÄÚÈÝ
tac ´Ó×îºóÒ»ÐпªÊ¼ÏÔʾ£¬¿ÉÒÔ¿´³ö tac ÊÇ cat µÄµ¹×Åд
nl ÏÔʾµÄʱºò£¬Ë³µÀÊä³öÐкÅ
more Ò»Ò³Ò»Ò³µÄÏÔʾÎĵµÄÚÈÝ
less& ......
×÷Õߣº¸ßÕÅÔ¶Öõ(HiLoveS)
²©¿Í£ºhttp://www.cnblogs.com/hiloves/
תÔØÇë±£Áô¸ÃÐÅÏ¢
XManager ÊÇÒ»¸ö¼òµ¥Ò×ÓõĸßÐÔÄܵÄÔËÐÐÔÚWindowsƽ̨ÉϵÄX-ServerÈí¼þ£¬¶øGnomeºÍKDE¾ÍÊÇX-Client£¬LinuxϵÄX- ServerÔòΪXorg¡£ËüÄÜ°ÑÔ¶¶ËUnix/LinuxµÄ×ÀÃæÎÞ·ìµØ´øµ½ÄãµÄWindowsÉÏ£¬ÉõÖÁµ±ÄãµÄµçÄÔÊÇÔÚÄÚÍø»ò·À»ðǽºó£¬ÄãÒ²ÄÜͨ ......
LinuxϵĶàÏ̱߳à³Ì
1 ÒýÑÔ
¡¡¡¡Ị̈߳¨thread£©¼¼ÊõÔçÔÚ60Äê´ú¾Í±»Ìá³ö£¬µ«ÕæÕýÓ¦ÓöàÏ̵߳½²Ù×÷ϵͳÖÐÈ¥£¬ÊÇÔÚ80Äê´úÖÐÆÚ£¬solarisÊÇÕâ·½ÃæµÄٮٮÕß¡£´«Í³µÄUnixÒ²Ö§³ÖÏ̵߳ĸÅÄµ«ÊÇÔÚÒ»¸ö½ø³Ì£¨process£©ÖÐÖ»ÔÊÐíÓÐÒ»¸öỊ̈߳¬ÕâÑù¶àÏ߳̾ÍÒâζ×Ŷà½ø³Ì¡£ÏÖÔÚ£¬¶àÏ̼߳¼ÊõÒѾ±»Ðí¶à²Ù×÷ϵͳËùÖ§³Ö£¬°üÀ¨Windows/NT£ ......