Linux Services-Build NFS

Source: Internet
Author: User

Task target: Binary installation NFS, as shared storage mounted in three Web site root directory, on any one of the Web modified results, the remaining two can be seen

First to install the NFS Service, NFS as the name implies, is the need for speed, oh no! Is the meaning of the Network file service

Installing NFS services using the Yum install Rpcbind nfs-utils-y

My NFS service is already installed, so I can configure it directly.

The above is not very understanding, probably means that the shared directory is/webindex allow 192.168.30.0 segments of the host to read and write

Adding Rpcbind and NFS services to boot

Open these two services

Verify that the service is turned on correctly:

Service turned on normally

Then we look at the IP address of this machine:

No, all right, use Ifconfig to configure the IP address and subnet mask

To mount the NFS directory for the first virtual machine on a second virtual machine

Continue to mount the NFS directory for the first virtual machine on the 3rd, 4 virtual machines

And then we'll experiment with it, create a a.html file on the NFS server, view it on 234 virtual machines

Create file a.html, write o! Yeah

The second virtual machine can see the new a.html file normally

You can see the third one.

The fourth one's done.

There are several Oolong dragons in this configuration:

1, exports file (rw,sync,fsid=0) is a comma is not a dot

2, the shared directory in the exports file is case-sensitive

Linux Services-Build NFS

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.