0
0
mirror of https://github.com/Pumpkin-MC/Pumpkin-Website.git synced 2025-08-11 14:32:50 +00:00
Files
Pumpkin-Website/docs/zh_cn/index.md
Alexander Medvedev 799b8db50c remove main page
2025-07-09 23:24:50 +02:00

68 lines
1.9 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 快速开始
**当前状态:**
预发布:目前正在开发中,尚未准备好正式发布。
## Rust
要使用 Rust 运行 Pumpkin请确保您已安装 [Rust](https://www.rust-lang.org/tools/install)。
1. 克隆仓库:
```shell
git clone https://github.com/Pumpkin-MC/Pumpkin.git
cd Pumpkin
```
2. **可选:** 如果需要,您可以将原版世界放入 `Pumpkin/` 目录中。只需将世界文件夹命名为 `world`
3. 运行:
> [!NOTE]
> 由于发布版本的大量优化,构建过程可能需要一些时间。
```shell
cargo run --release
```
4. **可选:** 如果您想使用 CPU 特定功能,可以设置 `target-cpu=native` Rust 编译器标志。
```shell
RUSTFLAGS='-C target-cpu=native' cargo run --release
```
## Docker
> [!IMPORTANT]
> Docker 支持目前处于实验阶段。
如果您尚未安装,需要先[安装 Docker](https://docs.docker.com/engine/install/)。安装 Docker 后,可以运行以下命令启动服务器:
```shell
docker run --rm \
-p <暴露端口>:25565 \
-v <服务器数据位置>:/pumpkin \
-it ghcr.io/pumpkin-mc/pumpkin:master
```
- `<暴露端口>`:您想要连接 Pumpkin 的端口,例如 `25565`
- `<服务器数据位置>`:您希望存储服务器配置和数据的位置,例如 `./data`
### 示例
要在端口 `25565` 上运行 Pumpkin 并将数据存储在名为 `./data` 的目录中,您可以运行以下命令:
```shell
docker run --rm \
-p 25565:25565 \
-v ./data:/pumpkin \
-it ghcr.io/pumpkin-mc/pumpkin:master
```
## 测试服务器
Pumpkin 有一个由 @kralverde 维护的测试服务器。它运行在 Pumpkin master 分支的最新提交上。
- **IP:** pumpkin.kralverde.dev
**配置:**
- 操作系统: Debian GNU/Linux bookworm 12.7 x86_64
- 内核: Linux 6.1.0-21-cloud-amd64
- CPU: Intel Core (Haswell, no TSX) (2) @ 2.40 GHz
- 内存: 4GB DIMM