Wilson@思源

目 录

思源绿色版和仅启动内核

see https://ld246.com/article/1735467806997
绿色版, 可以试试这两个帖子中所说的方法,我没有试过不知是否可行
https://ld246.com/article/1708223009893
https://ld246.com/article/1617534454945
仅启动内核, 应该启动SiYuan-Kernel.exe就可以了,亲测可行
比如,
C:\Users\Administrator\AppData\Local\Programs\SiYuan\resources\kernel\SiYuan-Kernel.exe --port 6806 --wd C:\Users\Administrator\AppData\Local\Programs\SiYuan\resources --workspace C:\siyuan
不指定工作空间默认就是上次最后打开的工作空间,详情可参考官方帮助文档内核参数
关闭内核可以用命令 taskkill /IM SiYuan-Kernel.exe /F
或通过pid关闭命令 taskkill /PID <具体的PID> /F
查看内核启动参数可用命令 wmic process where "name='SiYuan-Kernel.exe'" get CommandLine, ProcessId
注意,思源启动多个实例,监听多个端口其实是共享一个进程而不是多个进程。