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)