Construction of Embedded Linux development environment (II.) Construction of--NFS server

Source: Internet
Author: User

Construction of Embedded Linux development environment (II.) Construction of--NFS server

System environment:Ubuntu 14.04 Server AMD64

1. Installation

Apt-get Install Nfs-common Nfs-kernel-server

2. Modify the configuration file /etc/exports

/home/ NFS 192.168.0. 0/24 (Rw,sync,no_subtree_check)

3. Restart the NFS server

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

4. View NFS settings

SHOWMOUNT-E localhost

5. NFS mount use

Mount-t NFS 127.0.0.1:/home/nfs/mnt

umount/mnt/

6. The Development Board uses NFS mounts

Start the Development Board, enter the system, and configure the Development Board . IP Address, ping the NFS server's IP, make sure the network is connected and mount the NFS directory for the NFS server with the Mount command.

Mount-t NFS 192.168.1.3:/home/nfs/mnt-o Nolock

7. Other

If you need to add a new NFS shared directory in use, you can modify the/etc/exports file directly. After modifying the file, you can use the Exportfs command to read the/etc/exports file and re-share the output without restarting the NFS service . the Exportfs command syntax is as follows:

Exportfs [-aruv]

Option Description:

-A: All Mount ( or uninstall )/etc/exports settings;

-R: Re -Mount the/etc/exports settings;

-U: Uninstalls a directory;

-V: Displays the shared directory at the time of output.



This article is from the "Tianshan Old Demon" blog, please be sure to keep this source http://9291927.blog.51cto.com/9281927/1783899

Construction of Embedded Linux development environment (II.) Construction of--NFS server

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.