简体   繁体   English

EC2 Amazon:在没有JRE的情况下设置自动缩放工具环境吗?

[英]EC2 Amazon: Set up autoscaling tools environment without JRE?

I am following this guide here: http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/UsingTheCommandLineTools.html 我在这里遵循此指南: http : //docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/UsingTheCommandLineTools.html

I don't have JRE, although I have Java 7 setup (I develop in Java). 尽管我有Java 7设置(我用Java开发),但我没有JRE。 So, I believe that I am stuck on this step in the tutorial: export JAVA_HOME=/usr/local/jre (but my /usr/local does not have JRE.) 因此,我相信我会停留在本教程的这一步骤上: export JAVA_HOME=/usr/local/jre (但是我的/usr/local没有JRE。)

See information here: 在这里查看信息:

lucas@lucas-ThinkPad-W520:~$ ls /usr/local/
bin  etc  games  include  lib  man  sbin  share  src
lucas@lucas-ThinkPad-W520:~$ which java
/usr/bin/java
lucas@lucas-ThinkPad-W520:~$ which jre
lucas@lucas-ThinkPad-W520:~$ 

Should I install JRE separately, or is there a way to configure my system to work with these auto-scaling tools? 我应该单独安装JRE,还是可以将系统配置为与这些自动缩放工具一起使用?

You should not use as-cmd anymore. 您不应该再使用as-cmd Please use AWS CLI . 请使用AWS CLI Here is the AWS CLI relevant autoscaling commands 这是与AWS CLI相关的自动扩展命令

The reason being, as-cmd is not maintained by Amazon anymore and all the old CLI features have been exported to AWS CLI . 原因是,Amazon不再维护as-cmd,并且所有旧的CLI功能都已导出到AWS CLI AWS CLI is a one stop shop for all the AWS Services unlike older CLIs where you had to install a separate CLI for individual services. AWS CLI是所有AWS服务的一站式商店,与旧的CLI不同,在旧的CLI中,您必须为单独的服务安装单独的CLI。

as-cmd is JAva based and hecne your question. as-cmd是基于JAva的,因此很容易引起您的疑问。 However, AWS-CLI is python based and in my opinion (which is ofcourse subjective), It is bit faster than older JAva based AWS CLIs. 但是, AWS-CLI是基于python的,并且我认为(这当然是主观的),它比旧的基于Java的AWS CLI快一些。

AWS CLI provides output in JSON format which is much more easier to parse. AWS CLI以JSON格式提供输出,更易于解析。

BESIDES, You don't have to play with CLI for autoscaling. 此外,您无需使用CLI即可进行自动缩放。 Now, you can do the same job via AWS Console . 现在,您可以通过AWS Console进行相同的工作。

Your best bet is to download JRE. 最好的选择是下载JRE。 http://www.oracle.com/technetwork/java/javase/downloads/index.html Bottom right of that page. http://www.oracle.com/technetwork/java/javase/downloads/index.html该页面的右下角。 Small download should be done within seconds. 小下载应在几秒钟内完成。 Hope this helps 希望这可以帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM