After talking about Ubuntu, I found that many articles, such as the windowssamba connection method or the virtual machine environment, cannot implement many network possibilities. I will summarize how to use NFS to connect two Ubuntu servers. Samba is not allowed. You only need to use mount to load to a folder. Ubuntu does not have the nfs service by default. Therefore, you must install Ubuntu without the nfs service by yourself. 1. Install nfs service version
After talking about Ubuntu, I found that many articles, such as the windows samba connection method or the virtual machine environment, cannot implement many network possibilities.
I will summarize how to use NFS to connect two Ubuntu servers. Samba is not allowed. You only need to use mount to load to a folder.
Ubuntu does not have the nfs service by default. Therefore, you must install Ubuntu without the nfs service by yourself.
1. Install the nfs service version
Apt-get install nfs-kernel-server
2. Modify the nsf configuration file
Vi/etc/exports
Add the nfs Directory format to the file as follows:
/Share * (sync, rw, no_root_squash)
Save disk and exit
3. Create an nsf directory under the root directory
View plaincopy to clipboardprint?
Mkdir/share
Mkdir/share
Modify the permission of this directory
Chmod 777-R/armnfs
4. Start nfs again
/Etc/init. d/nfs-kernel-server restart
5. Test nsf
Sudo mount-t nfs localhost:/share/mnt
(Not tested by myself) used for Embedded mounting
Mount-o nolock 192.168.1.99:/share/new8120/mnt/net
Nfs-common must be installed on the client. The dependent package will be installed by the way. If you do not have a network, do the following.
Sudo apt-get install nfs-common
Note:
1. All characters in the file must be halfwidth characters.
2. The server needs to install the service package. Clients are not allowed.
3. This is a connection between two Ubuntu instances. There may be methods for accessing NFS in windows, but that is the sequent .. Remember.