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
+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash
export LANG=C
export PATH=$PATH:/usr/local/go/bin
pkill -f goddhv_main 2>/dev/null
rm -f /tmp/goddhv_test.sock
APP_SOCKET=/tmp/goddhv_test.sock nohup /tmp/goddhv_main > /tmp/goddhv_main.log 2>&1 &
PID=$!
sleep 1.5
echo "server pid=$PID"
ls -la /tmp/goddhv_test.sock 2>/dev/null && echo "SOCKET_READY"
echo "=== log ==="
cat /tmp/goddhv_main.log
echo "=== client test ==="
python3 /tmp/test_client.py
pkill -f goddhv_main 2>/dev/null
echo "done"