Lazy loaded image
serv00
Serv00上搭建NotionNext并保活
字数 499阅读时长 2 分钟
2024-11-3
2025-2-22
type
status
date
slug
summary
tags
category
icon
password
 

1.获取Notion ID


2.在cloudflare创建博客域名

获取serv00的IPV4

notion image
notion image

3.开放1个随机端口并开启应用权限

notion image
notion image

4.在serv00添加已托管的博客域名

notion image
notion image

5.下载NotionNext包

由于作者的项目是一直更新的,所以用我fork作者的包,以防后面不适配需要的 .next 包
进入 public_html 文件夹下
下载NotionNext,并进入NotionNext文件夹
由于serv00系统无法构建 .next 包,所以我用Ubuntu系统打包好了,直接用我打包好的就行。

6.安装所需依赖

7.创建start.sh运行脚本

去文件管理器NotionNext目录下创建start.sh文本
serv00账号博客域名你的NotionID名你的端口替换为你自己的并保存
下面同理

8.创建restart.sh保活脚本

去文件管理器的NotionNext目录下创建restart.sh文本

8.赋权创建的脚本

9.将restart.sh放入cloudflare启动程序并保活

先尝试运行程序,在serv00添加Cron
放入restart.sh路径
notion image
访问你的域名
notion image
最后删除cron任务,并将前面的restart.sh路径放入CF保活

📎 CF保活教程

📎 文章资料

 
上一篇
为serv00自行构建打包
下一篇
Serv00上部署Artalk并连接NotionNext

评论
Loading...