Linux NFS Introduction

Source: Internet
Author: User

Developed by Sun, used between different systems, so its design is not related to the host system, users want to use remote files, only need mount–t NFS can take the remote files to local, like the use of local files, very convenient.

It uses a C/s architecture that uses RPC and XDR (external data representations) to exchange data between different computers.

When you start the NFS file server,/etc/rc.local automatically launches the EXPORTFS program, specifying the files or directories that can be exported, and of course you can start them yourself.

sudo exportfs–rv

Installing NFS

#check whether install Nfsrpm-qa | grep NFS

Start NFS

Service NFS Start

Configure the server

The server configuration requires editing the/etc/exports. config file, which lists the directories that the server wants to share with the outside.

Dir IP (rules)

Sample

/app * (Rw,sync,insecure,root_squash)

Client Mount:

Mount–t NFS Nfs_volume (ip:/dir) Local_dir

Mount–t NFS Ip:/app/mnt

Uninstalling NFS:

Unmount

Linux NFS Introduction

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.