📜  在 ubuntu 上安装 minecraft 服务器 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:47.586000             🧑  作者: Mango

代码示例1
Step 1: Install the required packages:

sudo apt update
sudo apt install openjdk-8-jre-headless
sudo apt install screen
sudo ufw allow 25565

Step 2: Download the latest version of Mindcraft:

wget https://launcher.mojang.com/v1/objects/bb2b6b1aefcd70dfd1892149ac3a215f6c636b07/server.jar

Step 3: Configure and run the Mindcraft server:

screen
java -Xms1024M -Xmx1024M -jar minecraft_server_1.15.2.jar nogui  

Step 4: Configure the Server:

nano server.properties

Step 5: Enjoy :)