运行结果如下:
I 2025/04/19 11:59:24 working.go:178:
___ ___ ___ ___
/ /\ ___ ___ /__/\ / /\ /__/\
/ /:/_ / /\ /__/| \ \:\ / /::\ \ \:\
/ /:/ /\ / /:/ | |:| \ \:\ / /:/\:\ \ \:\
/ /:/ /::\ /__/::\ | |:| ___ \ \:\ / /:/~/::\ _____\__\:\
/__/:/ /:/\:\ \__\/\:\__ __|__|:| /__/\ \__\:\ /__/:/ /:/\:\ /__/::::::::\
\ \:\/:/~/:/ \ \:\/\ /__/::::\ \ \:\ / /:/ \ \:\/:/__\/ \ \:\~~\~~\/
\ \::/ /:/ \__\::/ ~\~~\:\ \ \:\ /:/ \ \::/ \ \:\ ~~~
\__\/ /:/ /__/:/ \ \:\ \ \:\/:/ \ \:\ \ \:\
/__/:/ \__\/ \__\/ \ \::/ \ \:\ \ \:\
\__\/ \__\/ \__\/ \__\/
I 2025/04/19 11:59:24 runtime.go:87: kernel is booting:
* ver [3.1.28]
* arch [amd64]
* os [openwrt]
* pid [4439]
* runtime mode [prod]
* working directory [/home/siyuan/resources/]
* read only [false]
* container [std]
* database [ver=20220501]
* workspace directory [/home/siyuan/workspace/]
I 2025/04/19 11:59:24 conf.go:129: loaded conf [/home/siyuan/workspace/conf/conf.json]
I 2025/04/19 11:59:24 conf.go:147: initialized the specified language [zh_CN]
I 2025/04/19 11:59:24 conf.go:521: user has disabled [Google Analytics]
I 2025/04/19 11:59:24 runtime.go:139: use network proxy [system]
I 2025/04/19 11:59:24 serve.go:209: kernel [pid=4439] http server [0.0.0.0:6806] is booting
I 2025/04/19 11:59:24 pandoc.go:146: built-in pandoc [ver=3.5, bin=/home/siyuan/workspace/temp/pandoc/bin/pandoc]
I 2025/04/19 11:59:24 conf.go:1136: pandoc initialized, set pandoc bin to [/home/siyuan/workspace/temp/pandoc/bin/pandoc]
I 2025/04/19 11:59:24 working.go:545: database [/home/siyuan/workspace/temp/siyuan.db] size [9.17 MB]
I 2025/04/19 11:59:24 working.go:545: database [/home/siyuan/workspace/temp/blocktree.db] size [725 kB]
I 2025/04/19 11:59:24 working.go:545: database [/home/siyuan/workspace/temp/history.db] size [24.58 kB]
I 2025/04/19 11:59:24 working.go:545: database [/home/siyuan/workspace/temp/asset_content.db] size [24.58 kB]
I 2025/04/19 11:59:24 conf.go:873: tree/block count [0/0]
I 2025/04/19 11:59:24 working.go:224: kernel booted
I 2025/04/19 11:59:24 font.go:58: loaded system fonts [0] in [0ms]
I 2025/04/19 11:59:24 box.go:77: auto stat [trees=0, blocks=0, dataSize=53.57 kB, assetsSize=0 B]
I 2025/04/19 11:59:24 disk.go:33: disk usage [total=21.13 GB, used=3.64 GB, free=17.48 GB]
W 2025/04/19 12:00:24 process.go:66: no active UI proc, continue to check from attached ui processes after 15s
W 2025/04/19 12:00:39 process.go:72: no active UI proc, continue to check from all processes after 15s
W 2025/04/19 12:00:54 process.go:80: confirmed no active UI proc, exit kernel process now
I 2025/04/19 12:00:54 conf.go:618: exiting kernel [force=false, setCurrentWorkspace=true, execInstallPkg=1]
I 2025/04/19 12:00:55 database.go:1322: closed database
I 2025/04/19 12:00:55 conf.go:1057: cleared workspace temp
I 2025/04/19 12:00:55 sync.go:798: sync websocket closed
I 2025/04/19 12:00:56 conf.go:688: exited kernel
日志显示,应该在 15 秒内,没有检测到 UI,内核会自动停止运行。我尝试了,如果在 15 秒内,进行一个 get 请求,内核则不会停止。
我的运行命令如下,指定了 wd 目录:
/home/siyuan/resources/kernel/SiYuan-Kernel --wd=/home/siyuan/resources/ --workspace=/home/siyuan/workspace/ --accessAuthCode=admin --ssl=true --port=6806 --lang=zh_CN --mode=prod
还有,我的运行环境为 OpenWRT x86 环境,求帮助,如何屏蔽 UI 检测呢?
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于