首页 > 其他 > 详细

centos nfs服务器简单配置

时间:2014-10-20 11:55:52      阅读:248      评论:0      收藏:0      [点我收藏+]

服务端:

  1. yum install nfs*  

  2. vim /etc/exports

    /www/attachment 192.168.0.227(rw,sync,no_root_sqush)

   启动服务

    service rpcbind start

    service nfs start

客户端

    1. yum install nfs*

    mount -t nfs 192.168.0.230:/www/attachment  /www/attachment

    启用服务

    service rpcbind start


客户端常见错误:

    1、客户端没有启用 rpcbind

    mount: wrong fs type, bad option, bad superblock on 192.168.0.230:/www/attachment,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount.<type> helper program)
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

    2、 mount.nfs: access denied by server while mounting

        端口问题(具体疑问Google之)

        修正服务端/etc/exports

        /www/attachment 192.168.0.227(insecure,rw,sync,no_root_sqush)

    

centos nfs服务器简单配置

原文:http://my.oschina.net/u/195896/blog/335317

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