于吉吉的技術博客

          建造高性能門戶網

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            65 隨筆 :: 6 文章 :: 149 評論 :: 0 Trackbacks


          NFS服務器端
          apt-get install nfs-kernel-server nfs-common portmap

          vi /etc/hosts.allow
          portmap: 192.168.0.
          lockd:   192.168.0.
          rquotad: 192.168.0.
          mountd:  192.168.0.
          statd:   192.168.0.

          vi /etc/hosts.deny
          portmap:ALL
          lockd:ALL
          mountd:ALL
          rquotad:ALL
          statd:ALL

          vi /etc/default/portmap
          將 -i 127.0.0.1 注釋掉

          /etc/init.d/portmap restart   重啟portmap daemon

          vi /etc/exports
          /home/zp/share  220.181.8.*(rw,sync,no_root_squash)   若更改了/etc/exports, 運行 $sudo exportfs -r 更新

          /etc/init.d/nfs-kernel-server restart  
          (可以到/var/log/messages里面查看是否正確激活)

          showmount -e ip  查看NFS server的export list.

          NFS客戶端
          apt-get install nfs-common portmap nfs-client

          mount 192.168.86.111:/home/mnt/share /home/mnt 掛起
          如果出現
          mount.nfs: rpc.statd is not running but is required for remote locking.
          mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
          mount.nfs: an incorrect mount option was specified

          那么
          mount 192.168.86.111:/home/mnt/share /home/mnt -o nolock  掛起

          umount /home/mnt 撤銷
          posted on 2011-04-06 17:09 陳于喆 閱讀(1468) 評論(0)  編輯  收藏 所屬分類: linux
          主站蜘蛛池模板: 吐鲁番市| 泾川县| 兴海县| 河源市| 吐鲁番市| 沙洋县| 余江县| 甘泉县| 新余市| 桐梓县| 永年县| 安庆市| 缙云县| 永新县| 海城市| 吉安市| 东海县| 东阳市| 灵石县| 满城县| 女性| 双流县| 安远县| 达拉特旗| 中西区| 宜川县| 肥东县| 日土县| 金乡县| 迁安市| 色达县| 抚顺县| 大埔县| 大名县| 会昌县| 应城市| 澄江县| 白银市| 宁安市| 仙游县| 惠水县|