Build an nfs Network File System server in Ubuntu

Source: Internet
Author: User
After learning embedded for so long, I finally started debugging the board. When debugging and referencing a program, I needed Network File System nfs, in this way, you do not need to download the program to the Board every time you compile it. You can download the program directly through the network, which is very convenient. However, my memory is really poor, so I recorded the nfs configuration process for future reference. Configuration process of nfs servers in Ubuntu 1. Install nfs servers and clients sudoapt-getinstallnfs-kernel-servern

After learning embedded for so long, I finally started debugging the board. When debugging and referencing a program, I needed Network File System nfs, in this way, you do not need to download the program to the Board every time you compile it. You can download the program directly through the network, which is very convenient.

However, my memory is really poor, so I recorded the nfs configuration process for future reference.

Configuration process of nfs server in Ubuntu

1. Install the nfs server and client

Sudo apt-get install nfs-kernel-server nfs-common portmap

2. Configure portmap either.

(1) Remove sudo vim/etc/default/portmap-I 127.0.0.1

(2) Select "no" for sudo dpkg-reconfigure portmap"

3. Configure the Mount directory and permissions

Vim/etc/exports

Add/nfsroot * (rw, sync) # nfsroot as the root directory of the nfs server.

4. Update the exports file

Sudo exportfs-r

Errors may occur in steps 2 and 4. Ignore them.

5. Restart the nfs service.

Sudo/etc/init. d/portmap start

Sudo/etc/init. d/nfs-kernel-server

Just restart it.

In this way, the nfs server has been installed. Next we can test sudo mount 127.0.0.1:/nfsroot/mnt.

Related reading:

Build nfs server http://www.linuxidc.com/Linux/2012-10/71930.htm in Ubuntu

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

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.