NFS遠程目錄掛載

須要組件yum install  nfs-utilsvim

服務端:centos

[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

客戶端:bash

安裝nfs組件ide

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客戶端centos7

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

blob.png

blob.png

blob.png

相關文章
相關標籤/搜索