Guide |
As we all know, NFS and SMB are file sharing protocols on Linux servers, SMB uses a protocol for the samba protocol and file sharing for Windows, which means that SMB is a cross-platform file sharing protocol, The NFS individual is considered a file sharing protocol for Linux systems or class Uinx systems. Recently saw the web blog found Windows system can also mount NFS system, can't help sharing to everyone.
|
Experimental environment
Host |
Operating system |
IP Address |
Package |
NFS Host |
Centos7.2 |
192.168.190.128 |
Nfs-utils, Rpcbind |
Windows Client |
Windows Server 2008 |
192.168.190.129 |
Network File system |
NFS Host Operations
# use Yum to install Nfs-utils and Administrative Tools Rpcbind[[email protected] ~]# yum-y install nfs-utilsrpcbind# Create a shared folder [[email protected] ~]# mkdir /nfs[[email protected] ~]# vim/etc/exports# NFS is a shared directory name, * refers to all hosts, RW refers to read and write permissions, if required read-only can be changed to RO/NFS * (rw)
# Note: Set access permissions for files that need to be shared, because NFS will default to all access users to nobody users, but the user we just created does not have access to the files that need to be shared, which is set to full access, If you need to use the network again, you need to set the permissions to be available for use in the production environment.
[[email protected] ~]# chmod 777/nfs[[email protected] ~]# systemctl start nfs.service[[email protected] ~]# Systemctl St Artrpcbind.service
Windows Server R2 Operations
Open "Control Panel" → Click "role" → Click "Add role" → Click "Next" → Click "File Services" → Click "Next" → Click "Next" → select "Network file system service" → Click "Next" → Click "Install" as shown in:
650) this.width=650; "src=" Http://www.linuxprobe.com/wp-content/uploads/2017/05/1-2.png "width=" 640 "height=" 359 " class= "Alignnone size-full wp-image-70201" style= "Height:auto;"/>
650) this.width=650; "src=" Http://www.linuxprobe.com/wp-content/uploads/2017/05/2-1.png "width=" 662 "height=" 489 " class= "Alignnone size-full wp-image-70202" style= "Height:auto;"/>
650) this.width=650; "src=" Http://www.linuxprobe.com/wp-content/uploads/2017/05/3-1.png "width=" 645 "height=" 464 " class= "Alignnone size-full wp-image-70204" style= "Height:auto;"/>
After the installation is complete, you need to type "Win + R" key to open cmd
650) this.width=650; "src=" Http://www.linuxprobe.com/wp-content/uploads/2017/05/4-1.png "width=" 645 "height=" 364 " class= "Alignnone size-full wp-image-70206" style= "Height:auto;"/>
# Note: 192.168.190.128 is the address of the NFS server,/NFS is the shared directory of the server, X is the mount point of NFS in Windows
Input: Mount 192.168.190.128:/nfs X:
650) this.width=650; "src=" Http://www.linuxprobe.com/wp-content/uploads/2017/05/5-1.png "width=" 666 "height=" 412 " class= "Alignnone size-full wp-image-70207" style= "Height:auto;"/>
Open Computer discovery has been mounted successfully
650) this.width=650; "src=" Http://www.linuxprobe.com/wp-content/uploads/2017/05/6.png "width=" 667 "height=" 374 " class= "Alignnone size-full wp-image-70209" style= "Height:auto;"/>
To boot automatically mount you can click on "Computer" → click "Map network Drive" → "input network share file path" → "complete"
650) this.width=650; "src=" Http://www.linuxprobe.com/wp-content/uploads/2017/05/7.png "width=" 664 "height=" 374 " class= "Alignnone size-full wp-image-70227" style= "Height:auto;"/>
Original address: http://www.linuxprobe.com/windows-mount-nfs.html
This article is from the "blog" blog, please be sure to keep this source http://coderhsf.blog.51cto.com/12629645/1932972
Mount NFS shares above windows