首先下载我的世界基岩版服务端程序,这里可以从官网直接下载
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
终于可以正常启动了
版权属于:wshon
本文链接:https://blog.wshon.com/2019/04/bedrock.html
转载时须注明出处及本声明
受教了,我比博主运气好点,是因为不理解命令参数等设定而频繁失败,不像博主这么倒霉踩三个错误,我 是centos7.7里docker安装Ubuntu18.04,Ubuntu里就缺个libcurl4-openssl-dev
系统的差异,不同的Linux发行版集成的包也不一样,安装难度也就差很多了。
啊确实,话说,博主博客好像没有评论回复邮件提醒,可以试试Comment2Mail这个插件。
请问用的是什么系统?
系统是 Debian9,理论上Debian系的系统应该通用的。
看了这么多就这个有用,牛逼