午夜_Midnight
午夜_Midnight
Published on 2024-10-30 / 37 Visits
0
0

简幻欢Java镜像已全部预装Java21

如题,java21的路径为/usr/bin/jdk/jdk-21.0.2/bin/java,在简幻欢的启动脚本中建议使用变量设置,如下所示:

#!/bin/bash 

#启动变量说明,修改前务必查看#https://www.yuque.com/simpfun/sfe/startup

openjdk8="/usr/bin/jdk/jdk1.8.0_361/bin/java"
openjdk11="/usr/bin/jdk/jdk-11.0.18/bin/java"
openjdk17="/usr/bin/jdk/jdk-17.0.6/bin/java"
openjdk19="/usr/bin/jdk/jdk-19.0.2/bin/java"
openjdk21="/usr/bin/jdk/jdk-21.0.2/bin/java"

maxmem=$((SERVER_MEMORY - 1000))

1


Comment