首页 > 其他 > 详细

centos 6.5 上安装nfs服务器,并测试

时间:2016-04-12 14:34:59      阅读:206      评论:0      收藏:0      [点我收藏+]

linux 上安装nfs服务器及设置客户端访问


    服务器端:192.168.10.11

    客户端:  192.168.10.20


服务器端&&客户端    


yum  -y install rpcbind nfs-utils    (linux 6.0以上版本)

yum -y install portmap nfs-utils     (5.0版本)


服务器端

    echo -e "/cxw\t192.168.10.0/24(rw,sync,all_squash)">>/etc/exports

启动服务

    /etc/init.d/rpcbind start

    /etc/init.d/nfs start

更改为开机自动启动

    chkconfig rpcbind on

    echo -e "/etc/init.d/nfs\tstart">>/etc/rc.local

更改共享文件夹

    mkdir -R /cxw

    chown -R nfsnobody:nfsnobody /cxw

使配置生效

    exportfs -r



客户端


    chkconfig nfs on

    chkconfig rpcbind on


    mount -t nfs 192.168.10.11:/cxw /tmp


    showmount -e 192.168.10.11

测试客户端是否有写的权限,创建文件夹权限


centos 6.5 上安装nfs服务器,并测试

原文:http://552627.blog.51cto.com/542627/1762835

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!