*本地服务器在Ubuntu桌面打开终端(桌面模式下可以按Ctrl+Alt+T打开终端) 云服务器在你的本地电脑按win+r打开运行,输入cmd进入后在里面输入ssh -p 远程端口 用户名@远程ip进入ubuntu(例:ssh -p 80802 root@192.128.255.255),云服务器第一次连接时会提示你是否继续连接,输入yes回车并输入云服务器的密码(注意Ubun...
sudoaptinstallopenjdk-8-jdksudoaptinstallopenjdk-11-jdksudoaptinstallopenjdk-17-jdksudoaptinstallopenjdk-21-jdk 安装完成后,输入以下命令来查看你安装的Java sudoupdate-alternatives --config java 输入对应的数字来切换Java版本 切换到java17 使用以下命令来查看是否切换成功 java -version 成功切换到Java17 三...
我们建议将其设置为比分配给 VPS 的内存量小 512MB,尽管您也可以只小 256MB;剩余的内存由 VPS 上的 Linux 操作系统使用。因此,如果您的 VPS 中有 2GB RAM,则可以使用以下命令: java -Xms1536M -XmX1536M -jar minecraft_server.jar nogui 一旦您确定了运行 Minecraft 所需使用的命令,我们将需要制作一个简...
● minecraft.service-Minecraft ServerLoaded:loaded(/etc/systemd/system/minecraft.service;disabled;vendor preset:enabled)Active:active(running)since Tue2020-06-2317:48:44UTC;8s ago MainPID:1338035(java)Tasks:15(limit:1074)Memory:465.3MCGroup:/system.slice/minecraft.service └─1338035/usr/bin/java-X...
java -version openjdk version "11.0.7" 2020-04-14 OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-3ubuntu1) OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-3ubuntu1, mixed mode, sharing) 创建Minecraft 用户 出于安全原因,Minecraft 不应在 root 用户下运行。我们将创建一个具...
Minecraft servers are based onMinecraft Java Edition, the original version of Minecraft, so our next step is to install Java on our Raspberry Pi. The default Java on Ubuntu is older than the one used for Minecraft Servers, so we need to specifically install the latest Java Runtime Environment...
我们的服务器所使用的操作系统是 Ubuntu 18.04.6,这是在买服务器的时候就决定了的。 JDK 配置 目前服务器上已经安装了 JDK 21 环境,由于我们要运行比较新的 1.21.1 版本,JDK 17 已经不再可用。另,可以考虑根据B站 UP 主的建议更换到Alibaba DragonWell JDK以便取得更好的性能,但是我这里为了方便没有采用这个配...
1. 安装JAVA 运行Minecraft需要java17的版本,检查Linux java版本 java -version Bash Copy 如果没有安装java,可以一键安装 sudoaptinstallopenjdk-17-jre-headless Bash Copy 2. MCSManager安装 使用官网的下载命令脚本,直接下载安装,安装脚本只支持 Ubuntu/Centos/Debian/Arch 等主流 x86_64 位操作系统。
A server with a fresh installation of Ubuntu 18.04, a non-root user with Step 1 — Installing the Necessary Software Packages and Configure the Firewall With your server initialized, your first step is to installJava; you’ll need it to run Minecraft. By default, Ubuntu 18.04 does not prov...
Launch your copy of Minecraft Java Edition and selectMultiplayerin the menu. Next, you will need to add a server to connect to, so click on theAdd Serverbutton. In theEdit Server Infoscreen that shows up, give your server a name and type in the IP address of your server. This is the...