Nfs server configuration process-RedHatAS5 Environment

Source: Internet
Author: User
Nfs file system is short for NetworkFileSystem, which is a network file system. 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. There are two types of applications in the embedded Linux system: 1. mount a directory of the virtual machine to a directory of the Development Board through the network to modify and compile the virtual machine, run and verify on the development board 2. Mount the embedded root stored on the virtual machine through the network

Introduction to nfs file systems

NFS is short for Network File System, which 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.

There are two types of applications in the embedded Linux system:

1. mount a virtual machine directory to a directory on the Development Board through the network to modify and compile the virtual machine, and run and verify the directory on the Development Board.

2. Mount the embedded root file system directly stored on the virtual machine through the network to verify and modify the root file system and applications.

In either case, the virtual machine or Linux on the physical machine is used as the server, and the configuration process is the same. We use Red Hat AS5 as an example to explain the configuration process, for other versions of Linux, please search for information for configuration.

RedHatAS5 nfs server configuration

1. Select the following options during system installation:

2. After the installation is complete, you can see the following options in the System Menu:

2. Enable NFS:

System -- Management -- server settings -- service

Check, start, and save the nfs service

3. Configure the nfs server shared folder

4. nfs service restart (optional)

Sometimes it takes a long time. Due to the network environment, the nfs service cannot be normally executed. You can run the following command to restart the nfs service.

# Service nfs restart

5. Service Test-local mounting

Run the following command on the terminal to test whether the nfs server works correctly.

# Mount-o nolock 192.168.220.XX:/home/mnt

// Run on the local machine or another machine, mount the home directory, and access the/mnt directory. If you can see the files in the/home directory, the nfs server works properly.

Note:

Because the/directory is set earlier, all directories can be mounted.

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.