A simple tutorial for building an NFS server in linux (1)

Source: Internet
Author: User

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


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.