We have introduced a lot in the use of NFS servers. Here we will mainly explain how to build an NFS server in linux. First, we need to know what the NFS service is, and then introduce its advantages and the construction process in detail.
I. What is an NFS service?
NFS is short for Network File System, that is, Network File System.
The Network File System is one of the file systems supported by FreeBSD, also known as NFS. NFS allows a system to share directories and files with others on the network. by using NFS, users and programs can access files on the remote system just like accessing local files.
Ii. Advantages of NFS
1. The local workstation uses less disk space, because the data can be stored on a machine and accessed through the network.
2. the user does not have to have a home directory in each network machine. The Home directory can be placed on the NFS server and available everywhere on the network.
3. storage devices such as soft drive, CDROM, and Zip & reg; can be used by other machines on the network. This can reduce the number of removable media devices on the network.
NFS has at least two main parts: one server and one or more) client. The client remotely accesses the data stored on the server. to work properly, some processes need to be configured and run.
Iii. Build an NFS server in linux
1. Server Side
Install the NFS service program
Yum install-y nfs-utils
Write configuration file
Vim/etc/exports
Write
/Music 192.168.0.0/255.255.255.0 (rw, sync)
Format:
The IP address, mask, or domain name permission shared by the Directory to be shared)
Start the service
/Etc/init. d/portmap restart
/Etc/init. d/nfs restart
Chkconfig nfs on
Chkconfig portmap on