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