/etc/exports ÆÄÀÏ ¼³Á¤¿¹Á¦
share-directory client1(options,,,) client2(options,,,)
share-directory : °øÀ¯ÇÒ µð·ºÅ丮¸í
client1 : °øÀ¯ µð·ºÅ丮¿¡ Á¢±ÙÇÒ¼ö ÀÖµµ·Ï Çã¿ëµÈ È£½ºÆ®µé
options : Á¢±Ù ±ÇÇѼ³Á¤
ro : Ŭ¶óÀ̾ðÆ®´Â °øÀ¯ µð·ºÅ丮¿¡ ´ëÇØ Àб⸸ °¡´ÉÇÏ´Ù,
rw : Ŭ¶óÀ̾ðÆ®´Â °øÀ¯ µð·ºÅ丮¿¡ ´ëÇØ Àбâ/¾²±â°¡ °¡´ÉÇÏ´Ù.
no_root_squash : Ŭ¶óÀ̾ðÆ®ÀÇ root´Â ¼¹öÀÇ root¿Í °°Àº ±ÇÇÑÀ» °¡Áø´Ù.
No_subtree_check : °øÀ¯µÈ µð·ºÅ丮³»¿¡ ÀÖ´Â ¼ºê µð·ºÅ丮µéÀ» °øÀ¯¿¡¼ Á¦¿Ü ½ÃÅ°´Â °æ¿ì ¼³Á¤
[root@apple /]# cat /etc/exports
/home/user01 *.gcc.go.kr(ro)
/export/ftp/pub 192.168.1.1/255.255.255.0(ro)
/ banana(rw),kiwi(rw,no_root_squash)
NFS ¼¹ö µ¥¸ó ±¸µ¿
# /etc/init.d/portmap start
# /etc/init.d/nfs start
# exportfs -v
ÇöÀç Ä¿³Î¿¡¼ ¾Ë°í ÀÖ´Â ÀͽºÆ÷Æ® ¸®½ºÆ®¸¦ Ãâ·ÂÇÑ´Ù
# exportfs -ar
/etc/export ÆÄÀÏÀÌ Ä¿³Î¿¡ Àû¿ëµÇµµ·Ï ÇÑ´Ù.
# nfsstat
NFS »óÅ Á¤º¸¸¦ Ãâ·ÂÇÑ´Ù.
|