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

linuxÏÂÐÞ¸ÄipºÍÍø¹ØÒÔ¼°dns

1. ÐÞ¸ÄIPµØÖ· # vi /etc/sysconfig/network-scripts/ifcfg-eth0
ÐÞ¸ÄÒÔÏÂÄÚÈÝ  
DEVICE=eth0 #ÃèÊöÍø¿¨¶ÔÓ¦µÄÉ豸±ðÃû£¬ÀýÈçifcfg-eth0µÄÎļþÖÐËüΪeth0  
BOOTPROTO=static #ÉèÖÃÍø¿¨»ñµÃipµØÖ·µÄ·½Ê½£¬¿ÉÄܵÄÑ¡ÏîΪstatic£¬dhcp»òbootp£¬·Ö±ð¶ÔÓ¦¾²Ì¬Ö¸¶¨µÄ ipµØÖ·£¬Í¨¹ýdhcpЭÒé»ñµÃµÄipµØÖ·£¬Í¨¹ýbootpЭÒé»ñµÃµÄipµØÖ·  
BROADCAST=192.168.0.255 #¶ÔÓ¦µÄ×ÓÍø¹ã²¥µØÖ·  
HWADDR=00:07:E9:05:E8:B4 #¶ÔÓ¦µÄÍø¿¨ÎïÀíµØÖ·  
IPADDR=12.168.1.2 #Èç¹ûÉèÖÃÍø¿¨»ñµÃ ipµØÖ·µÄ·½Ê½Îª¾²Ì¬Ö¸¶¨£¬´Ë×ֶξÍÖ¸¶¨ÁËÍø¿¨¶ÔÓ¦µÄipµØÖ·  
IPV6INIT=no  
IPV6_AUTOCONF=no  
NETMASK=255.255.255.0 #Íø¿¨¶ÔÓ¦µÄÍøÂçÑÚÂë  
NETWORK=192.168.1.0 #Íø¿¨¶ÔÓ¦µÄÍøÂçµØÖ·  
ONBOOT=yes #ϵͳÆô¶¯Ê±ÊÇ·ñÉèÖôËÍøÂç½Ó¿Ú£¬ÉèÖÃΪyesʱ£¬ÏµÍ³Æô¶¯Ê±¼¤»î´ËÉ豸
2. ÐÞ¸ÄÍø¹Ø
Ð޸ĶÔÓ¦Íø¿¨µÄÍø¹ØµÄÅäÖÃÎļþ
[root@centos]# vi /etc/sysconfig/network
ÐÞ¸ÄÒÔÏÂÄÚÈÝ
NETWORKING=yes(±íʾϵͳÊÇ·ñʹÓÃÍøÂ磬һ°ãÉèÖÃΪyes¡£Èç¹ûÉèΪno£¬Ôò²»ÄÜʹÓÃÍøÂ磬¶øÇҺܶàϵͳ·þÎñ³ÌÐò½«ÎÞ·¨Æô¶¯)
HOSTNAME=centos(ÉèÖñ¾»úµÄÖ÷»úÃû£¬ÕâÀïÉèÖõÄÖ÷»úÃûÒªºÍ/etc/hostsÖÐÉèÖõÄÖ÷»úÃû¶ÔÓ¦)
GATEWAY=192.168.1.1(ÉèÖñ¾»úÁ¬½ÓµÄÍø¹ØµÄIPµØÖ·¡£ÀýÈ磬Íø¹ØΪ10.0.0.2)
3. ÐÞ¸ÄDNS
Ð޸ĶÔÓ¦Íø¿¨µÄDNSµÄÅäÖÃÎļþ
# vi /etc/resolv.conf
ÐÞ¸ÄÒÔÏÂÄÚÈÝ
nameserver 8.8.8.8 #googleÓòÃû·þÎñÆ÷
nameserver 8.8.4.4 #googleÓòÃû·þÎñÆ÷
4. ÖØÐÂÆô¶¯ÍøÂçÅäÖÃ
# service network restart
»ò
# /etc/init.d/network restart
ÐÞ¸Ä IP µØÖ·
¼´Ê±ÉúЧ:
# ifconfig eth0 192.168.0.2 netmask 255.255.255.0
Æô¶¯ÉúЧ:
ÐÞ¸Ä /etc/sysconfig/network-scripts/ifcfg-eth0
ÐÞ¸ÄÍø¹Ø Default Gateway
¼´Ê±ÉúЧ:
# route add default gw 192.168.0.1 dev eth0
Æô¶¯ÉúЧ:
ÐÞ¸Ä /etc/sysconfig/network
ÐÞ¸Ä DNS
ÐÞ¸Ä/etc/resolv.conf
Ð޸ĺó¿É¼´Ê±ÉúЧ£¬Æô¶¯Í¬ÑùÓÐЧ
ÐÞ¸Ä host name
¼´Ê±ÉúЧ:
# hostname centos1
Æô¶¯ÉúЧ:
ÐÞ¸Ä/etc/sysconfig/network


Ïà¹ØÎĵµ£º

Linux iptableÎĵµ

×ÜÀÀ
ÓÃiptables -ADC À´Ö¸¶¨Á´µÄ¹æ
Ôò
£¬-AÌí¼Ó -Dɾ³ý -C ÐÞ¸Ä
iptables - [RI] chain rule num rule-specification[option]
ÓÃiptables - RI ͨ¹ý¹æÔòµÄ˳ÐòÖ¸¶¨
iptables -D chain rule num[option]
ɾ³ýÖ¸¶¨¹æÔò
iptables -[LFZ] [chain][option]
ÓÃiptables -LFZ Á´Ãû [Ñ¡Ïî]
iptables -[NX] chain
ÓÃ -NX ......

LinuxÄÚºËÔö¼Óϵͳµ÷ÓÃ

1.linux ϵͳµ÷ÓõĻù±¾Ô­Àí
   linuxµÄϵͳµ÷ÓÃÐÎʽÓëPOSIX¼æÈÝ£¬Ò²ÊÇÒ»Ì×CÓïÑÔº¯ÊýÃûµÄ¼¯ºÏ¡£È»¶ø£¬linuxϵͳµ÷ÓõÄÄÚ²¿ÊµÏÖ·½Ê½È´ÓëDOCµÄINT 21HÏàËÆ£¬ËüÊǾ­¹ýINT 0X80HÈíÖжϽøÈëºó£¬ÔÙ¸ù¾Ýϵͳµ÷ÓúŷÖÃűðÀàµØ·þÎñ¡£
´Óϵͳ·ÖÎöµÄ½Ç¶È£¬linuxµÄϵͳµ÷ÓÃÉæ¼°4¸ö·½ÃæµÄÎÊÌâ¡£
(1)Óëϵͳµ÷ÓÃÓÐ¹ØµÄ ......

LinuxÏÂʹÓÃcoredumpʱµÄ×¢ÒâÊÂÏî

ºÇºÇ£¬×î½ü×ÁÄ¥MySQL coredumpʱѧµ½µÄÒ»µãµã¶«Î÷¡£ÔÚLinuxÏÂÒª±£Ö¤³ÌÐò±ÀÀ£Ê±Éú³ÉcoredumpҪעÒâÕâЩÎÊÌ⣺
Ò»¡¢Òª±£Ö¤´æ·ÅcoredumpµÄĿ¼´æÔÚÇÒ½ø³Ì¶Ô¸ÃĿ¼ÓÐдȨÏÞ¡£´æ·ÅcoredumpµÄĿ¼¼´½ø³ÌµÄµ±Ç°Ä¿Â¼£¬Ò»°ã¾ÍÊǵ±³õ·¢³öÃüÁîÆô¶¯¸Ã½ø³ÌʱËùÔÚµÄĿ¼¡£µ«Èç¹ûÊÇͨ¹ý½Å±¾Æô¶¯£¬Ôò½Å±¾¿ÉÄÜ»áÐ޸ĵ±Ç°Ä¿Â¼£¬Õâʱ½ø³ÌÕæÕýµ ......

UNIXºÍLINUXϵͳµÄSHELLÕýÔò±í´ïʽÓï·¨

Ò»¸öÕýÔò±í´ïʽ¾ÍÊÇÓÉÆÕͨ×Ö·û£¨ÀýÈç×Ö·û a µ½ z£©ÒÔ¼°ÌØÊâ×Ö·û£¨³ÆΪԪ×Ö·û£©×é³ÉµÄÎÄ×Öģʽ¡£¸ÃģʽÃèÊöÔÚ²éÕÒÎÄ×ÖÖ÷Ìåʱ´ýÆ¥ÅäµÄÒ»¸ö»ò¶à¸ö×Ö·û´®¡£ÕýÔò±í´ïʽ×÷Ϊһ¸öÄ£°å£¬½«Ä³¸ö×Ö·ûģʽÓëËùËÑË÷µÄ×Ö·û´®½øÐÐÆ¥Åä¡£
¡¡¡¡½«ÏÂÒ»¸ö×Ö·û±ê¼ÇΪһ¸öÌØÊâ×Ö·û¡¢»òÒ»¸öÔ­Òå×Ö·û¡¢»òÒ»¸ö ºóÏòÒýÓᢻòÒ»¸ö°Ë½øÖÆתÒå·û¡£ÀýÈ ......

linux ÏÂracµÄ°²×°

   LinuxÏÂracµÄ°²×°
1£¬»·¾³×¼±¸
 192.168.5.10  rac1
 192.168.5.100 prac1
 10.20.0.10 vrac1
 192.168.5.20 rac2
 192.168.5.200 prac2
 10.20.0.20 vrac2
2.Íø¿¨ÉèÖÃÇ°ÌáÊÇÁ½¿éÍø¿¨
 cd /etc/sysconfig/network-scripts
& ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ