Linux ÍøÂç½Ó¿Ú¹ÜÀíÏà¹ØÃüÁî½éÉÜ
Unix/LinuxÍøÂç½Ó¿Ú¹ÜÀíÏà¹ØÃüÁî½éÉÜ
Unix/Linux ÍøÂç½Ó¿Ú¹ÜÀíÏà¹ØÃüÁî½éÉÜ
»ñÈ¡ÍøÂçÊÊÅäÆ÷ÁбíÐÅÏ¢
ÔÚ»ñÖªÍøÂç½Ó¿ÚʹÓÃ״̬֮ǰ£¬Äã¿ÉÄÜÐèÒªÖªµÀÄ㵱ǰµÄϵͳʹÓõÄÍøÂçÊÊÅäÆ÷£¬ÔÚ Linux ºÍ AIX Öв鿴ÍøÂçÉ豸Æ÷µÄÊôÐÔʹÓò»Í¬µÄÃüÁÏÂÃæµÄÀý×Ó¸ø³öÁËÔÚ²»Í¬ÏµÍ³ÉÏÈçºÎ²é¿´ÍøÂçÉ豸Æ÷µÄÊôÐÔ¡£
Linux ϵͳÆô¶¯¼ÓÔØÍø¿¨Çý¶¯»áÊä³öʶ±ðµ½µÄËùÓÐÍøÂçÊÊÅäÆ÷ÐÅÏ¢¡£dmesg ÏÔʾϵͳ¿ª»úÐÅÏ¢¡£ËùÒÔ¿ÉÒÔÀûÓøÃÃüÁîÈ¡µÃϵͳÍøÂçÊÊÅäÆ÷ÁÐ±í¡£Çåµ¥ 1 ÃüÁîÊä³öÏÔʾ¹²ÓÐ 2 ¿éÍø¿¨£¬eth0 Óë eth1£¬ÆäÖнö eth1 ±»ÆôÓá£
ÔÚ RHEL5.3 ϵͳÉϲ鿴ÍøÂçÊÊÅäÆ÷
# dmesg|grep -i eth
IBM eHEA ethernet device driver (Release EHEA_0092-03)
ehea: eth0: Jumbo frames are enabled
ehea: eth0 -> logical port id #1
ehea: eth1: Jumbo frames are enabled
ehea: eth1 -> logical port id #2
ehea: eth1: Physical port up
eth1: no IPv6 routers present
²é¿´ÍøÂç½Ó¿Ú״̬
ÍøÂç½Ó¿Ú״̬°üÀ¨½Ó¿ÚÊÇ·ñÆôÓã¬ÊÇ·ñÉèÖà IP µØÖ·¡¢MTU ´óС¡¢ÊÕ·¢µÄ°üÊýµÈ£¬²éѯµÄÃüÁîΪ ifconfig, ÔÚ²»Í¬²Ù×÷ϵͳÆäÊä³ö¸ñʽÂÔÓв»Í¬¡£
Çåµ¥ 3 ΪÔÚ RHEL5.3 ÉϵÄÊä³ö£¬ÆäÏÔʾÁ½¸öÒÔÌ«ÍøÂç½Ó¿Ú£¬eth0 δÅäÖà ip µØÖ·£¬Î´±»ÆôÓã»eth1 ÅäÖÃÁË IP µØÖ·²¢±»ÆôÓá£
# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1A:64:44:AC:34
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
eth1 Link encap:Ethernet HWaddr 00:1A:64:44:AC:35
inet addr:9.114.70.151 Bcast:9.114.70.255 Mask:255.255.255.128
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packet
Ïà¹ØÎĵµ£º
±¾ÎÄÊÇ Unix/Linux ϵͳ¹ÜÀí×Ô¶¯»¯ÏµÁÐÖеÄһƪ£¬Ö÷Òª½²ÊöÈçºÎʵÏÖ´ÅÅÌ I/O ×Ô¶¯»¯¼à¿Ø¡£
´ÅÅÌ I/O ¼à¿ØÊÇ Unix/Linux ϵͳ¹ÜÀíÖÐÒ»¸ö·Ç³£ÖØÒªµÄ×é³É²¿·Ö¡£Ëü¿ÉÒÔ¼à¿ØÍÌÍÂÁ¿¡¢Ã¿Ãë I/O Êý¡¢´ÅÅÌÀûÓÃÂÊ¡¢·þÎñʱ¼äµÈÐÅÏ¢£¬²¢ÇÒÔÚ·¢ÏÖÒ쳣ʱ£¬·¢Ë͸澯ÐÅÏ¢¸øϵͳ¹ÜÀíÔ±£¬±ãÓÚϵͳ¹ÜÀíÔ±½øÐе÷ÕûÊý¾Ý²¼¾ÖµÈ¹ÜÀí»î¶¯ÒÔ´ïµ½ÓÅ»¯Ï ......
EthtoolÊÇÓÃÓÚ²éѯ¼°ÉèÖÃÍø¿¨²ÎÊýµÄÃüÁî¡£
¸ÅÒª£º
ethtool ethX //²éѯethXÍø¿Ú»ù±¾ÉèÖÃ
ethtool –h //ÏÔʾethtoolµÄÃüÁî°ïÖú(help)
ethtool –i ethX //²éѯethXÍø¿ÚµÄÏà¹ØÐÅÏ¢
ethtool –d ethX  ......
Linuxϳ£Óà CVS ÃüÁîÕûÀí
1. 怬 -- login
$ export CVSROOT=:pserver:username@the_server_name:/home/cvsroot
Note£º
pserverÊÇ·ÃÎÊ·½Ê½£¬Èç¹û·þÎñÆ÷ÉèÖõÄÊÇ¿ÚÁîÈÏÖ¤£¬ÔòÊÇ pserver¡£
usernameÊÇ CVS·þÎñÆ÷µÄÓû§Ãû£¬¿ÉÒÔ¸ù¾ÝÄãµÄÉèÖÃÐÞ¸Ä;
the_server_nameÊÇCVS·þÎñÆ÷µÄÃû³Æ»òÕßIPµØÖ·;
/home/cvsroot ......
¹¦ÄÜ˵Ã÷£ºÏµÍ³¹Ø»úÖ¸Áî¡£
¡¡¡¡Óï¡¡¡¡·¨£ºshutdown [-efFhknr][-t ÃëÊý][ʱ¼ä][¾¯¸æÐÅÏ¢]
¡¡¡¡²¹³ä˵Ã÷£ºshutdownÖ¸Áî¿ÉÒԹرÕËùÓгÌÐò£¬²¢ÒÀÓû§µÄÐèÒª£¬½øÐÐÖØпª»ú»ò¹Ø»úµÄ¶¯×÷¡£
¡¡¡¡²Î¡¡¡¡Êý£º
¡¡¡¡-c ¡¡µ±Ö´ÐÐ"shutdown -h 11:50"Ö¸Áîʱ£¬Ö»Òª°´+¼ü¾Í¿ÉÒÔÖжϹػúµÄÖ¸Áî¡£
¡¡¡¡-f ¡¡ÖØÐÂÆô¶¯Ê±²»Ö´ÐÐfsck¡£
¡¡ ......