How to share remote folders with Linux (the implementation method of log suit query)

Source: Internet
Author: User

LAN has two Linux A, B, where A's root directory is/sys/upload, want to based on file sharing, on a and B are set up the same directory/SYS/ABCD, so that access to/SYS/ABCD, as the operation of local files as the operation of/SYS/ABCD, This requires mapping between the/sys/upload folder of the A machine and the/SYS/ABCD folder of A and B, respectively:
For a,/SYS/ABCD points to the local/sys/upload
For B, you need to share the/sys/upload of A to B and share it under directory/SYS/ABCD.
The ultimate goal is: To make the application app on both machines, can not feel the folder/sys/abcd is different, in order to operate local files in the way the/sys/upload directory on a machine

=============================================================================================================== ======================

Implementation method: Only need to share the directory of a to be able to, two computers in the network on the line
First in a
Vi/etc/exports
/sys/upload * (rw)
Service NFS Restart
And then to B.
CD/
Ln-s/NET/A's Ip/sys/sys
You can do it.

=============================================================================================================== ======================

inquiry:
This enables the/sys/upload of a to be shared to B, but how to point A, b/sys/abcd to the/sys/upload directory of a?
Chase Answer:
Then build 2 link
Ln-s/net/a/sys/upload/sys/upload
Ln-s/NET/A/SYS/UPLOAD/SYS/ABCD

How to share remote folders with Linux (the implementation method of log suit query)

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.