centos6.2 64位 配置nfs
首先安装NFS套件,命令如下:
yum install nfs-utils.x86_64(64位系统)
yum install nfs-utils(32位系统)
然后安装portmap服务,portmap在centos6中改名为rpcbind
yum install rpcbind(centos6)
yum install portmap(centos5)
上面是别人写的 因为我装的系统 已经安装了上述软件 所以没有验证
根目录下新建目录
/]# mkdir nfsfile
/]# chmod 777 nfsfile
/]# vi vi /etc/exports
加入
--/nfsfile 12.18.10.22 *(rw,sync) (注意这个* 如果不写可能会连不上)
/export *(rw,async,no_root_squash)
/]# /etc/init.d/nfs start
/]# /etc/init.d/nfs start
/]# /etc/init.d/rpcbind start(注意 portmap在centos6中改名为rpcbind)
/]# showmount -e 12.18.10.22 测试nfs 是否成功
Export list for 12.18.10.22:
/nfsfile 12.18.10.22 (没写*的打印信息)
/nfsfile(everyone) 12.18.10.22 (写了*的打印信息)
显示这些表示成功
安装win7内置的NFS客户端
win7已经内置NFS客户端了,在可选组件里
控制面板 – 程序 – 打开或关闭Windows功能,选上NFS服务
安装完后,管理工具在 控制面板 - 所有控制面板项 – 管理工具 – Network File System 服务(NFS)
C:\>showmount -e 12.18.10.22
/nfsfile 12.18.10.22
C:\>mount 12.18.10.22:/nfsfile z:
猜你喜欢
转载自pppqqq800.iteye.com/blog/1570148
今日推荐
周排行