Ubuntu系统更新及常用命令安装
更换源为阿里云
Ubuntu 阿里云源地址:https://developer.aliyun.com/mirror/ubuntu
编辑文件:/etc/apt/sources.list
Ubuntu 20.04(focal) 配置如下
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
Ubuntu更新命令
更新软件源:apt-get update
更新软件:apt-get upgrade
升级系统版本:apt-get dist-upgrade
安装unzip:apt install unzip
安装screen:apt install screen
搭建我的世界基岩版服务器
我的世界基岩版官方服务器下载地址:https://www.minecraft.net/en-us/download/server/bedrock
创建文件夹mc
mkdir mc
进入mc文件夹
cd mc
下载压缩包
wget https://minecraft.azureedge.net/bin-linux/bedrock-server-1.17.11.01.zip
解压压缩包
unzip bedrock-server-1.17.11.01.zip
运行我的世界服务器
LD_LIBRARY_PATH=. ./bedrock_server
后台运行我的世界服务器
创建MC会话
screen -S mc
启动服务器
LD_LIBRARY_PATH=. ./bedrock_server
退出当前会话
CTRL+a+d
回到MC进程会话
screen -r mc
我的世界服务器配置
我的世界配置文件详细:https://minecraft.fandom.com/zh/wiki/Server.properties
配置文件(文件内容):server.properties
server-name=Dedicated Server
# 服务器名字
# Used as the server name
# Allowed values: Any string without semicolon symbol.
gamemode=survival
# 游戏模式
# Sets the game mode for new players.
# Allowed values: "survival", "creative", or "adventure"
# 生存,创造,冒险
force-gamemode=false
# 强制游戏模式
# force-gamemode=false (or force-gamemode is not defined in the server.properties)
# prevents the server from sending to the client gamemode values other
# than the gamemode value saved by the server during world creation
# even if those values are set in server.properties after world creation.
#
# force-gamemode=true forces the server to send to the client gamemode values
# other than the gamemode value saved by the server during world creation
# if those values are set in server.properties after world creation.
difficulty=easy
# 游戏难度
# Sets the difficulty of the world.
# Allowed values: "peaceful", "easy", "normal", or "hard"
allow-cheats=false
# 游戏作弊开关
# If true then cheats like commands can be used.
# Allowed values: "true" or "false"
max-players=10
# 最大玩家数量
# The maximum number of players that can play on the server.
# Allowed values: Any positive integer
online-mode=true
# XBOX验证
# If true then all connected players must be authenticated to Xbox Live.
# Clients connecting to remote (non-LAN) servers will always require Xbox Live authentication regardless of this setting.
# If the server accepts connections from the Internet, then it's highly recommended to enable online-mode.
# Allowed values: "true" or "false"
white-list=false
# 白名单
# If true then all connected players must be listed in the separate whitelist.json file.
# Allowed values: "true" or "false"
server-port=19132
# 服务器IPV4端口
# Which IPv4 port the server should listen to.
# Allowed values: Integers in the range [1, 65535]
server-portv6=19133
# Which IPv6 port the server should listen to.
# Allowed values: Integers in the range [1, 65535]
view-distance=32
# The maximum allowed view distance in number of chunks.
# Allowed values: Positive integer equal to 5 or greater.
tick-distance=4
# The world will be ticked this many chunks away from any player.
# Allowed values: Integers in the range [4, 12]
player-idle-timeout=30
# After a player has idled for this many minutes they will be kicked. If set to 0 then players can idle indefinitely.
# Allowed values: Any non-negative integer.
max-threads=8
# Maximum number of threads the server will try to use. If set to 0 or removed then it will use as many as possible.
# Allowed values: Any positive integer.
level-name=Bedrock level
# Allowed values: Any string without semicolon symbol or symbols illegal for file name: /\n\r\t\f`?*\\<>|\":
level-seed=
# Use to randomize the world
# Allowed values: Any string
default-player-permission-level=member
# Permission level for new players joining for the first time.
# Allowed values: "visitor", "member", "operator"
texturepack-required=false
# Force clients to use texture packs in the current world
# Allowed values: "true" or "false"
content-log-file-enabled=false
# Enables logging content errors to a file
# Allowed values: "true" or "false"
compression-threshold=1
# Determines the smallest size of raw network payload to compress
# Allowed values: 0-65535
server-authoritative-movement=server-auth
# Allowed values: "client-auth", "server-auth", "server-auth-with-rewind"
# Enables server authoritative movement. If "server-auth", the server will replay local user input on
# the server and send down corrections when the client's position doesn't match the server's.
# If "server-auth-with-rewind" is enabled and the server sends a correction, the clients will be instructed
# to rewind time back to the correction time, apply the correction, then replay all the player's inputs since then. This results in smoother and more frequent corrections.
# Corrections will only happen if correct-player-movement is set to true.
player-movement-score-threshold=20
# The number of incongruent time intervals needed before abnormal behavior is reported.
# Disabled by server-authoritative-movement.
player-movement-distance-threshold=0.3
# The difference between server and client positions that needs to be exceeded before abnormal behavior is detected.
# Disabled by server-authoritative-movement.
player-movement-duration-threshold-in-ms=500
# The duration of time the server and client positions can be out of sync (as defined by player-movement-distance-threshold)
# before the abnormal movement score is incremented. This value is defined in milliseconds.
# Disabled by server-authoritative-movement.
correct-player-movement=false
# If true, the client position will get corrected to the server position if the movement score exceeds the threshold.
server-authoritative-block-breaking=false
# If true, the server will compute block mining operations in sync with the client so it can verify that the client should be able to break blocks when it thinks it can.
服务器文件备份
需要备份文件:server.properties,whitelist.json,permissions.json,worlds folder
我的世界相关文档
白柏狐教程:https://docs.devgox.com/archives/Minecraft-BE-Server.html
Stdin教程:https://stdin.info/archives/1027
文字教程:https://www.sky350.com/294.html
视频教程:https://www.bilibili.com/video/BV1eB4y1c7fC
Minecraft 服务端管理面板:http://suwingser.gitee.io/mcsmanager/
管理面板Github地址:https://github.com/Suwings/MCSManager
我的世界基岩版开服源码:https://www.minecraft.net/en-us/download/server/bedrock