Set up nfs in RHEL6
Environment: RHEL6.2 Enterprise Edition VMware8.0 www.2cto.com server configuration steps: (1) if nfs is not installed on your computer, you need to install it using an rpm package. Generally, there are three packages. (2) (because my linux does not have graphical configuration, I can only edit the configuration in text mode) First, edit the script:
Www.2cto.com is the place where the image is drawn. This sentence means that I want to share/home/share. The accessible IP address is 192.168.241, which has readable and writable attributes, writes data to files in real time. (3) set shared folder properties: (4) Restart nfs: client configuration steps: (1) mount the shared folder to the/mnt directory to determine whether nfs is configured successfully: Note: this warning is displayed because I have mounted it before. If you mount it for the first time, there is no prompt. I previously created three folders a, B, and c in the/home/share directory, and created three files 1, 2, 3 in the/mnt directory, if the nfs configuration is successful, you should be able to see the three files in the/home/share and/mnt directories: At this point, the nfs configuration is successful!