项目地址
Github: https://github.com/xykt/komari-agent-win7_win8_legacy
声明:仓库采用低版本Windows环境编译自Komari-agent(https://github.com/komari-monitor/komari-agent),使用时请遵循原作品的说明文档及软件许可
Komari-Server(Dashboard主控端) for Win7/8/2008/2012请移步帖子:https://www.nodeseek.com/post-543834-1
komari-agent-win7_win8_legacy
众所周知,Go 官方从 1.21 开始不支持 Windows 7 / 8以及其对应的衍生版本(包括Server 2008 / 2012等),而Go 1.23引入了大量新语法,如新 API(如 unsafe.SliceData、any、WithCancelCause),依赖库(x/sys、oauth2、x/net、x/sync 等)也全面切断旧版Windows支持,这些新特性的广泛应用,造成了很多较新的基于Go代码的程序无法运行在Win7 / 8这一类老系统上。Komari是基于Go 1.23开发,因此也不能免俗,原生地不支持Win10以前的老版本Windows系统。
Windows 家用版支援
| Windows 版本 | 原生komari-agent | komari-agent_386_legacy(32位) | komari-agent_amd64_legacy(64位) |
|---|---|---|---|
| Windows XP SP3 | ✖ | ✔ | ✖ |
| Windows Vista | ✖ | ✔ | ✖ |
| Windows 7 | ✖ | ✔ | ✔ |
| Windows 8 | ✖ | ✔ | ✔ |
| Windows 8.1 | ✖ | ✔ | ✔ |
| Windows 10 | ✔ | ✔ | ✔ |
| Windows 11 | ✔ | ✔ | ✔ |
Windows Server支援
| Windows Server 版本 | 原生komari-agent | komari-agent_386_legacy(32位) | komari-agent_amd64_legacy(64位) |
|---|---|---|---|
| Windows Server 2003 R2 | ✖ | ✔ | ✖ |
| Windows Server 2008 | ✖ | ✔ | ✖ |
| Windows Server 2008 R2 | ✖ | ✔ | ✔ |
| Windows Server 2012 | ✖ | ✔ | ✔ |
| Windows Server 2016 | ✔ | ✔ | ✔ |
| Windows Server 2019 | ✔ | ✔ | ✔ |
| Windows Server 2022 | ✔ | ✔ | ✔ |
本编译版解决了原生兼容性问题,支持在Win7 / Win8全系列系统上运行komari-agent

安装方法(二选一)
一键命令法(系统需支持Powershell)
- 下载tools/enable-tls1.2.reg,运行,重启系统
- 在Powershell执行一键命令(必须勾选禁用自动更新)
- 下载对应的komari-agent二进制文件(komari-agent_386_legacy32位或komari-agent_amd64_legacy64位)到C:\Program Files\Komari,重命名komari-agent.exe替换原版文件
- 键盘Win+R,运行services.msc,找到Komari Agent Service,右键启动
手动安装(不支持Powershell或者一键命令报错)
- 下载对应的komari-agent二进制文件(komari-agent_386_legacy32位或komari-agent_amd64_legacy64位)到C:\Program Files\Komari,重命名komari-agent.exe
- 下载tools/nssm.exe
- 命令行执行
nssm install "Komari Agent Service" "C:\Program Files\Komari\komari-agent.exe" -e [主控URL] -t [Token令牌] --disable-auto-update注意替换你的主控URL和Token令牌 - 键盘Win+R,运行services.msc,找到Komari Agent Service,右键属性,启动类型选自动,点启动,确认
牛
🐂🍺
6的
666
不是有一个 rust 版本 agent 嘛,不更香?
666
@vanplus #6 额,还真不知道,刚从哪吒切过来,
早知道不折腾了,实测rs版不兼容,还是要折腾@vanplus #6 我又看了一下,rust版本的agent也依赖win10 api,所以理论上win7/8无法编译更无法运行,实测在2008r2上确实不行,报错。所以老系统我这个目前是唯一解
你真的很优秀