Win10挂载nfs网络文件系统(Ubuntu12)
前言
Win10挂载nfs网络文件
1. Ubuntu安装nfs服务器
首先检查系统是否安装nfs服务器
forlinx@ubuntu:~$ ps -e|grep ssh
15390 ? 00:00:00 sshd
如果没有发现 sshd说明没有安装服务器
通过下面命令安装nfs服务,如果已经安装请跳过
forlinx@ubuntu:~$ sudo apt install -y nfs-kernel-server
配置共享文件夹
forlinx@ubuntu:~$ sudo gedit /etc/exports
然后在最后添加一行路径 */home/forlinx/nfs (rw,sync,no_root_squash,no_subtree_check) 指定共享文件夹。注:如果没有这个目录请创建这个目录。
添加属性
forlinx@ubuntu:~$ sudo chmod 777 nfs/ -R
最后启动nfs服务
forlinx@ubuntu:~$ sudo /etc/init.d/nfs-kernel-server restart
- Stopping NFS kernel daemon [ OK ]
- Unexporting directories for NFS kernel daemon… [ OK ]
- Exporting directories for NFS kernel daemon… [ OK ]
- Starting NFS kernel daemon [ OK ]
2. Win10挂载nfs网络文件路径
启用Windows功能的NFS服务
然后打开cmd进行挂载网络文件 命令:mount \\192.168.190.138\home\forlinx\nfs J:
C:\Users\linhs>mount \\192.168.190.138\home\forlinx\nfs J:
最后在Win10的此电脑中显示网络硬盘
参考
[1]: https://blog.csdn.net/siemens_xp/article/details/103469316
[2]: https://blog.csdn.net/qq_34158598/article/details/81976063
[3]: https://blog.csdn.net/yuanlaijike/article/details/78459397