Linux ´ÅÅÌ·ÖÇø±í¡¢ÎļþϵͳµÄ²é¿´
ÌáÒª£ºLinux ´ÅÅÌ·ÖÇø±í¡¢ÎļþϵͳµÄ²é¿´¡¢Í³¼ÆµÄ¹¤¾ßºÜ¶à£¬ÓÐЩ¹¤¾ßÊǶ๦Äܵ쬲»½ö½öÊDz鿴´ÅÅ̵ķÖÇø±í£¬¶øÇÒÒ²ÄܽøÐдÅÅÌ·ÖÇøµÄ²Ù×÷£»µ«ÔÚ±¾ÎÄ£¬ÎÒÃÇÖ»½²´ÅÅÌ·ÖÇøµÄ²é¿´£¬ÒÔ¼°·ÖÇøµÄʹÓÃÇé¿öµÄ²é¿´£»±¾ÎÄÖ»ÊǸøÐÂÊÖÉÏ·֮Ó㻹ØÓÚ·ÖÇø¹¤¾ßµÄ²Ù×÷£¬ÎÒ½«ÔÚÒÔºó×öרÃŽéÉÜ£»´ËÎÄÄ¿µÄ:Ö÷ÒªÊÇÏò³õѧÕß½éÉÜÒ»ÏÂÈëÃűر¸µÄÒ»µã»ù´¡ÖªÊ¶£¬ÓÐÁË»ù´¡ÖªÊ¶²ÅÄܽø½×£»Èç¹û°ÑËùÓеĴÅÅ̲Ù×÷¹¤¾ß¶¼·ÅÔÚÒ»¸öÎĵµÀ´ó¼Ò¿´ÁËÒ²ÀÛ£»»ùÓÚÕâÖÖÏë·¨£¬ËùÒÔÎÒдÎĵµµÄʱºò£¬¾ÍÏëÈÃÐÂÊÖµÜÐÖһĿÁ˽⣬ÄÜÇáËɵã¾ÍÇáËɵ㣻Éú»î¡¢¹¤×÷ºÍѧϰÎÞ²»ÊÇÈç´Ë£»²Ù×÷»·¾³£ºFedora core 4.0 i686 & Slackware 10.1
+++++++++++++++++++++++++++++++++++++++
ÕýÎÄ
+++++++++++++++++++++++++++++++++++++++
Ò»¡¢df ÃüÁ
df ÊÇÀ´×ÔÓÚcoreutils Èí¼þ°ü£¬ÏµÍ³°²×°Ê±£¬¾Í×Ô´øµÄ£»ÎÒÃÇͨ¹ýÕâ¸öÃüÁî¿ÉÒԲ鿴´ÅÅ̵ÄʹÓÃÇé¿öÒÔ¼°Îļþϵͳ±»¹ÒÔØµÄλÖ㻾ÙÀý£º
[root@localhost beinan]# df -lh
Filesystem ÈÝÁ¿ ÒÑÓà ¿ÉÓà ÒÑÓÃ% ¹ÒÔØµã
/dev/hda8 11G 6.0G 4.4G 58% /
/dev/shm 236M 0 236M 0% /dev/shm
/dev/sda1 56G 22G 35G 39% /mnt/sda1
ÎÒÃÇ´ÓÖпÉÒÔ¿´µ½,ϵͳ°²×°ÔÚ/dev/hda8 £»»¹ÓÐÒ»¸ö56GµÄ´ÅÅÌ·ÖÇø/dev/sda1¹ÒÔØÔÚ /mnt/sda1ÖУ»ÆäËüµÄ²ÎÊýÇë²Î¿¼ man df
¶þ¡¢fdsik
fdisk ÊÇÒ»¿îÇ¿´óµÄ´ÅÅ̲Ù×÷¹¤¾ß£¬À´×Ôutil-linuxÈí¼þ°ü£¬ÎÒÃÇÔÚÕâÀïֻ˵ËûÈçºÎ²é¿´´ÅÅÌ·ÖÇø±í¼°·ÖÇø½á¹¹£»²ÎÊý -l £¬Í¨¹ý-l ²ÎÊý£¬ÄÜ»ñµÃ»úÆ÷ÖÐËùÓеÄÓ²Å̵ķÖÇøÇé¿ö£»
[root@localhost beinan]# fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 765 6144831 7 HPFS/NTFS
/dev/hda2 766 2805 &nb
Ïà¹ØÎĵµ£º
1.Äں˱àÒë±ØÐëÔÚroot»·¾³Ï£¬¶øUbuntu×°ºóûÓÐrootÓû§£¬ËùÒÔÉèÖÃrootÃÜÂë
sudo passwd root
2.su»Ø³µ£¬ÊäÈëÃÜÂë¾ÍÊÇÒÔrootÉí·ÝÁË£¬
3.ÏÂÔØlinuxÄں˲¢½«Æä×ªÒÆµ½/usr/srcÎļþ¼Ð
cp Îļþ /usr/src
4.tar -jxvf linux-2.6.29.4.tar.bz2
......
CassandraÊÇÒ»¸ö¿ªÔ´µÄ·Ö²¼Ê½Key-Value´æ´¢ÏµÍ³£¬Ö÷ÒªÓÃÓÚFacebook¡¢Digg¡¢TwitterµÈ´óÐÍ´óÊý¾ÝÁ¿µÄÍøÕ¾£¬ÏÖÔÚÒѾ³ÉΪApacheµÄ¶¥¼¶ÏîÄ¿¡£
ÐèÒªÏȰ²×°Java 1.6ÒÔÉϰ汾ºÍThrift¡£
ÏÂÔØCassandra£º
1.wget http://www.apache.org/dyn/closer.cgi?path=/cassandra/0.6.0/apache-cassandra-0.6.0-bin.tar.gz
½âѹËõ£º
2.t ......
´ÓǰÌ쿪ʼѧϰÇý¶¯£¬¸Ð¾õ²»µ½Çý¶¯µÄ¾«Ëè¡£²»¹ýËæ×Åʱ¼äµÄÁ÷ÊÅÎÒ½«¸ã¶¨Ëû¡£
ÒòΪÎÒ²»ÊÇÌØ±ð¶¯Èç¹ûÎÒдµÄ²»µ½Î»µÄµØ·½Ï£Íû´ó¼ÒÖ¸Õý£¬¹²Í¬½ø²½
¡£
É豸Çý¶¯
Çý¶¯¿ò¼Ü£º
Çý¶¯ºÍÆÕͨ³ÌÐòµÄÇø±ðÔÚÓÚËûÊÇʼþÇý¶¯
µÄ£¬Ò²¾ÍÊÇ˵Ëû²»ÊÇÏñÆÕͨ³ÌÐòÄÇÑù´Ómain()Ö´ÐУ¬´Ómain()½áÊø¡£ÒòΪÇý¶¯ÊÇÒÔÄ£¿éµÄÐÎʽ“ÈںϔÈë ......
LinuxÖÐʹÓÃÃüÁîÐÐʱ£¬ÓÐʱÐèÒª²éÕÒËùÐèÒªµÄÎļþ¡£ShellÌṩÁËÒ»Ì××Ö·û´®Ä£Ê½Æ¥Å乿Ôò£¬»ò³ÆÖ®ÎªÔª×Ö·û´®¡£¿ÉÒÔ°´ÕÕËùÒªÇóµÄģʽÀ´Æ¥ÅäÎļþ£¬»¹¿ÉÒÔʹÓÃ×Ö·ûÀàÐÍÀ´Æ¥ÅäÎļþÃû¡£ÔÚ´ËÖ÷Òª½éÉܼ¸ÖÖ³£¼ûµÄÌØÊâ×Ö·û£º
1¡¢* Æ¥ÅäÎļþÃûÖеÄÈκÎ×Ö·û´®£¬°üÀ¨¿Õ×Ö·û´®£»
2¡¢£¿ Æ¥ÅäÎļþÃûÖеÄÈκε¥×Ö·û´®
3¡¢£Û….£ ......
Linux Shell »·¾³ÖÐÖ§³ÖÊäÈëÊä³öÖØ¶¨Ïò£¬Ó÷ûºÅ<ºÍ>À´±íʾ¡£0¡¢1ºÍ2·Ö±ð±íʾ±ê×¼ÊäÈë¡¢±ê×¼Êä³öºÍ±ê×¼´íÎóÐÅÏ¢Êä³ö£¬¿ÉÒÔÓÃÀ´Ö¸¶¨ÐèÒªÖØ¶¨ÏòµÄ±ê×¼ÊäÈë»òÊä³ö£¬±ÈÈç 2>a.txt ±íʾ½«´íÎóÐÅÏ¢Êä³öµ½Îļþa.txtÖС£
ͬʱ£¬»¹¿ÉÒÔÔÚÕâÈý¸ö±ê×¼ÊäÈëÊä³öÖ®¼äʵÏÖÖØ¶¨Ïò£¬±ÈÈ罫´íÎóÐÅÏ¢ÖØ¶¨Ïòµ½±ê×¼Êä³ö£¬¿ÉÒÔÓà 2> ......