Installation of the Centos 7 NFS Network File system service

Source: Internet
Author: User

Lab Environment >>>>>>>>>

NFS server: (nfs-server) 192.168.100.2

Client for NFS: (nfs-client) 192.168.100.3

Introduction to NFS >>>>>>>>>>

NFS is the abbreviation for the network file system, which is the web filesystem. A contract for the decentralized file system,

developed by Sun Company and announced in 1984. the function is to allow different machines, different operating systems to interact with each other through the network

sharing of individual data let the application in the client Access data on the server disk over the network, is a way to implement disk file sharing among Unix-like systems.

The basic principle of NFS is "allow different clients and services to share the same file system through a set of RPCs",

It is independent of the operating system, allowing different hardware and operating systems to share the file together.

NFS relies on the RPC protocol during file transfer or information transfer. RPC, remote procedure invocation (Procedure call) is a mechanism that enables clients to perform programs in other systems.

NFS itself does not provide the protocol and functionality for transmitting information, but NFS allows us to share information over the network, because NFS uses some other transport protocols.

and these transport protocols are used to this RPC feature. It can be said that NFS itself is a program that uses RPC. Or, NFS is also an RPC SERVER. so just use NFS.

Place to start the RPC service, Either NFS server or NFS CLIENT. This allows the server and client to implement the program port correspondence via RPC.

You can understand the relationship between RPC and NFS: NFS is a file system, and RPC is responsible for the transmission of information.

>>>>> Service Side

1, install Nfs-utils service on the server, use Yum installation, will automatically solve the required rpcbind, quota and other dependencies

Yum  Install nfs-utils-y    // installing NFS service

2, configure the NFS service, edit the NFS configuration file/etc/exports, join the directory that needs to be shared

[[email protected] ~]# vim/etc/exports/data * (rw,sync)      //* You can specify a client IP that can be connected 

3, Start the NFS service, it is important to note that before you start the NFS service, you must first start the Rpcbind service

[[Email protected] ~]# systemctl start rpcbind.service[[email protected]-server ~]# systemctl start Nfs-server.service

>>>>> Client

1, Mount the NFS server side of the shared directory, the local side also have to install the Nfs-utils service, after installation, directly using the Mount command mount can

Yum  Install nfs-utils  -y                // client also needs to mount NFSMount192.168.  100.3:/data/opt    // mount NFS Share on server, or use-t to specify type

Respect for the work of others reproduced please be sure to indicate the source: http://www.cnblogs.com/5201351/p/4829114.html

Installation of the Centos 7 NFS Network File system service

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.