日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

制作NFS

發布時間:2023/12/10 编程问答 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 制作NFS 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

最近學習NFS,用本地測試.
以下是我的測試過程




環境 ubuntu 10.4?? vm 7.1
終端
ifconfig 得到 ubuntu資料
INET ADDR 192.168.0.4
BCAST?? 192.168.0.255
MASK 255.255.255.0

一 安裝NFS
$ sudo apt-get install nfs-kernel-server
$ sudo apt-get install nfs-common

二 配置NFS
1 $ sudo dpkg-reconfigure portmap , 對Should portmap be bound to the loopback address? 選N
2 $ sudo?? /etc/default/portmap 末行清除 "-i 127.0.0.1"

三 配置hosts.deny
$ sudo vi?? /etc/hosts.deny
文本末添加
### NFS DAEMONS
?? portmap: ALL
?? lockd: ??? ALL
?? mountd:?? ALL
?? rquotad: ALL
?? statd: ??? ALL

四 配置hosts.allow
?? $ sudo vi /etc/hosts.allow
文本末加入
### NFS DAEMONS
?? portmap: 192.168.0.
?? lockd: ??? 192.168.0.
?? rquotad: 192.168.0.
?? mountd:?? 192.168.0.
?? statd: ???? 192.168.0.
$ sudo /etc/init.d/portmap restart 重啟portmap daemon.
顯示如下
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart portmap
portmap start/running, process?? XXXX

五 配置/etc/exports
$ sudo vi /etc/exports
文本末添加
/home/work *(rw,sync,no_root_squash)

/home/gxj/IPNC2.6/ *(rw,nohide,insecure,no_subtree_check,async,no_root_squash)
chmod 777 -R /home/work
$ sudo showmount -e
顯示 clnt-create : RPC : Program not registered

$ sudo?? exportfs -r 更新

$ sudo?? showmount 192.168.0.4 -e
顯示
Export list for 192.168.0.4:
/home/work *

六 啟用
?? $ sudo /etc/init.d/nfs-kernel-server restart 重啟nfs服務
顯示如下
* Stopping NFS kernel daemon ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ????????????? [ OK ]
* Unexporting directories for NFS kernel daemon... ?? ?? ?? ?? ?? ?? [ OK ]
* Exporting directories for NFS kernel daemon... ?? ?? ?? ?? ?? ?? ?? ?? ??
?? exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/home/work".
?? Assuming default behaviour ('no_subtree_check').
?? NOTE: this default has changed since nfs-utils version 1.0.x
????????????????????????????????????????????????????????????????????????

* Starting NFS kernel daemon????????????????????????????????????????????????????????? [ OK ]

掛載
mount -t nfs 192.168.0.4:/home/work?? /nfsmnt
mount -t nfs 192.168.0.4:/home/work?? /nfsmnt?? -o nolock

總結

以上是生活随笔為你收集整理的制作NFS的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。