feat: 系统调优 Go 版后端完整源码

- 19 个接口全部实测验收通过 (2026-08-08)
- 结构: main.go + core/consts + gsysctl + gtuner + server
- 含 build_go.sh 官方部署结构构建脚本 (amd64/arm64 交叉编译)
- 数据无缝衔接 Python 版遗留 (快照/state/审计日志)
- 备份自 156:/root/goddhv (2026-08-09)
This commit is contained in:
shishi
2026-08-09 10:12:57 +08:00
commit 2f79b22936
12 changed files with 1256 additions and 0 deletions
Executable
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
export LANG=C
# 测试用 socket 路径(不碰真实部署)
export APP_SOCKET=/tmp/goddhv_test.sock
pkill -f goddhv_main 2>/dev/null
rm -f /tmp/goddhv_test.sock
nohup /tmp/goddhv_main > /tmp/goddhv_main.log 2>&1 &
sleep 1
echo "started, pid=$!"
ls -la /tmp/goddhv_test.sock 2>/dev/null
cat /tmp/goddhv_main.log 2>/dev/null | head -5