Linux¸ùÎļþϵͳ½éÉÜ
ʲôÊǸùÎļþϵͳ
¸ùÎļþϵͳÊ×ÏÈÊÇÒ»ÖÖÎļþϵͳ£¬µ«ÊÇÏà¶ÔÓÚÆÕͨµÄÎļþϵͳ£¬ËüµÄÌØÊâÖ®´¦ÔÚÓÚ£¬ËüÊÇÄÚºËÆô¶¯Ê±ËùmountµÄµÚÒ»¸öÎļþϵͳ£¬Äں˴úÂëÓ³ÏñÎļþ±£´æÔÚ¸ùÎļþϵͳÖУ¬¶øϵͳÒýµ¼Æô¶¯³ÌÐò»áÔÚ¸ùÎļþϵͳ¹ÒÔØÖ®ºó´ÓÖаÑһЩ»ù±¾µÄ³õʼ»¯½Å±¾ºÍ·þÎñµÈ¼ÓÔص½ÄÚ´æÖÐÈ¥ÔËÐС£
ÎÒÃÇÊ×ÏÈ´ÓÖ÷»úÉÏËù°²×°µÄLinux²Ù×÷ϵͳÖÐÁ˽âһЩ¸ùÎļþϵͳµÄÐÅÏ¢¡£±ÈÈçÔÚ±ÊÕß¹¤×÷µÄLinux×ÀÃæϵͳÖпÉÒԵõ½ÏÂÃæµÄ½á¹û£º
# mount
/dev/hda2 on / type ext3 (rw)
none on /proc type proc (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)
# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 16216016 5667684 9724600 37% /
/dev/hda1 101089 9321 86549 10% /boot
none 63028 0 63028 0% /dev/shm
´ÓÉÏÃæµÄmountÃüÁîÎÒÃÇ¿ÉÒÔ¿´µ½£¬ÔÚ×ÀÃæLinuxÖУ¬¸ùÎļþϵͳ”/”±»mountµ½/dev/hda2É豸ÉÏ£¬ÎļþϵͳÀàÐÍΪext3£¬ÊôÐÔΪrw¼´¿É¶Áд¡£´ÓdfÃüÁîÔò¿ÉÒԵõ½¸ü¶à¸ùÎļþϵͳʹÓÿռäµÄÏà¹ØÐÅÏ¢¡£
¸ùÎļþϵͳһֱÒÔÀ´¶¼ÊÇËùÓÐÀàUnix²Ù×÷ϵͳµÄÒ»¸öÖØÒª×é³É²¿·Ö£¬Ò²¿ÉÒÔÈÏΪÊÇǶÈëʽLinuxϵͳÇø±ðÓÚÆäËûһЩ´«Í³Ç¶Èëʽ²Ù×÷ϵͳµÄÖØÒªÌØÕ÷£¬Ëü¸øLinux´øÀ´ÁËÐí¶àÇ¿´óºÍÁé»îµÄ¹¦ÄÜ£¬Í¬Ê±Ò²´øÀ´ÁËһЩ¸´ÔÓÐÔ¡£ÎÒÃÇÐèÒªÇå³þµÄÁ˽â¸ùÎļþϵͳµÄ»ù±¾½á¹¹£¬ÒÔ¼°Ï¸ÐĵÄÑ¡ÔñËùÐèÒªµÄϵͳ¿â¡¢ÄÚºËÄ£¿éºÍÓ¦ÓóÌÐòµÈ£¬²¢ÅäÖúø÷ÖÖ³õʼ»¯½Å±¾Îļþ£¬ÒÔ¼°Ñ¡ÔñºÏÊʵÄÎļþϵͳÀàÐͲ¢°ÑËü·Åµ½Êµ¼ÊµÄ´æ´¢É豸µÄºÏÊÊλÖá£
¸ùÎļþϵͳµÄ»ù±¾Ä¿Â¼½á¹¹
LinuxµÄ¸ùÎļþϵͳÒÔÊ÷Ðͽṹ×éÖ¯£¬°üº¬Äں˺Íϵͳ¹ÜÀíËùÐèÒªµÄ¸÷ÖÖÎļþºÍ³ÌÐò£¬Ò»°ã˵À´¸ùĿ¼”/”ϵĶ¥²ã
Ïà¹ØÎĵµ£º
1 ¡¢°²×°Ç°µÄ×¼±¸
1.1 ¼ì²éÓ²¼þ
ÎïÀíÄڴ棺 # grep MemTotal /proc/meminfo
½»»»¿Õ¼ä£º # grep SwapTotal /proc/meminfo
½»»»¿Õ¼äµÄ´óСÊǸù¾ÝÎïÀíÄÚ´æµÄ´óСÀ´ÉèÖõģ¬ÎïÀíÄÚ´æÉÙÓÚ 2G µÄÔò½»»»¿Õ¼äÉèΪÎïÀíÄÚ´æµÄÁ½±¶£¬ÎïÀíÄÚ´æ´óÓÚ 2G µÄÔò½»»»¿Õ¼äºÍÎïÀíÄÚ´æ´óСһÑù¡£Èç¹û²»·ûºÏÉÏÊö¹æ¶¨£¬ÄÇô¾ÍÐèÒªÖØÐÂÉèÖý ......
´ÅÅÌÓëĿ¼µÄÈÝÁ¿
ÔÚÎÄ×Ö½Ó¿Úµ×ϲ鿴ĿǰµÄ´ÅÅÌ×î´óÈÝÐíÈÝÁ¿¡¢ÒѾʹÓõôµÄÈÝÁ¿¡¢ Ä¿Ç°ËùÔÚĿ¼µÄÒÑʹ
ÓÃÈÝÁ¿
Ö¸Áî df [-ahikHTm] [Ŀ¼»òÎļþÃû]
-a £ºÁгöËùÓеÄÎļþϵͳ£¬°üÀ¨ÏµÍ³ÌØÓÐµÄ /proc µÈÎļþϵͳ£»
-k £ºÒÔ KBytes µÄÈÝÁ¿ÏÔʾ¸÷Îļþϵͳ£»
-m £ºÒÔ MBytes µÄÈÝÁ¿ÏÔʾ¸÷Îļþϵͳ£»
......
Òª½«Îļþϵͳ¹ÒÔص½ÎÒÃÇµÄ Linux ϵͳÉÏ£¬
¾ÍҪʹÓà mount Õâ¸öÖ¸Áî
Ó÷¨:
mount [-tonL] ×°ÖÃÃû³Æ´úºÅ ¹ÒÔصã
mount -a
²ÎÊý£º
-a £ºÒÀÕÕ /etc/fstab µÄÄÚÈݽ«ËùÓÐÏà¹ØµÄ´ÅÅ̶¼¹ÒÉÏÀ´£¡
-n £ºÒ»°ãÀ´Ëµ£¬µ±ÎÒÃǹÒÔØÎļþϵͳµ½ Linux ÉÏͷʱ£¬ Linux »áÖ÷¶¯µÄ½«
&nbs ......
1¡¢Apache
¡¡¡¡ÔÚÈçÏÂÒ³ÃæÏÂÔØapacheµÄfor Linux µÄÔ´Âë°ü
¡¡¡¡http://www.apache.org/dist/httpd/;
¡¡¡¡´æÖÁ/home/xxĿ¼£¬xxÊÇ×Ô½¨Îļþ¼Ð£¬ÎÒ½¨ÁËÒ»¸öwjµÄÎļþ¼Ð¡£
¡¡¡¡ÃüÁîÁÐ±í£º
¡¡¡¡
cd /home/wj
¡¡¡¡tar -zxvf httpd-2.0.54.tar.gz
¡¡¡¡mv httpd-2.0.54 apache
¡¡¡¡cd apache
¡¡¡¡./configure --prefix=/u ......
M. Tim Jones, ¹ËÎʹ¤³Ìʦ, Emulex Corp.
Linux® ÄÚºËʹÓà GNU Compiler Collection (GCC) Ì×¼þµÄ¼¸¸öÌØÊ⹦ÄÜ¡£ÕâЩ¹¦ÄÜ°üÀ¨Ìṩ¿ì½Ý·½Ê½ºÍ¼ò»¯ÒÔ¼°Ïò±àÒëÆ÷ÌṩÓÅ»¯ÌáʾµÈµÈ¡£Á˽âÕâЩÌØÊâµÄ GCC ÌØÐÔ£¬Ñ§Ï°ÈçºÎÔÚ Linux ÄÚºËÖÐʹÓÃËüÃÇ¡£
GCC ºÍ Linux ÊdzöÉ«µÄ×éºÏ¡£¾¡¹ÜËüÃÇÊǶÀÁ¢µÄÈí¼þ£¬µ«ÊÇ Linux ÍêÈ«ÒÀ¿¿ ......