ubuntu11+ 配置NFS(服務(wù)器 + 客戶端)

          NFS服務(wù)器  10.13.120.232
          NFS客戶端    10.13.120.233    10.13.120.236    ......

          ------------------步驟一:NFS服務(wù)器配置------------------

          $sudo apt-get install nfs-kernel-server
          $sudo mkdir /home/a/nfsroot
          $sudo chmod 777 /home/a/nfsroot

          $sudo vim /etc/exports   
          #添加如下內(nèi)容:
          /home/a/nfsroot  *(rw,sync,no_root_squash)

          $sudo vim /etc/hosts.deny
          #添加如下內(nèi)容
          portmap:ALL
          lockd:ALL
          mountd:ALL
          rquotad:ALL
          statd:ALL


          $sudo vim /etc/hosts.allow
          #添加如下內(nèi)容
          portmap: 10.13.120.
          lockd: 10.13.120.
          rquotad: 10.13.120.
          mountd: 10.13.120.
          statd: 10.13.120.

          $sudo dpkg-reconfigure portmap
          選擇  :NO

          $sudo /etc/init.d/nfs-kernel-server restart
          $sudo /etc/init.d/portmap restart

          #在服務(wù)器上本地掛載測試 
          $sudo mount localhost:/home/a/nfsroot  /mnt
          $ df /mnt
          文件系統(tǒng)           1K-塊        已用     可用 已用% 掛載點
          localhost:/home/a/nfsroot
                               147794432  47781888  92505088  35% /mnt
          -----------------------步驟二:NFS客戶端配置--------------------------------

          $ sudo apt-get install nfs-common
          $ sudo  mount -t nfs 10.13.120.232:/home/a/nfsroot /mnt

          $ df /mnt
          文件系統(tǒng)           1K-塊        已用     可用 已用% 掛載點
          10.13.120.232:/home/a/nfsroot
                               147794432  47781888  92504576  35% /mnt

          posted on 2012-01-09 13:02 himalayas 閱讀(366) 評論(0)  編輯  收藏 所屬分類: linux

          <2012年1月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          2930311234

          導(dǎo)航

          統(tǒng)計

          常用鏈接

          留言簿

          隨筆分類(15)

          隨筆檔案(16)

          最新隨筆

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 泽普县| 镇平县| 屏东县| 土默特右旗| 石台县| 营口市| 文登市| 额敏县| 德令哈市| 安图县| 东莞市| 云阳县| 荔浦县| 垫江县| 遂昌县| 武强县| 青铜峡市| 农安县| 宁河县| 高台县| 武陟县| 苏尼特左旗| 固阳县| 泸西县| 嵊州市| 临潭县| 宿松县| 莎车县| 彰武县| 福安市| 谢通门县| 肇东市| 诸城市| 宜良县| 山阳县| 若羌县| 静宁县| 威远县| 英德市| 方城县| 奉新县|