windows下掛載linux的nfs網絡硬盤

掛載命令,速度快

mount \\10.8.200.167\goworkspace z: -o nolock,rsize=1024,wsize=1024,timeo=15

安裝步驟

yum install -y nfs-utils rpcbind

#增長掛載的文件夾
vim /etc/exports
#複製內容
/goworkspace 10.8.200.147(rw,sync,no_root_squash)

vi /etc/sysconfig/nfs
#將下列端口複製到文件的最下方 並註釋
RQUOTAD_PORT=30001
LOCKD_TCPPORT=30002
LOCKD_UDPPORT=30002
MOUNTD_PORT=30003
STATD_PORT=30004

#關閉防火牆
systemctl disable firewalld.service
systemctl stop firewalld.service

#重啓rpc服務
systemctl restart rpcbind.service
#重啓nfs服務
systemctl restart nfs.service
#查看狀態
systemctl status rpcbind.service
systemctl status nfs.service

參考資料

相關文章
相關標籤/搜索