diff --git a/docs/advance/_images/open-web-photo/api.png b/docs/advance/_images/open-web-photo/api.png new file mode 100644 index 000000000..2afcef98a Binary files /dev/null and b/docs/advance/_images/open-web-photo/api.png differ diff --git a/docs/advance/_images/open-web-photo/baotadianj.png b/docs/advance/_images/open-web-photo/baotadianj.png new file mode 100644 index 000000000..796944c21 Binary files /dev/null and b/docs/advance/_images/open-web-photo/baotadianj.png differ diff --git a/docs/advance/_images/open-web-photo/dianji.png b/docs/advance/_images/open-web-photo/dianji.png new file mode 100644 index 000000000..24c5ccd86 Binary files /dev/null and b/docs/advance/_images/open-web-photo/dianji.png differ diff --git a/docs/advance/_images/open-web-photo/index.png b/docs/advance/_images/open-web-photo/index.png new file mode 100644 index 000000000..7ca36d30a Binary files /dev/null and b/docs/advance/_images/open-web-photo/index.png differ diff --git a/docs/advance/_images/open-web-photo/install.png b/docs/advance/_images/open-web-photo/install.png new file mode 100644 index 000000000..e7d068ccf Binary files /dev/null and b/docs/advance/_images/open-web-photo/install.png differ diff --git a/docs/advance/_images/open-web-photo/mysql.png b/docs/advance/_images/open-web-photo/mysql.png new file mode 100644 index 000000000..cef539da5 Binary files /dev/null and b/docs/advance/_images/open-web-photo/mysql.png differ diff --git a/docs/advance/_images/open-web-photo/removeindex.png b/docs/advance/_images/open-web-photo/removeindex.png new file mode 100644 index 000000000..d3ee60b58 Binary files /dev/null and b/docs/advance/_images/open-web-photo/removeindex.png differ diff --git a/docs/advance/_images/open-web-photo/unzip.png b/docs/advance/_images/open-web-photo/unzip.png new file mode 100644 index 000000000..a6f059f72 Binary files /dev/null and b/docs/advance/_images/open-web-photo/unzip.png differ diff --git a/docs/advance/_images/open-web-photo/upload.png b/docs/advance/_images/open-web-photo/upload.png new file mode 100644 index 000000000..cab46ddd8 Binary files /dev/null and b/docs/advance/_images/open-web-photo/upload.png differ diff --git a/docs/advance/open-website.md b/docs/advance/open-website.md index aab428635..85c62e5b6 100644 --- a/docs/advance/open-website.md +++ b/docs/advance/open-website.md @@ -194,7 +194,7 @@ cf-cname.xingpingcn.top 不需要开启小黄云 :::warning -如果你的域名没有备案的话,请不要购买国内的虚拟主机 +如果你的域名没有备案的话,请不要购买国内的虚拟主机(因为工信部为了打击不良网站,所以只要在国内的虚拟主机或服务器要进行建站的话,域名需要备案) ::: @@ -226,3 +226,81 @@ cf-cname.xingpingcn.top 不需要开启小黄云 在这里附上源码下载[点击下载](https://b2.mcdogserver.top/1.zip) 如果你觉得这个源码不适合你,或者是你不想用别人的源码,你可以尝试去自学。这里就不附上自学的教程了 + +## 使用NamelessMC搭建网站服务 +### 使用宝塔面板搭建 +:::warning + +如果你的域名没有备案的话,请不要购买国内的服务器(因为工信部为了打击不良网站,所以只要在国内的虚拟主机或服务器要进行建站的话,域名需要备案) + +::: +#### 要准备的 +namelessmc的配置要求原文要求的是 + +PHP 7.4、8.0或8.1(推荐),具有以下扩展: + + php curl(可选) + + php-exif(可选) + + php-gd支持png和jpeg + + php mbstring + + php-mysql或php-mysqlnd + + php pdo + + php xml +还有MySQL 5.7.22或更高 或 MariaDB 10.2或更高 + +还有一台安装了Apache或NGINX或Caddy的服务器 + +这些宝塔面板都有(处php插件外) +#### 正式开始 +:::warning + +接下来的教程都默认你安装了所有依赖和有公网ip + +::: +先在网站-php项目点添加站点 +![](_images/open-web-photo/baotadianj.png) +然后按以下选择 +![](_images/open-web-photo/mysql.png) + +创建完成后点图片圈的地方 +![](_images/open-web-photo/dianji.png) + +然后删除默认文件 +![](_images/open-web-photo/removeindex.png) +然 +后上传源文件[点击下载](https://b2.mcdogserver.top/nameless-deps-dist.zip) +![](_images/open-web-photo/upload.png) + +然后解压 +![](_images/open-web-photo/unzip.png) + +然后将文件夹的东西复制到根目录 + +然后访问你的公网ip来到安装界面 +![](_images/open-web-photo/install.png) + +然后点击Continue 下一步 + +然后按照提示完成安装 +:::warning + +有时候安装完之后可能会识别不出来重启一下php就可以解决了 + +::: +完成后会跳转到仪表盘,然后记得去把API开一下,到时候可以直接和你的MC服务器连接 +![](_images/open-web-photo/api.png) + +然后它会出现连接地址和API密钥,到时候输入你插件的配置文件里面就可以实现联通了,这里就不做演示了 + +然后主页面就长这样子 +![](_images/open-web-photo/index.png) + +如果你看到这个界面那么如果你是第1次使用宝塔面板搭建网站,那么恭喜你,你成功了 + +