µ±Ç°Î»ÖãºLinux½Ì³Ì - Linux - ÖÐСÆóÒµ·þÎñÆ÷ÅäÖ÷½°¸ µÚÎåÕÂ(3)

ÖÐСÆóÒµ·þÎñÆ÷ÅäÖ÷½°¸ µÚÎåÕÂ(3)

×÷ Õߣº ÌÀº£¾©


( E-mail:[email protected] )

µÚÎåÕ Îļþ·þÎñÆ÷

µÚÈý½Ú NFS ·þÎñÆ÷


3.1 ¼ò½é

NFS ÊÇÍøÂçÎļþϵͳ£¨Network File System£©µÄ¼ò³Æ£¬ÊÇ·Ö²¼Ê½¼ÆËãϵͳµÄÒ»¸ö×é³É²¿·Ö£¬ÊµÏÖÔÚÒìÖÖÍøÂçÉϹ²ÏíºÍ×°ÅäÔ¶³ÌÎļþϵͳ£¬´ÓÓû§½Ç¶È¿´À´£¬ÔÚÕâЩԶ³ÌµÄÎļþϵͳ²Ù×÷ºÍ±¾µØµÄÎļþϵͳÉϲÙ×÷²¢Ã»ÓÐʲô²»Í¬¡£NFSÓÉSun ΢ϵͳ¹«Ë¾£¨Sun Microsystem, Inc)¿ª·¢£¬Öƶ©ÁËNFS ±ê×¼£¬²¢±»IETF½ÓÊÜ£¬ÄÉÈëRFC£¬×÷ΪÎļþ·þÎñµÄÒ»ÖÖ±ê×¼£¨RFC1904£¬RFC1813£©¡£NFS»ùÓÚ¿Í»§/·þÎñÆ÷½á¹¹£¬Í¨¹ýRPC£¨Ô¶¹ý³Ìµ÷Óã©ÊµÏÖ£¬ËùÓеÄNFS²Ù×÷¶¼ÓÉRPC¹ý³ÌÀ´½øÐС£NFS ·þÎñÆ÷µ¼³ö±¾µØµÄĿ¼¸øÔ¶³ÌµÄNFS¿Í»§£¬NFS¿Í»§°Ñ¶ÔÎļþ²Ù×÷ϵͳµ÷ÓÃÖض¨Ïòµ½Ô¶³ÌµÄϵͳ¡£ÔÚLinuxÀͨ³£ÓÃknfsdÀ´ÊµÏÖNFS·þÎñ£¬ÕâÊǸöÔËÐÐÔÚºËÐÄ¿Õ¼äµÄºǫ́ÊØ»¤³ÌÐò£¬Ïà¶ÔÓëÓû§¿Õ¼äµÄNFS³ÌÐò£¬ÓнϸߵÄÏìÓ¦ÐÔÄÜ¡£


3.2 ËùÐè×ÊÔ´

3.2.1 ËùÐè°ü
RedHat 6.2 ·þÎñÆ÷°²×°

3.2.2 ËùÐèÅäÖÃÎļþ
/etc/exports ϵͳ×Ô´ø£¬¹ÜÀíÔ±ÅäÖÃ


3.3 ÅäÖ÷½°¸

1./etc/exports
˵Ã÷£ºNFSÖ÷ÅäÖÃÎļþ
Ô´Îļþ£º
/home/weboa www.weboa.com.cn (rw)
# °Ñ/home/weboa Ìṩ¸øwww.weboa.com.cn·ÃÎÊ£¬È¨ÏÞÊǿɶÁд


3.4 ²âÊÔ¼°¹ÜÀí°ì·¨

1. ÐÞ¸ÄÍêÅäÖÃÎļþÐèÒªÖ´ÐÐ/etc/rc.d/init.d/nfs startÉúЧ


3.5С½á

NFS(Network File System)ÊÇÓÉSun¿ª·¢µÄÓÃÓÚÍøÂçÉÏÎļþ¹²ÏíµÄЭÒé.NFSʹÓÃÆðÀ´ºÜ·½±ã,ËùÒԵõ½Á˹㷺µÄÓ¦ÓÃ.µ«ÓÉÓÚËüµÄÈÏÖ¤»úÖÆÊÇ»ùÓÚIPµØÖ·µÄ,Òò¶øÈÝÒ×±»¹¥»÷.

×¢ÒâNFSÊÇ»ùÓÚrpc»úÖƵÄ,ËùÒÔportmap·þÎñÒ»¶¨Òª´ò¿ª.