简体   繁体   English

自动将文件从Windows机器上传到Linux服务器?

[英]Automatically upload a file from Windows machine to Linux server?

I have a web application which process the data collected from different client machines (1000-1500 client machines) and shows the results in graphical format. 我有一个Web应用程序,该应用程序处理从不同客户端计算机(1000-1500客户端计算机)收集的数据,并以图形格式显示结果。

The client machine generates an Excel sheet periodically and this excel sheet needs to be transfered to the server after every 30 minutes. 客户端计算机会定期生成Excel工作表,并且需要每30分钟将此excel工作表传输到服务器。

I want your help to identify the right approach to write this client component (Windows) which will generate and upload the excel sheet automatically after a specified time duration. 我希望您能帮助您确定编写此客户端组件(Windows)的正确方法,该组件将在指定的持续时间后自动生成并上传excel工作表。 I would also like help identifying the right approach for the server component which will recieve and save the data uploaded by clients. 我还希望帮助您确定服务器组件的正确方法,该方法将接收并保存客户端上传的数据。

Should we use an FTP-like implementation for the server side component? 我们是否应该对服务器端组件使用类似FTP的实现?

Since you already have a web application then using the HTTP protocol would be easier because you can (presumably) easily create a new request handler to accept the file. 由于您已经有一个Web应用程序,因此使用HTTP协议会更容易,因为您可以(大概)轻松创建一个新的请求处理程序来接受文件。

Create a new route which accepts POST requests to a URI and takes the request body as the Excel spreadsheet. 创建一个新路由,该路由接受对URI的POST请求,并将请求正文作为Excel电子表格。 The handler for this route will handle the storage and processing of the file. 此路由的处理程序将处理文件的存储和处理。 The client needs only to know the correct route and to properly submit the HTTP request. 客户端只需要知道正确的路由并正确提交HTTP请求即可。

FTP is a somewhat antiquated protocol due to better security and library support for newer ones such as SCP/SFTP and HTTP. 由于更好的安全性和对较新的协议(例如SCP / SFTP和HTTP)的库支持,FTP是一种过时的协议。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何自动定期将文件从Windows计算机上传到UNIX服务器? - how to automatically and periodically upload a file from a windows machine to a unix server? 如何使用Java将Windows中的文件夹上传到Linux计算机 - how to upload a Folder from Windows to Linux machine using Java 如何从 windows 机器到 linux 机器的 FTP 文件 - how to FTP file from windows machine to linux machine 通过 JDBC 从 Linux 机器使用 Windows 身份验证连接到 SQL Server - Connect To SQL Server With Windows Authentication From A Linux Machine Through JDBC 使用Java将文件从Windows计算机复制到Linux计算机的最佳方法 - Best way to copy a file from Windows machine to Linux machine using java 将文件从基于Web的应用程序上传到linux服务器 - File upload from a web-based application to a linux server 如何使用 Java 将文件从 linux 服务器发送到 windows 服务器? - How to send file from linux server to windows server using Java? 使用Java运行时(在Windows计算机上)将linux命令发送到linux服务器 - Using java Runtime (on a windows machine) to send a linux command to a linux server 远程 windows 服务器上的 Execute.bat 文件(Java App 安装在 linux 机器上) - Execute .bat file on a remote windows server (Java App installed on linux machine) Java:从Linux机器访问Windows文件 - Java: Accessing Windows files from Linux machine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM