NFS service enabling Process (1)

Source: Internet
Author: User

In many systems, we need to manually enable and set the NFS service. Here we will explain the relevant settings based on the Ubuntu system. Let's take a look at the specific process. Ubuntu does not have the nfs service by default, so you need to install it yourself.

1. Install the nfs service version

Apt-get install nfs-kernel-server

2. Modify the nsf service configuration file

Vi/etc/exports

Add the nfs Directory format to the file as follows:

/Armnfs * (sync, rw)

Save disk and exit

3. Create an nsf directory under the root directory

Mkdir/armnfs

Modify the permission of this directory

Chmod 777-R/armnfs

4. Start nfs again

/Etc/init. d/nfs-kernel-server restart

5. Test nsf services

Mount 192.168.1.99:/armnfs/abc

Used for Embedded mounting

Mount-o nolock 192.168.1.99:/armnfs/new8120/mnt/net

Note: In the Kernel configuration

Networking options ---> options

Enable TCP/IP networking

Enable IP: kernel level autoconfiguration

In General setup ---> options,

Default kernel command string: Default kernel command line)

Add characters in green

Root =/dev/nfs rw nfsroot = 192.168.1.99:/armnfs/ip = 192.168.1.201 init =/linuxrc console = ttyS0

File system ---> Network File System ---> Option

Enable NFSfile system support

Enable Provide NFSv3 client support

Enable Root file system on NFS


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.