# 使用游戏云面板搭建PHP网站 + LibreSpeed测速服务器

**URL:** <https://forum.rainyun.com/t/topic/12594>\
**Category:** 游戏云面板\
**Created:** [2025 年10 月 2 日 01:22 UTC](https://forum.rainyun.com/t/topic/12594 "2025-10-02T01:22:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

作者： ![CraftBlockht6x](https://forum.rainyun.com/user_avatar/forum.rainyun.com/craftblockht6x/32/11972_2.png) [@CraftBlockht6x](https://forum.rainyun.com/u/CraftBlockht6x)\
发布日期： [2025 年10 月 2 日 01:22 UTC](https://forum.rainyun.com/t/topic/12594/1 "2025-10-02T01:22:51Z")

</div>

## 使用游戏云面板搭建PHP网站 + LibreSpeed测速服务器

> 项目地址：[GitHub - LibreSpeed](https://github.com/librespeed/speedtest)

### LibreSpeed介绍

LibreSpeed是一款免费开源的网速测试工具，您可将其部署在自有服务器上，用户通过浏览器即可运行。

**功能特性：**

- 下载测速
- 上传测速
- 延迟与抖动测试
- IP地址、运营商及距离检测
- 遥测功能（可选）
- 结果分享（可选）
- 多节点测试（可选）

### MCSManager 面板介绍

MCSManager 面板（简称 MCSM 面板）是一款轻量级、便携性的 Minecraft 服务器控制面板，主要功能包括：

- **多实例管理** ：支持同时运行多个 Minecraft 服务器实例，便于管理不同版本或类型的游戏服务。
- **远程节点控制** ：通过 Web 界面和后台进程（daemon）分离架构，支持远程节点管理，需通过密钥验证连接。

### 准备：

> 购买游戏云：[雨云 - 新一代云服务提供商](https://www.rainyun.com/rgs/MTY5ODI0_?sp=eziJWZ)  
> 推荐在已有的Minecraft服务器上搭建

### 使用命令

```auto
apt update # 更新软件包列表
apt install sudo # 安装sudo
sudo apt update # 更新软件包列表
sudo apt install php # 安装php
git clone https://githubfast.com/librespeed/speedtest.git # 克隆librespeed仓库
cd speedtest # 定位仓库目录
php -S 0.0.0.0:8000 # 启动php服务器

```

## 正式搭建

1. 进入控制台

 ![IMG_20250811_132146](https://forum.rainyun.com/uploads/default/original/2X/3/38df6d625ffcedaf9adc994d00e25fa432fe5f8d.jpeg)

1. 编辑启动脚本为`bash`

 ![IMG_20250811_132220](https://forum.rainyun.com/uploads/default/original/2X/2/2e6f94794677ab66fa6f8f2ad37fb2c3ce34d081.jpeg)

1. 启动服务器。并在命令行依次输入上文给出的命令
2. 确认启动成功

 ![IMG_20251002_091459](https://forum.rainyun.com/uploads/default/original/2X/a/a8d94aab191db24198ede25546a70bc91163dae2.jpeg)

注意：需要设置端口映射

 ![IMG_20251002_091834](https://forum.rainyun.com/uploads/default/original/2X/5/561a43e0686b2955a9321b5a7c90cdb0d8362dc6.jpeg)

1. 打开浏览器，输入公网地址访问
2. 返回控制台输入`Curl + Z`和`bg N%`，将测速进程放到后台。使用`cd ../`和`./bedrock_server`启动BDS服务器

 ![IMG_20251002_091628](https://forum.rainyun.com/uploads/default/original/2X/2/270235fb0f3544af2c25d54e678e364210a2499b.jpeg)
