将服务端上传后,用以下文本覆盖start.sh的内容
`#!/bin/bash
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"
maxmem=$((SERVER_MEMORY - 1000))
server-release.jar
${openjdk17} -Xms1024M -Xmx${maxmem}M @libraries/net/minecraftforge/forge/1.20.1-47.2.21/unix_args.txt "$@"
echo "😥"`
即可开启服务器