红联首页 凝聚Linux人的力量
菜鸟过关 | 精华文档 | 同城人(交友) | 我与Linux的故事 | Linux新闻 | Linux视频 | Linux人才 | 软件下载 | 大学校园 | English
发新话题
打印

Linux file share details

Linux file share details

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.

TOP

发新话题