Windows Mount NFS File system

Source: Internet
Author: User

Host

Operating system

IP Address

Package

N FS host

Centos7.2

192.168.190.128

Nfs-utils, Rpcbind

Windows Client

Windows Server 2008

192.168.190.129

Network File system

Note: The following experiments all shut down firewalls and other security mechanisms

NFS Host Operations:

# Install Nfs-utils and management tools using Yum 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 Startrpcbind.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=" Https://s1.51cto.com/wyfs02/M02/96/2C/wKiom1kdk4-CGe_aAAF0mHbvrwk206.png "title=" 1.png "Style=" WIDTH:740PX;HEIGHT:416PX; "hspace=" 0 "height=" 416 "border=" 0 "width=" 740 "vspace=" 0 "alt=" Wkiom1kdk4-cge_ Aaaf0mhbvrwk206.png "/>


650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/96/2C/wKioL1kdk-LwAlmDAACN_ZBbKO8503.png "title=" 2.png "Style=" width:740px;height:548px; "hspace=" 0 "height=" 548 "border=" 0 "width=" 740 "vspace=" 0 "alt=" Wkiol1kdk-lwalmdaacn_zbbko8503.png "/>


650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/96/2C/wKioL1kdk_rynGDEAACN_9lOrm4418.png "title=" 3.png "Style=" width:740px;height:540px; "hspace=" 0 "height=" 540 "border=" 0 "width=" 740 "vspace=" 0 "alt=" wkiol1kdk_ Ryngdeaacn_9lorm4418.png "/>


After the installation is complete, you need to type "Win + R" key to open cmd

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/96/2C/wKiom1kdlDyBV1ipAAC57-_XrfM221.png "title=" 4.png "Style=" WIDTH:740PX;HEIGHT:416PX; "hspace=" 0 "height=" 416 "border=" 0 "width=" 740 "vspace=" 0 "alt=" Wkiom1kdldybv1ipaac57-_xrfm221.png "/>

# 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=" Https://s5.51cto.com/wyfs02/M02/96/2C/wKioL1kdlGnAaRV0AADAZ8NWWSY440.png "title=" 5.png "Style=" width:730px;height:451px; "hspace=" 0 "height=" 451 "border=" 0 "width=" 730 "vspace=" 0 "alt=" Wkiol1kdlgnaarv0aadaz8nwwsy440.png "/>

Open Computer discovery has been mounted successfully

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/96/2D/wKiom1kdlIqjK5owAAFSc-YkqGQ238.png "title=" 6.png "Style=" WIDTH:740PX;HEIGHT:416PX; "hspace=" 0 "height=" 416 "border=" 0 "width=" 740 "vspace=" 0 "alt=" Wkiom1kdliqjk5owaafsc-ykqgq238.png "/>

To boot automatically mount you can click on "Computer" → click "Map network Drive" → "input network share file path" → "complete"

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/96/2D/wKiom1kdlKLiA8HpAAGBbHgAyn8326.png "title=" 7.png "Style=" WIDTH:740PX;HEIGHT:416PX; "hspace=" 0 "height=" 416 "border=" 0 "width=" 740 "vspace=" 0 "alt=" Wkiom1kdlklia8hpaagbbhgayn8326.png "/>

Shared file z is still mounted after reboot

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/96/2C/wKioL1kdlMCBpE5CAAFdwiq4GaU193.png "title=" 8.png "Style=" WIDTH:740PX;HEIGHT:416PX; "hspace=" 0 "height=" 416 "border=" 0 "width=" 740 "vspace=" 0 "alt=" Wkiol1kdlmcbpe5caafdwiq4gau193.png "/>

Recently the company asked to use NFS for a simple set up, a simple record

This article is from the "Linux" blog, so be sure to keep this source http://bella41981.blog.51cto.com/10603572/1927315

Windows Mount NFS File system

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.