This commit is contained in:
afoim
2025-07-18 12:27:16 +08:00
parent 3bcc944a47
commit c7e56a366c
483 changed files with 425 additions and 424 deletions

BIN
public/2loli.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 KiB

BIN
public/xinghui.avif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB

View File

@@ -168,7 +168,8 @@ export const siteConfig: SiteConfig = {
},
banner: {
enable: true,
src: "https://sb-r2.afo.im/assets/xinghui.avif", // Relative to the /src directory. Relative to the /public directory if it starts with '/'
src: "/xinghui.avif", // Relative to the /src directory. Relative to the /public directory if it starts with '/'
position: "center", // Equivalent to object-position, only supports 'top', 'center', 'bottom'. 'center' by default
credit: {
enable: true, // Display the credit text of the banner image

View File

@@ -2,7 +2,7 @@
category: 教程
description: 网易免费企业邮是一个免费的电子邮箱服务它最重要的特点就是可以绑定你的域名比如sudo@onani.cn并且完全免费且能收能发
draft: false
image: https://sb-r2.afo.im/myblog/img/ce9c58a1-6515-4b07-8f4d-5ae55668d9f8.webp
image: assets/images/ce9c58a1-6515-4b07-8f4d-5ae55668d9f8.webp
lang: ''
published: 2025-03-12
tags:
@@ -44,28 +44,28 @@ title: 自建邮局太麻烦?来用网易免费企业邮!绑定你的域名
登陆进去后大概是这样
![](https://sb-r2.afo.im/myblog/img/65e5b400-96d7-44c6-b16e-a7a409104c3c.webp)
![](assets/images/65e5b400-96d7-44c6-b16e-a7a409104c3c.webp)
如果你不喜欢你的账户名,比如我的就是 **erchashush** @acofork.freeqiye.com这个erchashush其实是可以更改的
在组织机构管理中点击账号管理,选择新建账号
![](https://sb-r2.afo.im/myblog/img/a20e7931-c460-4134-b1b0-0fee82f8a7fc.webp)
![](assets/images/a20e7931-c460-4134-b1b0-0fee82f8a7fc.webp)
然后写一个你想要的别名。绑定手机填你的,因为第一次登录需要验证码验证,如果填错了直接删除即可
![](https://sb-r2.afo.im/myblog/img/b9ac287d-ff90-4f8c-88ba-0d7bb1588f1c.webp)
![](assets/images/b9ac287d-ff90-4f8c-88ba-0d7bb1588f1c.webp)
然后我们需要给这个新账号提权如果你想用superadmin登录后台的话
![](https://sb-r2.afo.im/myblog/img/6f21feca-984d-444e-b80f-bf1a28e4cf79.webp)
![](assets/images/6f21feca-984d-444e-b80f-bf1a28e4cf79.webp)
接着右上角退出登录,然后使用新创建的管理员账户登录
## 绑定你的域名
前往组织机构管理 - 域名管理 - 添加域名
![](https://sb-r2.afo.im/myblog/img/2fa04b72-f0e7-43c0-9c2a-1daab62e67cb.webp)
![](assets/images/2fa04b72-f0e7-43c0-9c2a-1daab62e67cb.webp)
根据提示在你的域名提供商比如Cloudflare配置TXT记录和MX记录即可
@@ -77,8 +77,8 @@ title: 自建邮局太麻烦?来用网易免费企业邮!绑定你的域名
## 效果展示
![](https://sb-r2.afo.im/myblog/img/614794bd-d84d-4b66-b816-1d6d6ce73727.webp)
![](assets/images/614794bd-d84d-4b66-b816-1d6d6ce73727.webp)
签名和发件人头像可以通过手机的网易邮箱大师设置
![](https://sb-r2.afo.im/myblog/img/57f759bc-46fb-4f99-b6bb-751464661240.webp)
![](assets/images/57f759bc-46fb-4f99-b6bb-751464661240.webp)

View File

@@ -2,7 +2,7 @@
category: 教程
description: 使用ZerotierTailscaleCloudflare Tunnel可以实现多种内网穿透其中有适用于个人访问的也有适用于公众访问的
draft: false
image: https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-17-00-25-image.webp
image: assets/images/2024-10-28-17-00-25-image.webp
lang: ''
published: 2024-10-28
tags:
@@ -34,9 +34,9 @@ ping你的对端设备如果延迟大于200ms或者经常丢包大概率就
# 前期准备
路由器开启UPnP![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-17-08-00-image.webp)
路由器开启UPnP![](assets/images/2024-10-28-17-08-00-image.webp)
关闭路由器的IPv4IPv6防火墙 **(可选)**![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-17-09-19-image.webp)
关闭路由器的IPv4IPv6防火墙 **(可选)**![](assets/images/2024-10-28-17-09-19-image.webp)
# *使用Zerotier/Tailscale进行内网穿透*
@@ -46,29 +46,29 @@ ping你的对端设备如果延迟大于200ms或者经常丢包大概率就
## 创建Zerotier账号
前往:[ZeroTier | Global Networking Solution for IoT, SD-WAN, and VPN](https://www.zerotier.com/)。如果你进不去,请尝试挂梯子。如果看不懂英文可以开启浏览器的翻译功能![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-17-12-51-image.webp)
前往:[ZeroTier | Global Networking Solution for IoT, SD-WAN, and VPN](https://www.zerotier.com/)。如果你进不去,请尝试挂梯子。如果看不懂英文可以开启浏览器的翻译功能![](assets/images/2024-10-28-17-12-51-image.webp)
选择 `Sign up`![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-17-13-06-image.webp)
选择 `Sign up`![](assets/images/2024-10-28-17-13-06-image.webp)
如果你到了这个界面,请仍然选择`Sign up`![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-17-15-08-image.webp)
如果你到了这个界面,请仍然选择`Sign up`![](assets/images/2024-10-28-17-15-08-image.webp)
![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-17-16-52-image.webp)
![](assets/images/2024-10-28-17-16-52-image.webp)
账号创建完毕后,登录即可![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-17-17-47-image.webp)
账号创建完毕后,登录即可![](assets/images/2024-10-28-17-17-47-image.webp)
## 创建一个新的Zerotier网络组
当你账号登录成功后,会自动跳转到这个页面,点击`Create A Network`。如果没有,请访问[ZeroTier Central](https://my.zerotier.com/)
![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-17-20-24-image.webp)
![](assets/images/2024-10-28-17-20-24-image.webp)
下面的列表会增加一个新的网络组,点击它![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-17-21-31-image.webp)
下面的列表会增加一个新的网络组,点击它![](assets/images/2024-10-28-17-21-31-image.webp)
Zerotier默认的网络组模式为`Private`。即私密模式,哪怕别人知道了你的`Network ID`尝试加入你的网络组也需要你进行验证
![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-17-22-38-image.webp)
![](assets/images/2024-10-28-17-22-38-image.webp)
复制这个`Network ID`![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-17-22-13-image.webp)
复制这个`Network ID`![](assets/images/2024-10-28-17-22-13-image.webp)
---
@@ -76,15 +76,15 @@ Zerotier默认的网络组模式为`Private`。即私密模式,哪怕别人知
## Windows
前往[Download - ZeroTier](https://www.zerotier.com/download/)下载exe安装文件![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-17-25-52-image.webp)
前往[Download - ZeroTier](https://www.zerotier.com/download/)下载exe安装文件![](assets/images/2024-10-28-17-25-52-image.webp)
打开Zerotier![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-17-27-20-image.webp)
打开Zerotier![](assets/images/2024-10-28-17-27-20-image.webp)
查看右下角托盘,按照图片操作加入网络组![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-17-28-20-image.webp)![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-17-29-12-image.webp)![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-17-30-26-image.webp)
查看右下角托盘,按照图片操作加入网络组![](assets/images/2024-10-28-17-28-20-image.webp)![](assets/images/2024-10-28-17-29-12-image.webp)![](assets/images/2024-10-28-17-30-26-image.webp)
这里可以查询到你的设备ID和你在这个网络组的IP
![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-18-03-19-image.webp)
![](assets/images/2024-10-28-18-03-19-image.webp)
**然后参考:[Zerotier授权设备](#zerotier授权设备)**
@@ -92,13 +92,13 @@ Zerotier默认的网络组模式为`Private`。即私密模式,哪怕别人知
通过SSH连接上你的Linux设备
查看安装命令:[Download - ZeroTier](https://www.zerotier.com/download/)![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-17-38-19-image.webp)
查看安装命令:[Download - ZeroTier](https://www.zerotier.com/download/)![](assets/images/2024-10-28-17-38-19-image.webp)
终端执行: `curl -s https://install.zerotier.com | sudo bash`
看到这一行即安装完毕后面那一串即你的设备ID![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-17-39-23-image.webp)
看到这一行即安装完毕后面那一串即你的设备ID![](assets/images/2024-10-28-17-39-23-image.webp)
加入网络:`sudo zerotier-cli join 你的Network ID`![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-17-42-01-image.webp)
加入网络:`sudo zerotier-cli join 你的Network ID`![](assets/images/2024-10-28-17-42-01-image.webp)
**然后参考:[Zerotier授权设备](#zerotier%E6%8E%88%E6%9D%83%E8%AE%BE%E5%A4%87)**
@@ -112,7 +112,7 @@ Zerotier默认的网络组模式为`Private`。即私密模式,哪怕别人知
如图操作
![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-17-59-06-image.webp)![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-17-59-46-image.webp)
![](assets/images/2024-10-28-17-59-06-image.webp)![](assets/images/2024-10-28-17-59-46-image.webp)
**然后参考:[Zerotier授权设备](#zerotier%E6%8E%88%E6%9D%83%E8%AE%BE%E5%A4%87)**
@@ -122,9 +122,9 @@ Zerotier默认的网络组模式为`Private`。即私密模式,哪怕别人知
前往Zerotier的网页控制台[ZeroTier Central]([https://my.zerotier.com/](https://my.zerotier.com/))
授权刚才加入的设备![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-17-31-51-image.webp)
授权刚才加入的设备![](assets/images/2024-10-28-17-31-51-image.webp)
勾选然后保存![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-17-33-10-image.webp)
勾选然后保存![](assets/images/2024-10-28-17-33-10-image.webp)
---
@@ -132,9 +132,9 @@ Zerotier默认的网络组模式为`Private`。即私密模式,哪怕别人知
如果你同一个网络组里已经有两台以上的设备了可以尝试ping一下测试连通性请先确保两台设备不在同一个局域网比如手机开流量NAS用家里的无线网
IP可以在这里查看![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-18-02-00-image.webp)
IP可以在这里查看![](assets/images/2024-10-28-18-02-00-image.webp)
ping测试![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-18-07-13-image.webp)
ping测试![](assets/images/2024-10-28-18-07-13-image.webp)
---
@@ -144,7 +144,7 @@ ping测试![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-18-07-13-image.
前往:[Tailscale](https://login.tailscale.com/start)。如果你进不去,请尝试挂梯子。如果看不懂英文可以开启浏览器的翻译功能
选择任意一个登录方式![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-18-24-32-image.webp)
选择任意一个登录方式![](assets/images/2024-10-28-18-24-32-image.webp)
账号创建完毕后,登录即可
@@ -156,13 +156,13 @@ ping测试![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-18-07-13-image.
前往[Download · Tailscale](https://tailscale.com/download)下载exe安装文件
官方教程:![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-18-31-48-image.webp)
官方教程:![](assets/images/2024-10-28-18-31-48-image.webp)
## Linux飞牛OS
通过SSH连接上你的Linux设备
查看安装命令:[Download · Tailscale](https://tailscale.com/download/linux)![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-18-32-58-image.webp)
查看安装命令:[Download · Tailscale](https://tailscale.com/download/linux)![](assets/images/2024-10-28-18-32-58-image.webp)
终端执行: `curl -fsSL https://tailscale.com/install.sh | sh`
@@ -180,9 +180,9 @@ ping测试![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-18-07-13-image.
## Tailscale访问测试
前往Tailscale的网页控制台[Machines - Tailscale](https://login.tailscale.com/admin/machines)。可以查看到每个设备Tailscale分配的IP![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-18-26-58-image.webp)
前往Tailscale的网页控制台[Machines - Tailscale](https://login.tailscale.com/admin/machines)。可以查看到每个设备Tailscale分配的IP![](assets/images/2024-10-28-18-26-58-image.webp)
ping测试![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-18-41-45-image.webp)
ping测试![](assets/images/2024-10-28-18-41-45-image.webp)
---
@@ -194,7 +194,7 @@ ping测试![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-18-41-45-image.web
进入[Cloudflare One](https://one.dash.cloudflare.com/)需要绑定PayPal
如图操作创建一个Tunnel![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-18-45-41-image.webp)![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-18-45-54-image.webp)![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-18-46-22-image.webp)
如图操作创建一个Tunnel![](assets/images/2024-10-28-18-45-41-image.webp)![](assets/images/2024-10-28-18-45-54-image.webp)![](assets/images/2024-10-28-18-46-22-image.webp)
## Docker方式
@@ -202,13 +202,13 @@ ping测试![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-18-41-45-image.web
复制如图的命令
![](https://sb-r2.afo.im/fuwari-blog/img/48e9c43eb5c0fb49cc5517687698e3d9d1e60220.webp)
![](assets/images/48e9c43eb5c0fb49cc5517687698e3d9d1e60220.webp)
将其粘贴,并且复制后面的令牌![](https://sb-r2.afo.im/fuwari-blog/img/a2e18519d3782d765d7293c7a3d21031c787d575.webp)
将其粘贴,并且复制后面的令牌![](assets/images/a2e18519d3782d765d7293c7a3d21031c787d575.webp)
1Panel应用商店搜索`cloudflared`![](https://sb-r2.afo.im/fuwari-blog/img/cf2eba61f0aaa7605240187e1c46f80a3954edfa.webp)
1Panel应用商店搜索`cloudflared`![](assets/images/cf2eba61f0aaa7605240187e1c46f80a3954edfa.webp)
填入令牌![](https://sb-r2.afo.im/fuwari-blog/img/6f661ffa778b2be2e108912d3d44d8b3301df6d6.webp)
填入令牌![](assets/images/6f661ffa778b2be2e108912d3d44d8b3301df6d6.webp)
然后前往[查看IP](#查看cloudflared的ip)
@@ -216,7 +216,7 @@ ping测试![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-18-41-45-image.web
复制底下的命令然后SSH连接到Linux飞牛OS在终端输入
![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-18-46-49-image.webp)
![](assets/images/2024-10-28-18-46-49-image.webp)
然后前往[查看IP](#%E6%9F%A5%E7%9C%8Bcloudflared%E7%9A%84ip)
@@ -249,17 +249,17 @@ root@n100-debian:~# ip a
选择Debian然后复制底下的命令直接到终端执行
![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-20-00-49-image.webp)
![](assets/images/2024-10-28-20-00-49-image.webp)
如果你的环境无法连接上Github
尝试手动下载:[https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb](https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb)
然后将其通过SSH等方式传到Linux上如图终端为MobaXterm![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-29-10-18-29-image.webp)
然后将其通过SSH等方式传到Linux上如图终端为MobaXterm![](assets/images/2024-10-29-10-18-29-image.webp)
然后使用:`dpkg -i cloudflared-linux-amd64.deb`安装这个软件包
然后直接复制右边的命令到SSH终端执行![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-29-10-19-27-3dcfad6977bdecf80fc0366f257788e6.webp)
然后直接复制右边的命令到SSH终端执行![](assets/images/2024-10-29-10-19-27-3dcfad6977bdecf80fc0366f257788e6.webp)
**然后前往[配置并访问Tunnel](#%E9%85%8D%E7%BD%AE%E5%B9%B6%E8%AE%BF%E9%97%AEtunnel)**
@@ -269,7 +269,7 @@ root@n100-debian:~# ip a
在终端执行:`pkg install cloudflared`
选择`Debian`然后复制最右边的命令到终端执行![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-29-08-42-38-image.webp)
选择`Debian`然后复制最右边的命令到终端执行![](assets/images/2024-10-29-08-42-38-image.webp)
如果你无法使用Termux自带的cloudflared请尝试安装proot容器实现
依次输入命令:
@@ -288,7 +288,7 @@ dpkg -i cloudflared-linux-amd64.deb
然后直接复制右边的命令到SSH终端执行
![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-29-08-42-38-image.webp)
![](assets/images/2024-10-29-08-42-38-image.webp)
如果你无法通过令牌配置cloudflared请参见[本地方式配置cloudflared](#本地方式)
@@ -304,9 +304,9 @@ dpkg -i cloudflared-linux-amd64.deb
如图进入创建一个HTTP隧道
![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-18-49-21-image.webp)![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-18-49-44-image.webp)
![](assets/images/2024-10-28-18-49-21-image.webp)![](assets/images/2024-10-28-18-49-44-image.webp)
填写你的IP和端口非Docker模式可以直接填写localhost![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-18-53-37-image.webp)
填写你的IP和端口非Docker模式可以直接填写localhost![](assets/images/2024-10-28-18-53-37-image.webp)
## 本地方式
@@ -318,7 +318,7 @@ dpkg -i cloudflared-linux-amd64.deb
## 访问测试
成功访问![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-18-54-42-image.webp)
成功访问![](assets/images/2024-10-28-18-54-42-image.webp)
# 使用STUN打洞
@@ -328,4 +328,4 @@ dpkg -i cloudflared-linux-amd64.deb
执行:`curl -o /tmp/install.sh http://6.666666.host:6/files/golucky.sh && sh /tmp/install.sh http://6.666666.host:6/files 2.13.4`
通过`host:16601` 进入Lucky后台设置STUN穿透。如果DMZ主机不设为Lucky主机可能会失败。打码的地方即公网访问的IP和端口![](https://sb-r2.afo.im/fuwari-blog/img/2024-10-28-18-56-16-image.webp)
通过`host:16601` 进入Lucky后台设置STUN穿透。如果DMZ主机不设为Lucky主机可能会失败。打码的地方即公网访问的IP和端口![](assets/images/2024-10-28-18-56-16-image.webp)

View File

@@ -2,7 +2,7 @@
title: AI写不出优质的代码其实是你引导错了
published: 2025-06-17
description: '如今大语言模型百花齐放有开山鼻祖OpenAI的ChatGPT系列也有Anthropic开发的代码神器Claude系列。但是哪怕模型再先进再聪明如果用它的人使用的方法不对那再好的模型用起来也是笨笨的'
image: 'https://sb-r2.afo.im/myblog/img/65f8862e-2a66-4acc-8fef-c8b3dc7f5c29.webp'
image: assets/images/65f8862e-2a66-4acc-8fef-c8b3dc7f5c29.webp
tags: [AI, Prompt]
category: '教程'
draft: false
@@ -44,22 +44,22 @@ AI也会犯错并且极其容易瞎猜。不要尽信AI给出的内容
# AI推荐
[ChatGPT](https://chatgpt.com):快速,不限额。适合解决你的疑问
![](https://sb-r2.afo.im/myblog/img/c2e37057-78c9-403f-b3af-e84bdad98f1e.webp)
![](assets/images/c2e37057-78c9-403f-b3af-e84bdad98f1e.webp)
[Claude](https://claude.ai)相比于GPT更强大更擅长编写代码尤其是前端目前大部分AI IDE都接入了Claude 3.5 Sonnet及以上的模型非常适合编写可拆解易维护的小脚本
![](https://sb-r2.afo.im/myblog/img/f9adcc5e-64bc-48f0-8845-893242abec33.webp)
![](assets/images/f9adcc5e-64bc-48f0-8845-893242abec33.webp)
[VS CodeGithub Copilot](https://code.visualstudio.com/)AI IDE。由微软开发免费用户可以使用Claude 3.5 Sonnet模型但是份额较少。Pro计划10USD/m仅支持Paypal和海外卡支付
![](https://sb-r2.afo.im/myblog/img/70b6f916-ba70-45a6-b572-3b32214f0c1f.webp)
![](assets/images/70b6f916-ba70-45a6-b572-3b32214f0c1f.webp)
[Cursor](https://www.cursor.com)AI IDE。由Anysphere开发免费用户仅能使用Auto模型一般不会分配到Claude模型。Pro计划10USD/m仅支持Paypal和海外卡支付
![](https://sb-r2.afo.im/myblog/img/4287002f-eb0e-43b0-87b7-1fa43c37a497.webp)
![](assets/images/4287002f-eb0e-43b0-87b7-1fa43c37a497.webp)
[Trae国际版](https://www.trae.ai)AI IDE。由字节跳动开发需要国外IP。新用户Pro计划开通首月仅需3USD/m之后为10USD/m支持支付宝和海外卡支付。本人目前在用
![](https://sb-r2.afo.im/myblog/img/40b76f69-2c50-49d0-b861-05f8879accab.webp)
![](assets/images/40b76f69-2c50-49d0-b861-05f8879accab.webp)
> 写任何项目都完全不推荐使用网页版的任何大模型编写请使用AI IDE

View File

@@ -2,7 +2,7 @@
category: 教程
description: 阿里云云函数 FC是一个弹性的计算平台可托管多种服务。搭配AList的前后端分离部署实现比VPS更低的价格得到更好的体验
draft: false
image: https://sb-r2.afo.im/fuwari-blog/img/47518d4403328a0fcb716f0e06fc7f608e6c65b7.webp
image: assets/images/47518d4403328a0fcb716f0e06fc7f608e6c65b7.webp
lang: ''
published: 2025-01-13
tags:
@@ -36,7 +36,7 @@ title: 利用阿里云云函数 FC 搭建AList后端每月仅需5毛
5. 函数名称填写AList运行环境选择Debian 10或Debian 11代码上传方式选择从文件夹上传代码启动命令填写**./alist server --data /mnt/AList**监听端口填写5244
6. 我们需要上传代码到函数也就是AList的二进制文件我们前往 https://github.com/AlistGo/alist/releases/latest 下载最新的Linux AMD64架构的二进制文件也就是 **alist-linux-amd64.tar.gz**。将其解压,你会得到一个名为 **alist**的二进制文件,创建一个空文件夹将其放进去,然后上传这个文件夹到函数
![image](https://sb-r2.afo.im/fuwari-blog/img/QmdajYeRyt1u3BSmRdGx8uUHKamGDkwoRe4TmEFZsJsaqS)
![image](assets/images/QmdajYeRyt1u3BSmRdGx8uUHKamGDkwoRe4TmEFZsJsaqS.png)
7. 然后点击左下角的创建
@@ -59,7 +59,7 @@ title: 利用阿里云云函数 FC 搭建AList后端每月仅需5毛
# 疑难解答
1. 如果出现正在加载储存:
![9aa460cd2dc84e1debe43e9df2d342fc](https://sb-r2.afo.im/fuwari-blog/img/QmZVewYnKwCJzcShnkGTTVZJiTSUUSQi9u6pZ5rXRDK3rK)
![9aa460cd2dc84e1debe43e9df2d342fc](assets/images/QmZVewYnKwCJzcShnkGTTVZJiTSUUSQi9u6pZ5rXRDK3rK.png)
查看你的日志,是否有存储加载失败,如果有可以尝试:
1. 反复重新部署,直到能进后台然后删除那些加载失败的存储
2. https://github.com/AlistGo/alist/discussions/3976

View File

@@ -3,7 +3,7 @@ category: 教程
description: 将AList Web部署到CF Pages可以显著提升访问者的浏览体验因为静态资源都在CF的边缘节点而后端使用API交互而不是由源服务器路由所有流量既能减轻源服务器的负载又能使用CF
Pages的不回源优势一箭双雕
draft: false
image: https://sb-r2.afo.im/fuwari-blog/img/QmSmcktDEJaWdDvFQeuNTJ9ps8R3PcLWyhSrbxoLEq2b2x.webp
image: assets/images/QmSmcktDEJaWdDvFQeuNTJ9ps8R3PcLWyhSrbxoLEq2b2x.webp
lang: ''
published: 2024-10-15
tags:
@@ -28,7 +28,7 @@ title: 教你把AList的前端部署到CF Pages让你的AList秒加载
[https://github.com/alist-org/alist-web](https://github.com/alist-org/alist-web)
2. 更改项目根目录的`env.production`文件为你的后端服务器地址
![QmduQJq3TydzvLzBn47zLxp2MR1iD2sxm67EzFUFuEBvQa.webp](https://sb-r2.afo.im/fuwari-blog/img/6f2871ca5d35e1e974d89611835f3a2c7fd205e7.webp)
![QmduQJq3TydzvLzBn47zLxp2MR1iD2sxm67EzFUFuEBvQa.webp](assets/images/6f2871ca5d35e1e974d89611835f3a2c7fd205e7.webp)
3. 将仓库克隆到本地,需要安装[Git](https://git-scm.com/)
@@ -41,7 +41,7 @@ git clone git@github.com:你的用户名/你Fork的仓库
```
5. 下载汉化包:[AcoFork 的网盘](https://alist.onani.cn/guest/alist_Zh-CN)或[Crowdin - 需要登录](https://crowdin.com/project/alist/zh-CN)
![QmXVpMc7BqbXv9EaAbeptsrnhYLinvQQsu1btBE3VvDixa.webp](https://sb-r2.afo.im/fuwari-blog/img/68d31e9797edfc3c1d8a72386ebf3a643d117ce6.webp)
![QmXVpMc7BqbXv9EaAbeptsrnhYLinvQQsu1btBE3VvDixa.webp](assets/images/68d31e9797edfc3c1d8a72386ebf3a643d117ce6.webp)
6. 解压,将`alist (zh-CN)\src\lang`里面的`Zh-CN`文件夹复制到仓库下`src/lang`
7. 编辑根目录的`.gitignore`,添加一行`!/src/lang/zh-CN/`确保文件不被忽略
8. 下载[Nodejs](https://nodejs.org/zh-cn)。在根目录打开终端,生成中文需要的文件:
@@ -66,22 +66,22 @@ git push -f //强制将更改提交到远程仓库
```
10. 进入[Cloudflare 仪表盘](https://dash.cloudflare.com/),进入 Workers 和 Pages 页面
![QmW5UaUap8T2R37u5dzmKGLmUgk4qKnSMFwHBVHqvVbkVA.webp](https://sb-r2.afo.im/fuwari-blog/img/49ccd51771082fdc94eecb270caf987d257cd987.webp)
![QmW5UaUap8T2R37u5dzmKGLmUgk4qKnSMFwHBVHqvVbkVA.webp](assets/images/49ccd51771082fdc94eecb270caf987d257cd987.webp)
11. 创建一个 Pages选择连接 Git 存储库
![QmZXerKv9PVxxscAe4w4LEfAaKfiScPQEKh1UroXnCeAUr.webp](https://sb-r2.afo.im/fuwari-blog/img/9c4b9ff38d3c8810007ffe33c1a0f98cdd84b92e.webp)
![QmZXerKv9PVxxscAe4w4LEfAaKfiScPQEKh1UroXnCeAUr.webp](assets/images/9c4b9ff38d3c8810007ffe33c1a0f98cdd84b92e.webp)
12. 选择你的存储库,开始设置
![QmNdSGQrJtoqDnBx8pgDrtcfmUUfVBS9xdrN4xLgyPjyXE.webp](https://sb-r2.afo.im/fuwari-blog/img/fb97b5148c3811590609a0b85c6c1ee3c451853d.webp)
![QmNdSGQrJtoqDnBx8pgDrtcfmUUfVBS9xdrN4xLgyPjyXE.webp](assets/images/fb97b5148c3811590609a0b85c6c1ee3c451853d.webp)
13. 构建命令输入:`pnpm install && pnpm build`,构建输出目录选择`/dist`
![QmbhPdbE8f1zLKvWA6aEGJtZhmecRMVZiQbx6Zx1Lecp7J.webp](https://sb-r2.afo.im/fuwari-blog/img/c4300a94ccb16fe1383c721cbc83d1a71420e340.webp)
![QmbhPdbE8f1zLKvWA6aEGJtZhmecRMVZiQbx6Zx1Lecp7J.webp](assets/images/c4300a94ccb16fe1383c721cbc83d1a71420e340.webp)
14. 等待 Cloudflare 构建结束,为 Pages 绑定自定义域
![QmTMphu61uUF9XefBAVDVf19Jm1vLVUhhXQ9PXABy7hUpK.webp](https://sb-r2.afo.im/fuwari-blog/img/d27136b31d759898fe06041f12e7a07f07bd06b0.webp)
![QmTMphu61uUF9XefBAVDVf19Jm1vLVUhhXQ9PXABy7hUpK.webp](assets/images/d27136b31d759898fe06041f12e7a07f07bd06b0.webp)
15. 访问自定义域,查看 AList 是否正常
![QmT8GLcaxtabhifKNL8kczEtozmNvdyhzJ823RfBrcFdpm.webp](https://sb-r2.afo.im/fuwari-blog/img/345df496620a9d3faf0eceeb773813bc9ac98375.webp)
![QmT8GLcaxtabhifKNL8kczEtozmNvdyhzJ823RfBrcFdpm.webp](assets/images/345df496620a9d3faf0eceeb773813bc9ac98375.webp)
### 定制 AList[#](https://afo.im/shen-me-Cloudflare-dai-li-AList-tai-man--jiao-ni-bu-shu-qian-duan-dao-Pages-ju-jue-hui-yuan-#user-content-%E5%AE%9A%E5%88%B6-alist)
> 我们都知道 AList 支持自定义头部和内容,但是因为 Cloudflare Pages 是一个静态页面,所以我们采用硬编码方式,直接将需要自定义的内容写入仓库根目录的`index.html`
> ![Qmd47pgFsyh28NjhkLiCPPbf7iasXMWvAvZDupH8QspG64.webp](https://sb-r2.afo.im/fuwari-blog/img/c3ff113558b368da9a7aeb70f70b978f49d0eb7a.webp)
> ![Qmd47pgFsyh28NjhkLiCPPbf7iasXMWvAvZDupH8QspG64.webp](assets/images/c3ff113558b368da9a7aeb70f70b978f49d0eb7a.webp)
1. 编辑根目录的`index.html`
2. 将更改提交到暂存区并提交到远程仓库,在根目录打开终端
@@ -93,7 +93,7 @@ git push -f //强制将更改提交到远程仓库
```
3. Cloudflare Pages 会自动重新构建,等待新网页构建完成即可
![QmNZemsDHz5QLxW3V2eANghmVkfBccEpe5vMAWUCLik4o6.webp](https://sb-r2.afo.im/fuwari-blog/img/863e5bb3ef65ec2a0af03303dd3afe13fb8dd8d4.webp)
![QmNZemsDHz5QLxW3V2eANghmVkfBccEpe5vMAWUCLik4o6.webp](assets/images/863e5bb3ef65ec2a0af03303dd3afe13fb8dd8d4.webp)
### 疑难解答

View File

@@ -2,7 +2,7 @@
category: 教程
description: ArchiSteamFarm是一个Steam自动挂卡工具它可以自动识别哪些游戏没有挂卡并且自动挂卡高效率获得Steam集换式卡牌
draft: false
image: https://sb-r2.afo.im/fuwari-blog/img/QmPEHve8DdVZdwxAZ26BPgbc6cDCBaKC76VVijqVoMBY2k
image: assets/images/QmPEHve8DdVZdwxAZ26BPgbc6cDCBaKC76VVijqVoMBY2k.png
lang: ''
published: 2024-12-18
tags:
@@ -29,12 +29,12 @@ https://github.com/JustArchiNET/ArchiSteamFarm
添加机器人,简单配置即可
![image](https://sb-r2.afo.im/fuwari-blog/img/QmcoF7K5sTkd4CRGTZPmnLwheAHpSf68RkZTd4ZST41uXc)
![image](assets/images/QmcoF7K5sTkd4CRGTZPmnLwheAHpSf68RkZTd4ZST41uXc.png)
如果你配置了Steam手机验证器此时应该会弹出登录请求允许它。然后前往终端界面输入 **Y** 并回车
此时终端应该输出:**成功以 XXXXXXXXXX 的身份登录。**
![image](https://sb-r2.afo.im/fuwari-blog/img/QmcuktSJjWFmufsLmrYRsbLa9ns7pvRXKWZ5EUyirasKt6)
![image](assets/images/QmcuktSJjWFmufsLmrYRsbLa9ns7pvRXKWZ5EUyirasKt6.png)
如果此时登录的账号未被占用,则自动开始挂卡。

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 644 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 325 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Some files were not shown because too many files have changed in this diff Show More