centos6.2 64位 配置nfs

[size=small]

首先安装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:
[/size]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值