?????????????????????????????????????????????????е??????????????????????????httpЭ?????????????κζ?????????????????????????????????????????????????????????????????????????????????
????NFS??Network File System?????????????????FreeBSD??????????е????????????????е???????????TCP/IP???繲?????????NFS??????У?????NFS??????????????????дλ?????NFS??????????????????????????????
?????????????linux????????CentOS??Ubuntu???????汾?????
??????Ubuntu?μ?/home/dhcc/nfs?????CentOS??/home/shao/nfs??
????Ubuntu??
????1.???????NFS??????
????sudo apt-get install nfs-kernel-server nfs-common
????2.???ò???
????vim /etc/exports
??????????????У???????????
????/home/dhcc/nfs *(rw??sync??no_root_squash)      ???????nfs?????????*??????????е????η???????????t????IP????????????
????3.????nfs????????????????????????????????
????sudo mkdir /home/dhcc/nfs
????4.???????????Ч
????exportfs -r   #????????
????showmount -e
?????????Ч?????
????Export list for Ubuntu:
????home/dhcc/nfs
????5.????nfs????
????/etc/init.d/nfs-kernel-server restart
????CentOS:
????1.????????????????????????????
????mkdir /home/shao/nfs
????2.???nfs-utils
????yum install nfs-utils
????2.mount????
????mount -t nfs 10.18.105.116:/home/dhcc/nfs /home/shao/nfs      #Ubuntu??ip?10.18.105.116
????3.???????????
????vim /etc/rc.local
??????????
????sudo mount -t nfs 10.18.105.116:/home/dhcc/nfs /home/shao/nfs
???????????mount.nfs:access denied by server while mounting???????????????????????????
????1.?????????nfs?????
????chmod 755 /home/dhcc/nfs
????2.??????????1024????????? insecure ???????????????/etc/exports??:
????vim /etc/exports
???????????????
????/home/dhcc/nfs *(insecure??rw??sync??no_root_squash)
????3.???/etc/sysconfig/nfs???
????# Turn off v2 and v3 protocol support
????#  RPCNFSDARGS="-N 2 -N 3"
????# Turn off v4 protocol support
????#RPCNFSDARGS="-N 4"    /*????仰??#?????*/
????NFS????????汾????NFS-2 NFS-3 NFS-4??????????????????????????NFS?汾????????????NFS-4???ɡ?
?????????NFS???ò??????£?
????ro ???????
????rw ??д????sync ???????????????д????
????async nfs??д??????????????????
????secure nfs???1024???μ???TCP/IP??????
????insecure nfs???1024??????????
????wdelay ??????????д??nfs?????????д??(???)
????no_wdelay ??????????д??nfs??????????д???????async???????????á?
????hide ??nfs???????в???????????
????no_hide ????nfs????????
????subtree_check ???????/usr/bin??????????????nfs??鴯???????(???)
????no_subtree_check ??????????????鴯?????
????all_squash ?????????UID??GID??????????anonymous????????????
????no_all_squash ????????????UID??GID(???)
????root_squash root???????????????????anonymous???????????(???)
????no_root_squas root??????и??????????????????
????anonuid=xxx ???nfs??????/etc/passwd??????????????UID
????anongid=xxx ???nfs??????/etc/passwd??????????????GID