当前位置: 首页 > 工具软件 > azul > 使用案例 >

azul和java,安装适用于 Azure 和 Azure Stack 的 Azul Zulu JDK | Microsoft Docs

宋子辰
2023-12-01

您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

安装适用于 Azure 和 Azure Stack 的 JDKInstall the JDK for Azure and Azure Stack

4/19/2019

本文内容

Azul Zulu Enterprise 内部版 OpenJDK 是适用于 Azure 和 Azure Stack 的 OpenJDK 的免费、多平台、生产就绪型发行版,由 Microsoft 及 Azul Systems 提供支持。Azul Zulu Enterprise builds of OpenJDK are a no-cost, multi-platform, production-ready distribution of the OpenJDK for Azure and Azure Stack backed by Microsoft and Azul Systems. 这些版本包含构建和运行 Java SE 应用程序所需的所有组件。They contain all the components for building and running Java SE applications.

也可从以下平台的 Azure 市场库获取虚拟机映像:You can also get a virtual machine image from the Azure Marketplace Gallery for the following platforms:

备注

这些说明针对 64 位 Java 8 版 JDK。These instructions target the 64-bit Java 8 version of the JDK. Azul 还提供 Java Run-time Environment (JRE) 作为独立安装。Azul also provides the Java Run-time Environment (JRE) as a stand-alone installation. 此 JRE 随附在 JDK 安装中。The JRE is included with the JDK install.

Java 11 packages are also provided on Azul's Azure downloads page.

下载并安装 Windows 版 Azul Zulu JDKDownload and install the Azul Zulu JDKs for Windows

将 64 位 Azul Zulu JDK 8 作为 MSI 下载到客户端的某个位置,例如 C:\Users\\Downloads。Download the 64-bit Azul Zulu JDK 8 as an MSI to a location on your client, such as C:\Users\\Downloads. (.ZIP packages are also provided on Azul's Azure downloads page.)

导航到该目录,双击下载的 MSI 文件即可开始安装。Navigate to the directory and double-click the downloaded MSI file to begin installation.

下载并安装 Mac 版 Azul Zulu JDKDownload and install the Azul Zulu JDKs for Mac

这些步骤将 ZIP 文件下载到 Mac。These steps download a ZIP file to your Mac. 此外还提供 DMG 版本。There is also a DMG version available.

将 64 位 Azul Zulu JDK 8 作为 ZIP 文件下载到客户端的某个位置,例如 /Library/Java/JavaVirtualMachines/。Download the 64-bit Azul Zulu JDK 8 as a ZIP file to a location on your client, such as /Library/Java/JavaVirtualMachines/. (.DMG packages are also provided on Azul's Azure downloads page.)

启动 Finder,导航到下载目录,然后双击 ZIP 文件。Launch Finder, navigate to the download directory, and double-click the ZIP file. 也可启动终端命令窗口,然后导航到目录并运行:Alternatively, you can launch a terminal command window, navigate to the directory, and run:

unzip .zip

下载并安装 Alpine Linux 版 Azul Zulu JDKDownload and install the Azul Zulu JDKs for Alpine Linux

Download the 64-bit Azul Zulu JDK 8 as a TAR file to a location on your client, such as /usr/lib/jvm. (.RPM 和 .DEB 包也在 Azul 的 Azure 下载页上提供。)(.RPM and .DEB packages are also provided on Azul's Azure downloads page.)

转到你的目录并运行以下命令,将文件解压缩并展开:Go to your directory and run the following command to unzip and expand the file:

tar -xvf .tar

确认安装Confirm your installation

若要确认安装,请转到命令行并运行 java -version。To confirm your installation, go to the command-line and run java -version.

此命令的输出应该是:The output of the command should be:

$ java -version

openjdk version "1.8.0_212"

OpenJDK Runtime Environment (Zulu 8.38.0.13-macosx)-Microsoft-Azure-restricted (build 1.8.0_212-b04)

OpenJDK 64-Bit Server VM (Zulu 8.38.0.13-macosx)-Microsoft-Azure-restricted (build 25.212-b04, mixed mode)

下载并安装 Yum 存储库中的 Azul Zulu JDKDownload and install the Azul Zulu JDKs from a Yum repository

Azul Zulu JDK 在 Yum 存储库中由 Azul 提供。The Azul Zulu JDKs are provided in a Yum repository by Azul.

若要安装适用于 Java 8 的 Azul Zulu JDK,请在 CLI 中运行以下命令:To install the Azul Zulu JDK for Java 8, run the following commands from your CLI:

sudo rpm --import http://repos.azul.com/azul-repo.key

sudo curl http://repos.azul.com/azure-only/zulu-azure.repo -o /etc/yum.repos.d/zulu-azure.repo

sudo yum -q -y update

sudo yum -q -y install zulu-8-azure-jdk

对于 Java 11,请运行:For Java 11, run:

sudo rpm --import http://repos.azul.com/azul-repo.key

sudo curl http://repos.azul.com/azure-only/zulu-azure.repo -o /etc/yum.repos.d/zulu-azure.repo

sudo yum -q -y update

sudo yum -q -y install zulu-11-azure-jdk

对于 Java 12(预览版),请运行:For Java 12 (Preview), run:

sudo rpm --import http://repos.azul.com/azul-repo.key

sudo curl http://repos.azul.com/azure-only/zulu-azure.repo -o /etc/yum.repos.d/zulu-azure.repo

sudo yum -q -y update

sudo yum -q -y install zulu-12-azure-jdk

若要更新 Yum 存储库中的 Zulu JDK 8 包,请运行以下命令:To update a Zulu JDK 8 package from a Yum repository:

sudo yum -q -y install zulu-8-azure-jdk

(如果使用版本 11 或 12,请更改以上命令中的版本号。)(Change the version number in the command above if you are using versions 11 or 12.)

若要删除 Yum 存储库中的 Zulu JDK 8 包,请运行以下命令:To remove a Zulu JDK 8 package from a Yum repository:

sudo yum -y erase zulu-8-azure-jdk

(如果使用版本 11 或 12,请更改以上命令中的版本号。)(Change the version number in the command above if you are using versions 11 or 12.)

下载并安装 apt-get 存储库中的 Azul Zulu JDKDownload and install the Azul Zulu JDKs from an apt-get repository

Azul Zulu JDK 也在 apt-get 存储库中由 Azul 提供。The Azul Zulu JDKs are also provided in an apt-get repository by Azul.

若要通过 apt-get 安装适用于 Java 8 的 Azul Zulu JDK,请在 CLI 中运行以下命令:To install the Azul Zulu JDK for Java 8 with apt-get, run the following commands from your CLI:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xB1998361219BD9C9

sudo apt-add-repository "deb http://repos.azul.com/azure-only/zulu/apt stable main"

sudo apt-get -q update

sudo apt-get -y install zulu-8-azure-jdk

对于 Java 11,请运行:For Java 11, run:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xB1998361219BD9C9

sudo apt-add-repository "deb http://repos.azul.com/azure-only/zulu/apt stable main"

sudo apt-get -q update

sudo apt-get -y install zulu-11-azure-jdk

对于 Java 12(预览版),请运行:For Java 12 (Preview), run:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xB1998361219BD9C9

sudo apt-add-repository "deb http://repos.azul.com/azure-only/zulu/apt stable main"

sudo apt-get -q update

sudo apt-get -y install zulu-12-azure-jdk

若要更新 apt-get 存储库中的 Zulu JDK 8 包,请运行以下命令:To update a Zulu JDK 8 package from an apt-get repository:

sudo apt-get -q update

sudo apt-get -y install zulu-8-azure-jdk

以前的版本会被自动删除。The previous release will be automatically removed.

(如果使用版本 11 或 12,请更改以上命令中的版本号。)(Change the version number in the command above if you are using versions 11 or 12.)

若要删除 apt-get 存储库中的 Zulu JDK 8 包,请运行以下命令:To remove a Zulu JDK 8 package from an apt-get repository:

sudo apt-get -y purge zulu-8-azure-jdk

(如果使用版本 11 或 12,请更改以上命令中的版本号。)(Change the version number in the command above if you are using versions 11 or 12.)

若要更详细地了解如何准备、安装和管理用于 Azure 开发的 Azul Zulu JDK,请阅读官方 Zulu 文档。For more detailed guidance on preparing, installing, and managing your Azul Zulu JDKs for Azure development, read the official Zulu docs.

 类似资料: