Top

安卓Minecraft服务器搭建

第一种PocketMine-MP

我的环境是centos 7.4

1.先安装部分需要的依赖

[root@yiqie ~]# yum install autoconf automake bzip2 bison gcc-c++ libtool

2.安装PocketMine-MP

\\因为这里使用root运行会有点问题,所以我们使用普通用户执行
\\这里mc-server是安装的目录,使用的是一个自动安装的脚本
[user1@yiqie mc-server]$ wget -q -O - https://get.pmmp.io | bash -s -
。。。。。。。。。。。。。。\\中间这一串我就不写进来了
[INFO] Cleaning up... done!
[PocketMine] You should start the server now using "./start.sh".
[PocketMine] If it doesn't work, please send the "install.log" file to the Bug Tracker.

3.运行PocketMine-MP

[user1@yiqie mc-server]$ ./start.sh --no-wizard
[02:03:28] [Server thread/INFO]: Opening server on 0.0.0.0:19132
[02:03:28] [Server thread/INFO]: This server is running PocketMine-MP version 3.5.8
[02:03:28] [Server thread/INFO]: PocketMine-MP is distributed under the LGPL License
[02:03:29] [Server thread/INFO]: Loading resource packs...
[02:03:29] [Server thread/NOTICE]: Level "world" not found
[02:03:29] [Server thread/INFO]: Preparing level "world"
[02:03:29] [Server thread/NOTICE]: Spawn terrain for level "world" is being generated in the background
[02:03:29] [Server thread/INFO]: Starting GS4 status listener
[02:03:29] [Server thread/INFO]: Setting query port to 19132
[02:03:29] [Server thread/INFO]: Query running on 0.0.0.0:19132
[02:03:29] [Server thread/INFO]: Default game type: Survival Mode
[02:03:29] [Server thread/INFO]: Done (0.423s)! For help, type "help" or "?"
\\到这里就算成功了,我们登陆试试.

4.登陆测试

成功!

第二种nukkitx

1.安装java

[root@yiqie mc-server]# yum install java

2.下载nukkitx

[root@yiqie mc-server]# wget https://ci.nukkitx.com/job/NukkitX/job/Nukkit/job/master/lastSuccessfulBuild/artifact/target/nukkit-1.0-SNAPSHOT.jar

3.安装并允许nukkitx

[root@yiqie mc-server]# java -jar /var/www/mc-server/nukkit-1.0-SNAPSHOT.jar 

如果想后台运行可以了解一下screen命令