首先下载我的世界基岩版服务端程序,这里可以从官网直接下载

https://www.minecraft.net/zh-hans/download/server/bedrock/

也可以通过wget命令直接下载指定版本:

wget https://minecraft.azureedge.net/bin-linux/bedrock-server-1.10.0.7.zip

解压下载好的压缩包

apt install zip
unzip bedrock-server-1.10.0.7.zip

启动一下试试 LD_LIBRARY_PATH=. ./bedrock_server,发现没有启动成功,查看错误信息

./bedrock_server: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory

原来是没有安装libcurl.so.4,百度插一下这个文件属于哪个包,直接安装然后再次启动

apt install libcurl4-openssl-dev
LD_LIBRARY_PATH=. ./bedrock_server

依旧报错,继续查看错误信息,然后查

./bedrock_server: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

原来是需要安装openssl,安装后再次启动,

apt install openssl

依旧报错

./bedrock_server: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by ./bedrock_server)

安装libc6

echo 'deb http://ftp.debian.org/debian/ buster main' >> /etc/apt/sources.list
apt update
apt -t buster install libc6

再次启动

LD_LIBRARY_PATH=. ./bedrock_server

终于可以正常启动了