红联Linux门户
Linux帮助

Linux file share details

发布时间:2007-11-13 01:09:29来源:红联作者:lznljyjc
It is mainly use the nfs(network file system) to realize the network files sharing.
first:
server side set:

in the file: "/etc/exports",the content should be like the following style
-----------------------------\
#
/u02/oradata *(rw,sync,wdelay,hide,nocrossmnt,insecure,root_squash,all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anongid=-2)
/root *(rw,sync,wdelay,hide,nocrossmnt,insecure,root_squash,all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anongid=-2)

/home/oracle/Desktop/Download *(rw,sync,wdelay,hide,nocrossmnt,insecure,root_squash,all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anongid=-2)
------------------------------
then restart the process : nfs and nfslock
you can use the command behind:
a. []$exportfs -a -v
b. []$/etc/init.d/nfs start
c. []$/etc/init.d/nfslock start
ok, the work of server side had ower
###############
next, you should go to client side ,and tap into the following command:

mount -t nfs 218.193.155.251:/home/oracle/Desktop/Download /mnt/tmp

ok, you can find the shared documents by server side appear in the dir /mnt/tmp in the client side.
文章评论

共有 0 条评论