手动编译安装
- 构建前端静态文件:bash
git clone https://github.com/komari-monitor/komari-web cd komari-web npm install npm run build - 构建后端:bash将步骤1中生成的
git clone https://github.com/komari-monitor/komari cd komaridist打包为tar + zstd -19,并复制主题配置文件。后端启动时会将归档解压到内存中使用:bash如果系统尚未安装mkdir -p web/public/defaultTheme tar -cf /tmp/komari-dist.tar -C ../komari-web/dist . zstd -19 -T0 -f /tmp/komari-dist.tar -o web/public/defaultTheme/dist.tar.zst rm -f /tmp/komari-dist.tar cp ../komari-web/komari-theme.json web/public/defaultTheme/zstd,请先安装对应发行版的软件包。bashCGO_ENABLED=1 go build -o komari - 运行:bash默认监听
./komari server -l 0.0.0.0:2577425774端口,访问http://localhost:25774。