Home > Back-end > Encounter a problem, how in the Java background copy an image to another server
Encounter a problem, how in the Java background copy an image to another server
Time:12-01
Demand is like that, I have two servers, a back-end systems in server 1, I upload an image to the server through the system 1, and then like a review in the system, after review by the image directly to server 2, the question now is I don't know how to upload the picture from the server 1 server 2, had not thought, strives for the great god do me a favor
CodePudding user response:
I can only think of this centralized approach 1. Through the system of the rsync command, such as timing synchronization path of the specified file (approval file path? 2. Using NFS, such as the two servers the same NFS mount, to achieve the sharing, 3. The server 2 provides a upload file API, server 1 2 upload file API call server files,