Skip to content


linux nfs配置概要

利用nfs 可以共享系统中的指定文件夹给网络中的其它机器。我们经常可以利用nfs对系统空间进行扩容
nfs的构成分成两个部份
1.被分享的目录的机器通常称之为nfs server
2.连接nfs的通常称之为nfs client

配置nfs server端:
1.在/etc/exports文件中增加一条要分享目录的分享属性例如:
/home/work 192.168.0.*(rw,sync,no_root_squash)
把本机/home/work目录共享给192.168.0.*IP段内的机器,有读写权限

2./etc/rc.d/init.d/portmap start 启动端口映射

3./etc/rc.d/init.d/nfs start 启动nfs

配置nfs客户端:
很简直,像用正常磁盘一样挂载就行了
mount –t nfs 192.168.0.20:/home/work /mnt
运行上面的指令后客户端就可以直接用/mnt文件夹访问nfs server上的/hom/work文件夹了

Posted in linux, 技术.

Tagged with .


2 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. 剑侠3论坛 says

    学习了哦~~

  2. 恒工 says

    不错哦~~~~~



Some HTML is OK

or, reply to this post via trackback.