于吉吉的技術(shù)博客

          建造高性能門(mén)戶(hù)網(wǎng)

            BlogJava :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            65 隨筆 :: 6 文章 :: 149 評(píng)論 :: 0 Trackbacks


          NFS服務(wù)器端
          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, 運(yùn)行 $sudo exportfs -r 更新

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

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

          NFS客戶(hù)端
          apt-get install nfs-common portmap nfs-client

          mount 192.168.86.111:/home/mnt/share /home/mnt 掛起
          如果出現(xiàn)
          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 撤銷(xiāo)
          posted on 2011-04-06 17:09 陳于喆 閱讀(1468) 評(píng)論(0)  編輯  收藏 所屬分類(lèi): linux
          主站蜘蛛池模板: 泾川县| 资源县| 郑州市| 陆川县| 明溪县| 大港区| 内乡县| 博兴县| 太谷县| 靖远县| 富平县| 屏边| 莱州市| 灵璧县| 平原县| 家居| 临西县| 天峻县| 囊谦县| 公安县| 建湖县| 大同县| 苍梧县| 贵溪市| 秀山| 偃师市| 泸水县| 迁安市| 大渡口区| 兴化市| 水富县| 宁晋县| 桦川县| 镇坪县| 平阳县| 钟祥市| 吴川市| 延长县| 南郑县| 赤城县| 塔城市|