NFS遠程目錄掛載

需要組件yum install  nfs-utils

服務端:

[root@centos7 ~]#vim /etc/exports
/data/cmatrix-1.2a (rw,sync,no_root_squash)
service nfs start啓動服務
chkconfig nfs on自啓動
showmount -e localhost顯示可掛載目錄
改變共享目錄後必須重啓service nfs restart

客戶端:

安裝nfs組件

mount -t nfs 192.168.35.128:/data/cmatrix-1.2a  /data/share
寫入/etc/fstab文件 192.168.35.128:/data/cmatrix-1.2a         /data/share             nfs  defaults        0 0

 blob.png

win7客戶端

打開nfs功能,之後cmd,或者網頁輸入\\192.168.35.128\data\share
mount  \\192.168.35.128\data\share x:\

blob.png

blob.png

blob.png



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章