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