手把手教你搭建自己的Minecraft服务器

一、准备工作

1、一台用于部署Minecraft的服务器,这里建议购买4核 8G 160G 20M,并安装Ubuntu系统,下图是Minecraft官方建议的服务器配置。

需求玩家CPU内存硬盘上传带宽下载带宽[隐藏]注释
最低配置1-2Intel Pentium 4 1.8 GHz 或 AMD Athlon XP 1600+ 或 PowerPC 750 1000 MHz/G4 1 GHz
以上
512 MB2 GB 可用空间
(5GB -如果经常备份服务器)
3 Mbit/s2 Mbit/s(Minecraft服务器能勉强在1Mbit/s的上传带宽上运行)
Acceptable2-4Intel Pentium 4 2.6 GHz 或 AMD Athlon XP 2000+ 或 G4/Frescale 7xxx 1.8 GHz
以上
2 GB8 GB 可用空间6 Mbit/s3 Mbit/s
推荐配置4-5Intel Pentium 4 3.6 GHz 或 AMD Phenom 3600+ G4 2.0 GHz 或 IBM 970
以上
3 GB16 GB 可用空间8 Mbit/s4 Mbit/s
优良配置5-7Intel Core-Based CPUs 或 AMD K8-Based CPUs IBM 970 2.0 GHz
以上
5 GB25 GB 可用空间14 Mbit/s7 Mbit/s
最佳配置7+Intel Core-Based CPUs 或 AMD K8-Based CPUs at 3.6GHz 或 higher IBM 970 2.0 GHz
以上
6 GB35 GB 可用空间30 Mbit/s15 Mbit/s推荐使用高读写速度的机械磁盘或SLC SSD。

2、连接服务器的工具,因为计划用Linux系统部署Minecraft服务器,所以需要准备Xshell、Mobaxtem、Windterm、Putty等类似远程Linux服务器的工具。

二、开始安装

1、连接服务器:使用上述准备工作中的Linux服务器,SSH连接到服务器

2、快速安装,只需一条命令:

sudo wget -qO- https://gitee.com/mcsmanager/script/raw/master/setup_cn.sh | bash

这个脚本适用于Ubuntu、Centos、Debian和Archlinux的AMD64架构系统。

如果安装过程中出现如下错误,则就需要先安装git和tar

+----------------------------------------------------------------------
| MCSManager Installer
+----------------------------------------------------------------------
| Copyright © 2023 MCSManager.
+----------------------------------------------------------------------
| Contributors: Nuomiaa, CreeperKong, Unitwk, FunnyShadow
+----------------------------------------------------------------------

We will use servers in the China to speed up your installation!        
我们将使用中国地区的服务器来加速您的安装速度!

[-] Architecture: x64
[+] Installing dependent software(git,tar)... E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/git/git-man_2
.34.1-1ubuntu1.4_all.deb  404  Not Found [IP: 91.189.91.39 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/git/git_2.34.1-1ubuntu1.4_amd64.deb  404  Not Found [IP: 91
.189.91.39 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?  
Failed

=================================================
[x] Related software installation failed, please install git and tar packages manually!
=================================================

安装git和tar命令:

sudo apt-get update
sudo apt-get install git tar

安装完成重新执行上述快速安装命令。

=============== MCSManager ===============
 Daemon: /opt/mcsmanager/daemon
 Web: /opt/mcsmanager/web
=============== MCSManager ===============

[+] MCSManager installation success!
[+] Create MCSManager service...
Created symlink /etc/systemd/system/multi-user.target.wants/mcsm-daemon.service → /etc/systemd/system/mcsm-daemon.service.
Created symlink /etc/systemd/system/multi-user.target.wants/mcsm-web.service → /etc/systemd/system/mcsm-web.service.


==================================================================
==================================================================
Installation is complete! Welcome to the MCSManager panel!
 
HTTP Web Service:        http://<Your IP>:23333
Daemon Address:          ws://<Your IP>:24444
You must expose ports 23333 and 24444 to use the service properly on the Internet.
 
Usage:
systemctl start mcsm-{daemon,web}.service
systemctl stop mcsm-{daemon,web}.service
systemctl restart mcsm-{daemon,web}.service
 
Official Document: https://docs.mcsmanager.com/
==================================================================

出现上述结果就是表示MCSManager已经安装成功。

3、访问MCSManager管理面板

http://服务器IP:23333,第一次访问系统会要求创建一个访问面板的管理员账号和密码

选择“首次使用”

三、MCSManager使用

重启:systemctl restart mcsm-{daemon,web}.service

启动:systemctl start mcsm-{daemon,web}.service

停止:systemctl stop mcsm-{daemon,web}.service

禁用:systemctl disable mcsm-{daemon,web}.service

启用:systemctl enable mcsm-{daemon,web}.service

版权声明:
作者:郭靖
链接:https://www.sxszhian.com/archives/11125
来源:上海永驰网络科技有限公司
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
打赏
< <上一篇
下一篇>>