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

Redhat Linux Ó²Å̹ÒÔØ·½·¨£¡£¡£¡

 ²Î¿¼×ÊÁÏ£ºhttp://www.blogjava.net/lijun_li/archive/2009/04/02/263491.html   
               http://www.chinalinuxpub.com/read.php?wid=1080
Ó²Å̹ÒÔØ²Ù×÷¹¤×÷²½Ö裺
1¡¢ÏȲ鿴Ŀǰ»úÆ÷ÉÏÓм¸¿éÓ²ÅÌ£¬²é¿´ÃüÁîÓÐÁ½ÖÖ£º
ÃüÁî1£º# fdisk –l
ÃüÁî2£º# dmesg | grep sd
ÆäÖУºfdiskÃüÁî˵Ã÷ÈçÏ£º
fdiskÃüÁîÓÃ;£º¹Û²ìÓ²Å̵ÄʵÌåʹÓÃÇéÐÎÓë·Ö¸îÓ²ÅÌÓá£
fdiskÃüÁîʹÓ÷½·¨£º
¡¡ Ò»¡¢ÔÚ console ÉÏÊäÈë fdisk -l £¬¹Û²ìÓ²ÅÌ֮ʵÌåʹÓÃÇéÐΡ£
¶þ¡¢ÔÚ console ÉÏÊäÈë fdisk  /dev/sda£¨¾ßÌå´ÅÅÌÃû³Æ£©£¬¿É½øÈë·Ö¸îÓ²ÅÌģʽ¡£
Ø         ÊäÈë m ÏÔʾËùÓÐÃüÁîÁÐʾ¡£
Ø         ÊäÈë p ÏÔʾӲÅÌ·Ö¸îÇéÐΡ£
Ø         ÊäÈë a É趨ӲÅÌÆô¶¯Çø¡£
Ø         ÊäÈë n É趨еÄÓ²ÅÌ·Ö¸îÇø¡£
Ø         ÊäÈë e Ó²ÅÌΪ[ÑÓÉì]·Ö¸îÇø(extend)¡£
Ø         ÊäÈë p Ó²ÅÌΪ[Ö÷Òª]·Ö¸îÇø(primary)¡£
Ø         ÊäÈë t ¸Ä±äÓ²ÅÌ·Ö¸îÇøÊôÐÔ¡£
Ø         ÊäÈë d ɾ³ýÓ²ÅÌ·Ö¸îÇøÊôÐÔ¡£
Ø         ÊäÈë q ½áÊø²»´æÈëÓ²ÅÌ·Ö¸îÇøÊôÐÔ¡£
Ø         ÊäÈë w ½áÊø²¢Ð´ÈëÓ²ÅÌ·Ö¸îÇøÊôÐÔ¡£
dmesgÃüÁî˵Ã÷ÈçÏ£º
¹¦ÄÜ˵Ã÷£ºÏÔʾ¿ª»úÐÅÏ¢¡£
Óï¡¡¡¡·¨£ºdmesg [-cn][-s ]
²¹³ä˵Ã÷£ºkernel»á½«¿ª»úÐÅÏ¢´æ´¢ÔÚring bufferÖС£ÄúÈôÊÇ¿ª»úʱÀ´²»¼°²é¿´ÐÅÏ¢£¬¿ÉÀûÓÃdmesgÀ´²é¿´¡£¿ª»úÐÅÏ¢Òà±£´æÔÚ/var/logĿ¼ÖУ¬Ãû³ÆÎªdmesgµÄÎĵµÀï¡£
²Î¡¡¡¡Êý£º
¡¡-c ¡¡ÏÔʾÐÅÏ¢ºó£¬Çå³ýring bufferÖеÄÄÚÈÝ¡£
¡¡-s ¡¡Ô¤ÅäÖÃΪ8196£¬¸ÕºÃµÈÓÚring bufferµÄ´óС¡£
¡¡-n ¡¡ÅäÖüǼÐÅÏ¢µÄ²ã¼¶¡£
2¡¢¶ÔÒª¹ÒÔØµÄÓ²ÅÌ´´½¨´ÅÅÌ·ÖÇø
   ´´½¨´ÅÅÌ·ÖÇø²½Öè¾ÙÀýÈçÏ£º
   # fdisk /dev/sdb
½øÈëfdiskģʽ£º
Command (m for help):m &nbs


Ïà¹ØÎĵµ£º

Linux ÍøÂç½Ó¿ÚÅäÖÃÎļþ¼°Ïà¹Ø¹¤¾ß——ת

 1¡¢ ¹ØÓÚÍøÂç½Ó¿Ú¼°ÅäÖù¤¾ß˵Ã÷£»
ÍøÂç½Ó¿Ú(interface)ÊÇÍøÂçÓ²¼þÉ豸ÔÚ²Ù×÷ϵͳÖеıíʾ·½·¨£¬±ÈÈçÍø¿¨ÔÚLinux²Ù×÷ϵͳÖÐÓà ethX,ÊÇÓÉ0¿ªÊ¼µÄÕýÕûÊý£¬±ÈÈçeth0¡¢eth1...... ethX¡£¶øÆÕͨèºÍADSLµÄ½Ó¿ÚÊÇ pppX£¬±ÈÈçppp0µÈ£»
ÔÚLinux²Ù×÷ϵͳÖÐÅäÖÃÍøÂç½Ó¿Ú£¬Ò»°ãÊÇͨ¹ýÍøÂçÅäÖù¤¾ßʵÏֵ쬵«×îÖÕÄ¿µÄ»¹ÊÇͨ¹ýÍ ......

Linux ÊÍ·ÅÄÚ´æ·½·¨


Linux ÊÍ·ÅÄÚ´æ·½·¨
ÏÈ¿´¿´ÄÚ´æÊ¹ÓÃ×´¿ö
[root@node1 ~]# free -m
total used free shared buffers cached
Mem: 8004 6557 1446 0 163 5630
-/+ buffers/cache: 763 7240
Swap: 1983 0 1983
°ÑÄÚ´æÀïµÄÊý¾ÝÔÝʱдµ½Ó²ÅÌÀï
[root@node1 ~]# sync
ÐÞ¸Ä /proc/sys/vm/drop_cachesÎļþ
[root@node1 ~]# echo 3 > ......

linux c++Á¬½ÓmysqlʾÀý

 
¡¡±àÒëºÍÁ¬½Ó³ÌÐò
¡¡¡¡MySQLÖÐÓÐÒ»¸öÌØÊâµÄ½Å±¾,½Ð×ömysql_config. Ëü»áΪÄã±àÒëMySQL¿Í»§¶Ë,²¢Á¬½Óµ½MySQL·þÎñÆ÷ÌṩÓÐÓõÄÐÅÏ¢.ÄãÐèҪʹÓÃÏÂÃæÁ½¸öÑ¡Ïî.
¡¡¡¡1. --libs Ñ¡Ïî - Á¬½ÓMySQL¿Í»§¶Ëº¯Êý¿âËùÐèÒªµÄ¿âºÍÑ¡Ïî.
¡¡¡¡$ mysql_config --libs
¡¡¡¡2. --cflags Ñ¡Ïî - ʹÓñØÒªµÄincludeÎļþµÄÑ¡ÏîµÈµÈ.
......

linuxÖеÄÐźŽṹÌå

typedef struct siginfo
{
                int si_signo;            /* Signal number.*/
             &n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ