Simple setting of shared folders through NFS in Ubuntu Linux

Source: Internet
Author: User

For more information about how to configure shared folders through NFS, see link 1 and link 2.

Perform the following steps to configure the Server:

1. Install NFS server software

Sudo apt-get install nfs-kernel-server

2. Create a shared directory and change the directory permission to 777.

Mkdir-p share
Chmod 777 share

For example


3. Preparation file vi/etc/exports

Sudo vi/etc/exports

Add the following entries

/Home/lisp/share * (rw, sync, no_root_squash)

/Home/lisp/share is the shared directory, and rw is the read/write operation.

4. Enable the nfs service

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

On the Client side, configure the following

1. Install nfs-common (execute the following command on another machine)

Sudo apt-get install nfs-common

2. Remote mount

Sudo mount 10.141.247.small:/home/lisp/share/media/share

Mount the remote directory to local/media/share. The result is as follows:

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.