个人工具
登录
查看“UbuntuHelp:EC2APITools”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:EC2APITools”的源代码
来自Ubuntu中文
←
UbuntuHelp:EC2APITools
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/EC2APITools}} {{Languages|UbuntuHelp:EC2APITools}} To install the EC2 API Tools for an older version of Ubuntu, please run the following steps: <ol><li>Install the sun-java5-jre package. <<FootNote(This is not an open source version of Java.)>> <<FootNote(You will need to have multiverse enabled in apt sources.)>> Use <Tab> <Enter> to accept license agreement.</li></ol> <pre><nowiki> sudo apt-get install sun-java5-jre </nowiki></pre> <ol><li>Download the Amazon EC2 Command-Line Tools from the Amazon EC2 resource Center.</li></ol> <pre><nowiki> wget http://s3.amazonaws.com/ec2-downloads/ec2-api-tools-1.3-34128.zip </nowiki></pre> <ol><li>Unzip the ec2-api-tools.</li></ol> <pre><nowiki> sudo apt-get install unzip unzip ec2-api-tools-1.3-34128.zip </nowiki></pre> <ol><li>Make sure you have the following environment variables set up in your shell profile. This is accomplished by adding the following lines to your ~/.bashrc if you use bash as your shell:</li></ol> <pre><nowiki> export EC2_HOME=$HOME/ec2-api-tools-1.3-34128 export PATH=$PATH:$EC2_HOME/bin export EC2_PRIVATE_KEY=$HOME/<where your private key is>/pk-XXXXXXXXXXXXXXXXXXXXXXXXXXXX.pem export EC2_CERT=$HOME/<where your certificate is>/cert-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.pem export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun/ </nowiki></pre> <ol><li>Check to see if it's working by running the following command:</li></ol> <pre><nowiki> ec2-describe-images -o self -o amazon </nowiki></pre> Note: If this fails due to "Client.AuthFailure" then ensure you have signed up for both AWS and ec2 with amazon.com, and have provided valid payment details. Also double check that the EC2_PRIVATE_KEY and EC2_CERT point to the correct locations. <ol><li>To use public AMIs you have to generate an ssh key. Run the following command which will also save the private key returned to a local file called ec2-keypair:</li></ol> <pre><nowiki> ec2-add-keypair ec2-keypair > ec2-keypair.pem </nowiki></pre> <ol><li>Make sure the permissions on the file is 600.</li></ol> <pre><nowiki> chmod 600 ec2-keypair.pem </nowiki></pre> === Footnotes === [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:EC2APITools
。