ec2:elb-create-lb-listeners 失败
有人让亚马逊的弹性负载平衡命令: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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
一般来说,您运行的是最新版本,该命令应该可以工作。
我真的很想修复您的
$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?好吧,这已经是很久以前的事了。但解决方案如下:
从 http://aws.amazon.com/ 下载 Elastic Load Balancing API 工具developertools/2536 并解压缩。
设置路径如下:
导出 AWS_ELB_HOME=/root/james/ElasticLoadBalancing-1.0.15.1/
export PATH=$PATH:$AWS_ELB_HOME/bin
设置 JAVA_HOME 路径如下:
export JAVA_HOME=/usr/java/jdk1.7.0_02/
将您的证书和私钥放置到某个文件夹并指向它,如下所示:
导出 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:
Download Elastic Load Balancing API Tool from http://aws.amazon.com/developertools/2536 and unzip it.
Set the path as below:
export AWS_ELB_HOME=/root/james/ElasticLoadBalancing-1.0.15.1/
export PATH=$PATH:$AWS_ELB_HOME/bin
Set JAVA_HOME path as below:
export JAVA_HOME=/usr/java/jdk1.7.0_02/
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 :)