Ubuntu 16.04 NFS Service Build-up

Source: Internet
Author: User

NFS services are file sharing between Linux and Linux, and the NFS service is easy to build.

Now how to build an NFS service in the ubuntu16.04 system, Ubuntu is easier to build than red Hat.

1. Install NFS Service

sudo Install Nfs-common

2. Modify the configuration file

sudo vim/etc/exports

The contents of the amendment are as follows:

/home * (rw,sync, No_root_squash)

The meaning of each paragraph is as follows, according to the actual modification

/Home   : Shared directory *       : Specifies which users can access             *   All users who            can ping the same host 192.168.  1. *   Specify the network segment in which the user can            mount the 192.168.  1.12  Only the user can mount (RO,sync, No_root_squash):  permission        ro: Read-only        RW: Read/write          sync :  sync        no_root_squash: Do not lower the root user    's permissions 5 exports view

3. Restart the NFS service

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

  This is where the NFS service is built.

  The following describes how clients access the server

1, check the client and server network connectivity (ping command)

Ping + Host IP

2. View the shared directory on the server side

SHOWMOUNT-E + Host IP

192.168.1.93192.168.  1.93:/home *   

3. Mount the directory to a local

192.168.1.93:/home  

4. Visit

Access the local MNT directory to access the directory shared by the server.

Ubuntu 16.04 NFS Service Build-up

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.