Linux??????????-??????NFS????????
???????????? ???????[ 2015/1/8 11:55:12 ] ??????????????? Linux ??????
???????????????????????????????????????洢????????????д???е??????г???檔????NFS-Network File System??????????????NFS????й????????
????????NFS
????????????????????????????e????????????????????????裬?????????????y黳?????????????????NFS???
????NFS????Network File System???д??????????????????????????FreeBSD??????????е???????????NFS. NFS?????????????????????????????????????????NFS????????????????????????????????????????????NFS?????????繲??????????????????????????????????????????????“???”???????????????????????????????????????????Щ?????????????NFS ?????????????ν??????????? (RPC)?????????????????????? NFS ????? ???????? RPC ?????????а?????? NFS ??????????????? PC ???????????? NFS ????????????????????????????????У? ?????????????????????????????????????????????????????????? (partition)??????????????????
???????????????????????? NFS ???????趨???????????? /home/sharefile ????????????? NFS ????????????????????????????????????? (?????????????)????????????е? NFS client 1 ?? NFS client 2 ???????????????????? NFS client 1 ???н??? /home/data/sharefile ?????????? NFS ??????????? /home/sharefile ???μ??????????? (???????????????^_^)????? /home/data/sharefile ???? NFS client 1 ??????????????? partition ?????????????????????? cp?? cd?? mv?? rm... ??????????????????????????????
????NFS????????????
????RPC??????rpcbind
????????? NFS ?????????????? RPC ???????????κ???? RPC ???????????????????? port ???? (mapping) ????????У?????????????? rpcbind ??????????????????????? ??????κ???? RPC ??????????????????? rpcbind ???У?
????NFS??????nfs-utils
???????? rpc.nfsd ?? rpc.mountd ?????? NFS daemons ????????? documents ????????????????????????????? NFS ?????????????????????????????
??????????????CentOS6.5????????????????????У???е??????а????????????????У???????????????д??????
????1 rpm -qa | grep nfs #?????????nfs
????2 rpm -qa | grep rpcbind #?????????rpcbind
????NFS??
????????????????????????????????????????????? /etc/exports ???????? rpcbind (?????????????????????)?????????? nfs ????? NFS ?????? ???????????趨??????????Ч????????????????????趨??????????????????????????????? /etc/exports ???????趨????Щ distributions ???????????? /etc/exports ????????????????????????????ɡ????????????????
????method 1:
????1 [root@www ~]# vim /etc/exports
????2 /tmp 192.168.100.0/24(ro)
????3 [??????] [????(???)]
????method 2:
????1 [root@www ~]# vim /etc/exports
????2 /tmp localhost(rw)
????3 [??????] [??????(???)]
????method 3:
????1 [root@www ~]# vim /etc/exports
????2 /tmp *(ro??sync)
????3 [??????] [???????????(???)]
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11