问题描述
我使用AWS的第一次和刚刚安装博托的蟒蛇。我卡在台阶那里通知:到:
你可以把这个文件或者在/etc/boto.cfg全系统使用或在执行命令的〜/ .boto用户的主目录。
老实说,我不知道该怎么做。首先,我找不到boto.cfg和第二我不知道该命令的第二个选项来执行。
此外,当我将应用程序部署到我的服务器,我假设我需要做同样的事情有太多......
,前者只是意味着你可以创建一个名为 boto.cfg
在目录的/ etc
(即配置文件这并不一定是已经存在,这取决于如何博托已安装在特定系统上)。
后者确实措辞有点可惜 - 〜/ .boto
意味着博托就会查找名为的配置文件 .boto
执行命令(如Python脚本),这是促进博托库的用户的主目录中。
您可以了解更多有关这方面的博托wiki文章 BotoConfig ,例如:对于眼下的问题:
你确实需要prepare您的应用程序部署到并在服务器上的相应配置文件。
祝你好运!
I'm using AWS for the first time and have just installed boto for python. I'm stuck at the step where it advices to:
"You can place this file either at /etc/boto.cfg for system-wide use or in the home directory of the user executing the commands as ~/.boto."
Honestly, I have no idea what to do. First, I can't find the boto.cfg and second I'm not sure which command to execute for the second option.
Also, when I deploy the application to my server, I'm assuming I need to do the same thing there too...
The former simply means that you might create a configuration file named boto.cfg
within directory /etc
(i.e. it won't necessarily be there already, depending on how boto has been installed on your particular system).
The latter is indeed phrased a bit unfortunate - ~/.boto
means that boto will look for a configuration file named .boto
within the home directory of the user executing the commands (i.e. Python scripts) which are facilitating the boto library.
You can read more about this in the boto wiki article BotoConfig, e.g. regarding the question at hand:
You'll indeed need to prepare a respective configuration file on the server your application is deployed to as well.
Good luck!
这篇关于获得证书文件中的boto.cfg为Python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!