LinuxÎļþϵͳµÄÌåϵ½á¹¹
Ò»¡¢Ó²ÅÌ·ÖÇøÓëÎļþϵͳ
1) ͨ³£ÔÚÄõ½Ò»¿éеÄÓ²ÅÌʱ£¬»á½«Ó²ÅÌ·Ö¸î³É¼¸¸ö²»Í¬µÄ·ÖÇø(partition)
2) ·ÖºÃ·ÖÇøºó£¬Òª°ÑÕâЩ·ÖÇø¸ñʽ»¯(Format)³ÉÌØ¶¨µÄÎļþϵͳ¸ñʽ(File System Format)£¬²ÅÄܹ»ÓÃÀ´´¢´æÎļþ¡£¸ñʽ»¯¾ÍÊǰѷÖÇøÇиî³ÉÒ»¸ö¸öСµ¥Î»(³ÆÎªblock)£¬²¢ÇÒblockÒÀÐò±àºÅ¡£blockÊÇ´¢´æÎļþÄÚÈݵÄ×îСµ¥Î»¡£ÔÚÔ¤ÉèÇé¿öÏ£¬Ò»¸öblockµÄ´óСΪ4K£¬Ò»¸öblock×î¶àÖ»ÄÜÓÃÀ´´¢´æÒ»¸öÎļþ¡£
¶þ¡¢LinuxÎļþϵͳµÄÌåϵ½á¹¹
1) ´Óͼ2.1¿ÉÒÔ¿´³ö£¬Kernel¶ÔÉÏ(Óû§¿Õ¼äµÄÓ¦ÓóÌÐò)ÌṩͳһµÄϵͳµ÷ÓÃ(System Call)×÷Ϊ½Ó¿Ú£¬¶ÔÏÂ(ÎïÀí´æ´¢É豸)ʹÓÃÉ豸Çý¶¯½øÐдæÈ¡Êý¾Ý¡£¶øÏµÍ³µ÷ÓúÍÉ豸Çý¶¯Ö®¼ä¾ÍÊÇÎļþϵͳ¡£
ͼ2.1 LinuxÎļþϵͳÌåϵ½á¹¹
2) LinuxʹÓÃÐéÄâÎļþϵͳ(Virtual File System)À´ÆÁ±Îµ×²ãÒì¹¹ÎļþϵͳµÄ²îÒ죬VFSÌṩһ¸öͳһµÄ³éÏó½Ó¿Ú¡£VFS×îÔçÓÉSun¹«Ë¾Ìá³öÒÔʵÏÖNFS(ÍøÂçÎļþϵͳ)¡£µ«ÊÇÏÖÔÚUnix¼Ò×å´ó¶àÊýϵͳ¶¼²ÉÓÃÁËVFS£¨°üÀ¨Linux¡¢FreeBSD¡¢SolarisµÈ£©¡£
ͼ2.2 VFS
VFS²¢²»ÊÇÒ»ÖÖÓÃÓÚÍⲿ´æ´¢Æ÷µÄÎļþϵͳ¸ñʽ(ÈçExt2£¬NTFSµÈ)¡£ËüÊÇkernelµÄÒ»²¿·Ö£¬VFSÔÚϵͳÆô¶¯Ê±½¨Á¢£¬ÔÚϵͳ¹Ø±ÕʱÏûÍö¡£
VFS²ÉÓÃÃæÏò¶ÔÏóµÄ¼Ü¹¹£¬Ö÷Òª¶ÔÏóÈçÏ£º
•superblock¶ÔÏ󣺱íʾһ¸ö¾ßÌåµÄ¿É·â×°µÄÎļþϵͳ
•inode¶ÔÏ󣺱íʾһ¸öÎļþµÄÔªÊý¾Ý(metadata)
•dentry¶ÔÏ󣺱íʾһ¸öĿ¼Ïî
•file¶ÔÏ󣺱íʾһ¸öÓë½ø³ÌÏà¹ØÁªµÄÒÑ´ò¿ªµÄ
Ïà¹ØÎĵµ£º
2009 Äê 4 ÔÂ 23 ÈÕ
±¾ÎÄÖÐÎÒÃÇÕë¶Ô Linux É϶àÏ̱߳à³ÌµÄÖ÷ÒªÌØÐÔ×ܽá³ö 5 Ìõ¾Ñ飬ÓÃÒÔ¸ÄÉÆ Linux ¶àÏ̱߳à³ÌµÄϰ¹ßºÍ±ÜÃâÆäÖеĿª·¢ÏÝÚå¡£ÔÚ±¾ÎÄÖУ¬ÎÒÃÇ´©²åһЩ Windows µÄ±à³ÌÓÃÀýÓÃÒÔ¶Ô±È Linux ÌØÐÔ£¬ÒÔ¼ÓÉî¶ÁÕßÓ¡Ïó¡£
±³¾°
Linux ƽ̨ÉϵĶàÏ̳߳ÌÐò¿ª·¢Ïà¶ÔÓ¦ÆäËûƽ̨£¨±ÈÈç Windows£©µÄ¶àÏß³Ì API ÓÐһЩϸ΢ ......
×î½üÔÚµ÷ÊÔlinuxСϵͳ£¬ÏëÈÃСϵͳ֧³ÖÖÐÎÄ£¬¾¹ý¼¸ÌìµÄµ÷ÊÔ£¬Õâ¸öÎÊÌâÖÕÓÚµÃÒÔ½â¾ö£¬ÏÂÃæ×ܽáÒ»ÏÂÓöµ½µÄÎÊÌâºÍ½â¾ö°ì·¨¡£
ÔÚconsoleÏÂÃæÖ§³ÖÖÐÎÄÎÒÑ¡ÔñµÄÊDzÉÓÃÍâ¹Òʽƽ̨µÄ°ì·¨£¬²¢²»ÕæÕýºº»¯Äںˣ¬ÒòΪµ£Ðĺº»¯Äں˻áÓнϴóµÄ·çÏÕ£¬ËùÒÔÑ¡ÓÃÍâ¹ÒµÄ·½Ê½¡£²ÉÓÃÍâ¹ÒµÄ·½Ê½±ØÐëµÃ×¼ ......
תÌù£º
ÏÖÔÚÓÃlinuxµÄÅóÓÑÔ½À´Ô½¶àÁË£¬Ç°¼¸Ìì¾ÍÓÐÁ½¸öÅóÓÑÎÊÎÒlinuxÏÂÔõôÅäÖÃjava»·¾³£¬ÎÒÏ뻹ÓкܶàÅóÓÑÏëÁ˽âѧϰÕâ·½ÃæµÄ¶«Î÷£¬¾Íдһ¸öÍêȫһµãµÄlinux java»·¾³ÅäÖðɣ¬Ï£Íû¶Ô´ó¼ÒÓаïÖú¡£
Ò». ÏÂÔØjdk5.0 for linux
¡¡¡¡µ½sunµÄÖ÷Ò³ http://java.sun.com/j2se/1.5.0/download.jsp ÏÂÔØjdk°²×°Îļþjdk-1_5_0_05-li ......
-Ëᦻª(Barry Song)
Linux¾ßÓÐÓÕÈ˵Ä÷ÈÁ¦£¬ËüÊÇÒ»¸öÓÉÈ«ÊÀ½ç²»Í¬Ãñ×å¡¢²»Í¬ÐÅÑö¡¢²»Í¬ÐÔ±ðµÄÈ˹²Í¬²ÎÓëºÍÐ×÷µÄ¹ú¼ÊÐÔÏîÄ¿¡£LinuxÃâ·ÑÌṩԴ´úÂ룬²¢ÇÒ¾ßÓÐÓëUnixÀàËÆµÄΪÈËÃÇËùÊìϤµÄÓ¦ÓóÌÐò±à³Ì»·¾³£¬ÕâÒ»ÇÐÔì¾ÍÁËËü½ñÌìµÄ¾Þ´ó³É¹¦¡£Í¨¹ý»¥ÁªÍø´Óר¼Ò´¦¼´Ê±»ñµÃµÄ¸ßÖÊÁ¿µÄÃâ·ÑÖ§³ÖÒ²·¢»ÓÁËÖØÒª× ......
-Ëᦻª£¨Barry Song£©
ÔÚ¿ªÊ¼²½ÈëLinuxÉ豸Çý¶¯³ÌÐòµÄÉñÃØÊÀ½ç֮ǰ£¬ÈÃÎÒÃÇ´ÓÇý¶¯³ÌÐò¿ª·¢ÈËÔ±µÄ½Ç¶È¿´¼¸¸öÄں˹¹³ÉÒªËØ£¬ÊìϤһЩ»ù±¾µÄÄں˸ÅÄî¡£ÎÒÃǽ«Ñ§Ï°Äں˶¨Ê±Æ÷¡¢Í¬²½»úÖÆÒÔ¼°ÄÚ´æ·ÖÅä·½·¨¡£²»¹ý£¬ÎÒÃÇ»¹ÊǵôÓÍ·¿ªÊ¼Õâ´Î̽Ë÷Ö®Âá£Òò´Ë£¬±¾ÕÂÒªÏÈä¯ÀÀÒ»ÏÂÄں˷¢³öµÄÆô¶¯ÐÅÏ¢£¬È»ºóÔÙÖð¸ö½²½âһЩÓÐÒâ˼µÄµã¡£
......