如何安装s3sync
这似乎是一个出色的脚本,但缺少我似乎无法弄清楚的安装关键部分。也许有人可以帮助新手。
到目前为止我所做的:
- 安装了 s3sync 软件包。
- 下载了 s3 证书
- 下载了 s3 ssl 包
- 并使用 sh ssh.certs.shar 运行它
- 编辑了 s3conf.yml 文件以获得正确的 AWS ID 和密码以及证书文件的路径
当我运行 s3cmd.rb 时出现错误“您没有设置环境变量;请参阅 README.txt”
我同意这一点,但没有写任何有关我指定目的地或目标的信息。
猜测:
- 证书文件必须位于它不在的特定位置,或者位于不正确的证书文件中
- s3conf.yml 可能没有写入正确的信息。
更新: 卸载了所有东西,并将其安装为 gem。确保 s3config.yml 仍在 /etc/s3conf/ 中。但还是什么都没有。
This seems like an excellent script but lacks a key part to its installation I can't seem to figure out. Maybe someone out there can help a newb.
What I've done so far :
- Installed the s3sync package.
- Downloaded the s3 certificate
- Downloaded the s3 ssl package
- ran it with sh ssh.certs.shar
- Edited the s3conf.yml file to have the correct AWS id and password and a path to the cert file
When I run the s3cmd.rb I get the error "You didn't set up your environment variables; see README.txt"
To which I agree, there is no information written regarding where I specify destination or target.
Guesses :
-The cert file has to be in a specific place to which it isn't, or its in the incorrect cert file
-the s3conf.yml may not have the correct information written in it.
UPDATE:
Uninstalled everything, and installed it as a gem. Made sure the s3config.yml is still in /etc/s3conf/ . Still nothing though.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这里有一些 b/s,但我进入了 s3config.rb
发现了这一行:
并将其撕成这样:
完成,问题解决了。
Some b/s here but I went into the s3config.rb
Found this line :
and ripped it apart to this :
Done, problem solved.
是的。未找到
环境变量
。这让我困扰了一段时间。这是因为您在confpath
代码的第一行["#{ENV['S3CONF']}"
, ... 中设置的位置实际上并不是位置.yaml
文件中包含的变量。正如 Trip 所说,将该值硬设置为包含 .yaml 文件的目录为我解决了这个问题。
您实际上可以使用“
export
”来设置值,但实际上,这要容易得多!Yes. The
environment variables
are not being found. This troubled me for a while. It is because the locations you are setting in that initial line ofconfpath
code["#{ENV['S3CONF']}"
, ... is not actually the location of the variables contained in the.yaml
file.As Trip says, hard setting that value to the dir containing the
.yaml
file solved this problem for me.You could actually set the values using '
export
' but really, this is much easier!