EC2上的Java 8应用程序 [英] Java 8 application on EC2

查看:287
本文介绍了EC2上的Java 8应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有人知道我是否可以在EC2实例上安装Java 8。我的应用程序被打包为带有嵌入式jetty的胖jar,因此仅Java 8运行时就足够了。

I was wondering if anyone knows if it will be possible for me to install Java 8 on an EC2 instance. My application is packed as a fat jar with embedded jetty, so the Java 8 runtime alone should be sufficient.

我对Linux不太熟悉,我看到了他们只对默认的AMI提供Java 7支持。是否有一个简单的命令可以运行以更新到Java 8?

I'm not too familiar with Linux, and I saw that they only had Java 7 support on the default AMI. Is there a simple command I can run to update to Java 8?

推荐答案

Java 8可能无法使用您正在寻找的AMI上的框。但是,您可以在创建实例后始终安装它。

Java 8 may not be available out-of-the-box on the AMI that you are looking for. However, you can always install it once the instance is created.

例如。查看这篇文章,其中介绍了如何安装java $ on Ubuntu 或查看这篇文章解释了如何在 RHEL / Fedora / CentOS 上安装Java 8.。

e.g. Check this post which explains how to install java 8 on Ubuntu OR check this post which explains how to install Java 8 on RHEL/Fedora/CentOS.

这篇关于EC2上的Java 8应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆