简体   繁体   English

如何在 Windows Amazon EC2 实例中共享文件

[英]How to share file in Windows Amazon EC2 instance

I am using an Amazon EC2 instance running Windows.我正在使用运行 Windows 的 Amazon EC2 实例。

How can I share a file to external users that are not in the same network but they have internet access?如何将文件共享给不在同一网络中但可以访问 Internet 的外部用户? If there is an option by doing it programmatically, it will be very useful.如果有一个以编程方式执行的选项,它将非常有用。

Thank you.谢谢你。

Your situation is not specific to Amazon EC2.您的情况并非特定于 Amazon EC2。 The answer would be applicable to any Windows computer on the Internet.答案将适用于 Internet 上的任何Windows 计算机。

The easiest way for a computer to "share a file to external users" would be via a web server.计算机“与外部用户共享文件”的最简单方法是通过 web 服务器。 Users could simply click a link in the web browser and the file would download.用户只需点击 web 浏览器中的链接,即可下载文件。

However, since you are running on AWS, you might want to take advantage of Amazon S3 , which is a an object storage service.但是,由于您在 AWS 上运行,您可能希望利用 Amazon S3 ,它是一种 object 存储服务。 You could upload the file from the Windows computer to Amazon S3 and then make the file publicly available via a URL.您可以将文件从 Windows 计算机上传到 Amazon S3,然后通过 URL 使文件公开可用。 This way, your users will be able to access the file without having to connect to the Windows computer.这样,您的用户将能够访问该文件,而无需连接到 Windows 计算机。 It would also be more reliable and could handle more traffic than the Windows computer.它也将比 Windows 计算机更可靠并且可以处理更多流量。 You can programmatically upload to an Amazon S3 bucket.您可以以编程方式上传到 Amazon S3 存储桶。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM