ec2:elb-create-lb-listeners 失败

发布于 2024-09-29 04:43:33 字数 559 浏览 7 评论 0原文

有人让亚马逊的弹性负载平衡命令:elb-create-lb-listeners 工作吗?

这是解决 ec2 问题的正确网站吗:serverfault 会更好吗?亚马逊的论坛似乎很慢...

我明白:

PROMPT:~ acct$ elb-create-lb-listeners <MYLBNAME> --listener "protocol=http,lb-port=80,instance-port=80"
Unable to find a $JAVA_HOME at "/usr", continuing with system-provided Java...
elb-create-lb-listeners:  Malformed input-Unknown command: 'CreateLoadBalancerListeners'.
Use '--help' to see a list of valid commands.

...同意吗?我需要下载其他东西吗?我的 ELB cli 是 1.0.10.0,并且 AWS_ELB_HOME 设置正确。

谢谢! 科林

Has anyone gotten amazon's elastic load balancing command: elb-create-lb-listeners to work?

Is this the right site for ec2 questions: would serverfault be better? Amazon's forums seem slow...

I get:

PROMPT:~ acct$ elb-create-lb-listeners <MYLBNAME> --listener "protocol=http,lb-port=80,instance-port=80"
Unable to find a $JAVA_HOME at "/usr", continuing with system-provided Java...
elb-create-lb-listeners:  Malformed input-Unknown command: 'CreateLoadBalancerListeners'.
Use '--help' to see a list of valid commands.

...sup with that? Do I need to download something else? My ELB cli is 1.0.10.0, and AWS_ELB_HOME is set correctly.

thanks!
Colin

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

歌枕肩 2024-10-06 04:43:33

一般来说,您运行的是最新版本,该命令应该可以工作。

我真的很想修复您的 $JAVA_HOME 环境。这可能会把事情搞砸。另外,您是否确保在您的环境中设置了 $AWS_ELB_HOME$AWS_CREDENTIAL_FILE

Generally, you're running the latest version and that command should work.

I'd really fix your $JAVA_HOME environment. That can screw things up. Also, did you make sure $AWS_ELB_HOME and $AWS_CREDENTIAL_FILE are set in your environment?

殊姿 2024-10-06 04:43:33

好吧,这已经是很久以前的事了。但解决方案如下:

  1. http://aws.amazon.com/ 下载 Elastic Load Balancing API 工具developertools/2536 并解压缩。

  2. 设置路径如下:
    导出 AWS_ELB_HOME=/root/james/ElasticLoadBalancing-1.0.15.1/
    export PATH=$PATH:$AWS_ELB_HOME/bin

  3. 设置 JAVA_HOME 路径如下:
    export JAVA_HOME=/usr/java/jdk1.7.0_02/

  4. 将您的证书和私钥放置到某个文件夹并指向它,如下所示:
    导出 EC2_CERT=/root/key/certfilename.pem
    导出 EC2_PRIVATE_KEY=/root/key/pkfilename.pem

现在 elb-create-lb 可以工作了:)

Ok, so this was long long back. But here's the solution:

  1. Download Elastic Load Balancing API Tool from http://aws.amazon.com/developertools/2536 and unzip it.

  2. Set the path as below:
    export AWS_ELB_HOME=/root/james/ElasticLoadBalancing-1.0.15.1/
    export PATH=$PATH:$AWS_ELB_HOME/bin

  3. Set JAVA_HOME path as below:
    export JAVA_HOME=/usr/java/jdk1.7.0_02/

  4. Place your certification and private keys to some folder and point to it as below:
    export EC2_CERT=/root/key/certfilename.pem
    export EC2_PRIVATE_KEY=/root/key/pkfilename.pem

Now elb-create-lb would work :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文