centos nfs服務器簡單配置

jopen 10年前發布 | 16K 次閱讀 nfs

centos 6.5nfs服務器簡單配置, 本文介紹簡單配置,如需詳細說明,Google之,或者直接查看《鳥哥的Linux私房菜》

服務端:

  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)

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!