Skip to content

安装说明

John Jiang edited this page Jun 28, 2023 · 2 revisions

安装腾讯Kona

通过文件安装

Releases中下载腾讯Kona的二进制文件,例如:TencentKona-17.0.0.b1-jdk_linux-x86_64.tar.gz

cd <Install_Path>
tar -zxvf TencentKona-17.0.0.b1-jdk_linux-x86_64.tar.gz
export JAVA_HOME=<Install_Path>/TencentKona-17.0.0.b1
export PATH=${JAVA_HOME}/bin:$PATH

通过SDKMAN安装

SDKMAN已经支持了腾讯Kona,请先查看版本,

$ sdk list java | grep kona
Tencent       |     | 17.0.7       | kona    |            | 17.0.7-kona
              |     | 11.0.19      | kona    |            | 11.0.19-kona
              |     | 8.0.372      | kona    |            | 8.0.372-kona

然后再使用如下命令进行安装,

$ sdk install java 17.0.7-kona

验证腾讯Kona版本

java -version 输出应如下:

bash#> java -version
openjdk version "17" 2021-10-13 LTS
OpenJDK Runtime Environment TencentKonaJDK (build 17+35-LTS)
OpenJDK 64-Bit Server VM TencentKonaJDK (build 17+35-LTS, mixed mode, sharing)
Clone this wiki locally