In UBUNTU, how to use NFS to share folders-Linux Enterprise applications-Linux server applications is described below. Recently, we developed ARM Linux to use NFS to upgrade the target board's file system. Therefore, it is necessary to start NFS on a computer. In fact, this method has never been used. In the past, the kernel and file system were downloaded through a serial port, so the speed was slow. I am too lazy to study the NFS update method. I have read some documents and posts related to the NFS service before I start. My memory is not very good. record it for search.
Modify the/etc/exports file and add the following lines:
Format: [shared directory] [host name or IP address] (parameter, parameter)/home/armnfs 192.168.1.6 (rw)
This explains: armnfs is a directory created under my home, used to store the target file system, that is, the shared directory. To whom to share? The IP address next to it. The permission is readable and writable.
Start NFS:
#/Etc/init. d/nfs-kernel-server start the other two useful parameters are stop and restart.
The client mounts the shared folder on the NFS server:
# Mount [server IP]:/[share dir] [local mount poin]
Example: # mount 192.168.1.5:/home/armnfs/mnt/arm
You can access the folder on the server by accessing/mnt/arm on the client.
Of course, NFS still has many parameters, which are of no use to me, so I will ignore them. However, there are two files worth mentioning:
/Etc/host. allow ------------> List of IP addresses of the client that can be accessed/etc/host. deny ----------> List of IP addresses of the client that cannot be accessed.
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