Linux NFS server builds and uses Windows,macos system mount directory

Source: Internet
Author: User

Reference Blog: www.linuxidc.com/Linux/2017-02/141150.htm

1 Installing NFS Services

sudo apt-get install nfs-kernel-server Nfs-common

2 Setting Mount directory permissions

sudo vim/etc/exports

Assuming that the NFS shared directory is/HOME/RYAN/NFS, allowing all clients access, the/etc/exports file can be written as:

/home/ryan/nfs * (Rw,sync,no_subtree_check)

Restart Service

Sudo/etc/init.d/nfs-kernel-server restart

3 Mount NFS Directory

To install the MOUNT,NFS client first

sudo apt install mount Nfs-common

The simplest format for mounting commands is

Mount NFS Server IP: Shared directory local mount point directory 1

4 Mount under Win7

    1. Open the Control Panel and locate the program.

    2. Locate the Turn Windows feature on or off.

    3. Locate the NFS service and tick install.

    4. 5

      Go back to the command prompt and enter the SHOWMOUNT-E + server IP address to confirm the mount point.

    5. Then mount with the Mount command, and the following z: is the assigned letter.

      But there is a problem that has not been solved, is the Win7 will have garbled problems

5 under the Mac system

There are two ways

1sudo mount-o resvport 192.168.1.104:/media/***/mnt

2 on the server side

sudo vim/etc/exports

Put/home/ryan/nfs * (Rw,sync,no_subtree_check)

/home/ryan/nfs * (rw,sync,insecure)

Linux NFS server builds and uses Windows,macos system mount directory

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.