Set up NFS in RHEL6

Source: Internet
Author: User
Environment: RHEL6.2 Enterprise Edition VMware8.0 server configuration steps: (1) if nfs is not installed on your computer, you need to install it using an rpm package, which is generally three packages. (2) (because my linux does not have graphical configuration, I can only edit the configuration in text mode) First, edit the Script: the place where the line is to be edited, I want to share/home/share. The accessible IP address is 192.168.241, Which is readable.

Environment:

RHEL6.2 Enterprise Edition

VMware8.0

Server configuration steps:

(1) If nfs is not installed on your computer, you need to install it using an rpm package, which is generally three packages.

(2) (because my linux does not have graphical configuration, I can only edit the configuration in text mode) First, edit the script:

The address to edit is the place where the line is drawn. This sentence means that I want to share/home/share. The accessible IP address is 192.168.241, which has a readable and writable attribute, writes data to files in real time.

(3) set shared folder attributes:

(4) restart the nfs service:

Client configuration steps:

(1) mount the shared folder to the/mnt directory to determine whether nfs is configured successfully:

Note: The warning is displayed here 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 nfs is configured successfully, you should be able to see these three files in the/home/share and/mnt directories:

At this point, nfs configuration is successful!

For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10

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.