首先在阿里云上面选择ubuntu系统,这是基础。
使用ssh链接到阿里云主机
使用wget命令下载这个
https://minecraft.azureedge.net/bin-linux/bedrock-server-1.18.12.01.zip
这个是Ubuntu版本的服务器配套包下载地址
下载好之后我们需要解压,但是ubuntu不自带解压工具,我们需要下载一个,
vim /etc/apt/sources.list
然后复制进去以下内容就行,不同版本是不同的,可以根据 这个网址来选择https://developer.aliyun.com/mirror/ubuntu
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
复制完成后可以apt-get update 用这个命令更新一下
apt-get install unzip安装unzip
然后解压后就可以使用这条命令开启服务器啦
LD_LIBRARY_PATH=. ./bedrock_server