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

参考资料


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM