Minecraft基岩版服务器的安装

最近想开个Minecraft基岩版(C++)版服务器,但是手上没有电脑来开,于是用了一台有root权限的安卓手机

1.那么,安装上LinuxDeploy,这个软件可以提供一个安装Linux的环境

 

2.进入配置,选择ubuntu,找一个桌面,我用的是xfce,轻量。然后设置vnc的密码,这里会自动配置好vnc服务,设置ssh密码

 

然后就是安装了,等待一段时间

.......

 

安装完毕启动,然后使用ssh客户端连接,安卓上比较好用的ssh工具是JuiceSSH,连接为127.0.0.1,然后输入账户为root,密码就是刚才设置的密码,设置一下上面的安装版本为18.04LTS

 

启动啦,这里你拥有了一台ubuntu主机,然后就是换源,这个ubuntu太纯净了,先用apt安装一个编辑器,我这里用nano

apt-get install nano

复制上面的命令就行了

 

接着换源,使用

nano /etc/apt/sources.list

更换更新源,然后我用阿里源,很快,用的源取决于你的版本,如果使用18.04的话把这个文件里面的文字删干净后输入

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb 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 main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

  

同样,复制上面的链接过去就行

然后Ctrl+X保存,输入y确定,按回车保存

 

之后更新一下源

apt-get update

  

到这里,服务器基本配置就好了,接下来就是安装核心了!

 

基岩版服务器有多种核心供我们选择,比较火的有:BDS,Geyser,NUKKIT,POCKETMINE-MP,如果你要安装纯生存服务器,保留原版特性的话可以用BDS,也就是官方核心,如果你想使用JAVA版的服务器插件,体验JAVA版特性的话,那么可以使用Geyser,如果你要做小游戏或者建筑服务器的话,可以使用nukkit和pocketmine

 

我这里提供Nukkit的安装方法

 

准备好nukkit核心之后安装JAVA

apt-get install default-jre -y

  输入这行指令,JAVA就能安装上了

 

然后cd到核心的目录,输入

java -jar "核心名称"

  其中把"核心名称"换成你的核心的名称记得加上后面的后缀

 

等待启动,出现语言选择界面时,输入 eng 选择英文,因为这时候没有安装中文字库,有需要的可以自己安装一下

 

到这里,打开Minecraft,到局域网游戏,就能看到你的服务器了!

输入/version 可以查看服务器版本

 

但是如果你想和你的朋友一起玩的话需要外网映射,这里时间有限,不多赘述了

如果安装插件的话直接把jar格式的插件放入核心文件夹内的 plugins 目录就能激活了

Bye,Good luck to you!

posted @ 2021-02-02 10:53  Haveounk  阅读(225)  评论(3)    收藏  举报