Connect two Ubuntu instances based on NFS Communication

Source: Internet
Author: User
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.

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.