如何传输AWS S3和EC2 AWS之间的文件文件、AWS

由网友(不情不侣不爱你)分享简介:我使用AWS EC2实例。 I am using AWS ec2 instance. 在这种情况下,我得到的一些文件。On this instance i am resulting some files.这些操作是由用户数据完成的。These operations are done by user data....

我使用AWS EC2实例。

I am using AWS ec2 instance.

在这种情况下,我得到的一些文件。

On this instance i am resulting some files.

这些操作是由用户数据完成的。

These operations are done by user data.

现在我想通过写code。在用户数据本身存储在S3上的那些文件。

Now i want to store those files on s3 by writing code in User data itself.

所以,我怎么能存储在S3上这些文件?

So how can i store those files on s3?

有任何教程就可以了?

推荐答案

有多种方式将文件发送到S3。我列出他们下面一起安装和文档有关的地方。

There are a number of ways to send files to S3. I've listed them below along with installation and documentation where relevant.

S3CMD :( http://s3tools.org/s3cmd )您可以安装此在Debian / Ubuntu的轻松通过apt-get安装s3cmd,然后运行命令行。你可以纳入一个bash脚本或程序这一点。

S3CMD: (http://s3tools.org/s3cmd) You can install this on debian/ubuntu easily via apt-get install s3cmd, then run from command line. You could incorporate this into a bash script or your program.

S3FS :(http://www.pophams.com/blog/howto-setups3fsonubuntu1104x64和https://$c$c.google.com/p/s3fs/wiki/InstallationNotes) ...这挂载的S3存储,因此它看起来就像一个本地磁盘。这需要一些更多的努力来建立,但一旦磁盘被安装,你不需要做任何特别的事情中的文件的斗。

S3FS: (http://www.pophams.com/blog/howto-setups3fsonubuntu1104x64 and https://code.google.com/p/s3fs/wiki/InstallationNotes) ... This mounts an s3 bucket, so that it looks just like a local disk. It takes a little more effort to setup, but once the disk is mounted, you don't need to do anything special to get the files in your bucket.

如果您使用的CMS(允许使用Drupal作为一个例子),你可能拥有的使用模块来处理你的水桶如的

阅读全文

相关推荐

最新文章