LinuxはWindowsのNFSの下でネットワークドライブをマウントします

mountコマンド、速いです

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

参考資料

おすすめ

転載: www.cnblogs.com/djzny/p/11238254.html
おすすめ