1. 发现问题
安装sponge出现以下问题。
# sponge run
panic: cgroup cpu init failed!err:=not implemented yet
goroutine 1 [running]:
github.com/zhufuyi/sponge/pkg/shield/cpu.init.0()
/Users/jackyue/gopath/pkg/mod/github.com/zhufuyi/sponge@v1.4.0/pkg/shield/cpu/stat.go:33 +0x14c
2. 解决问题
# vim ~/.bash_profile
export CGO_ENABLED="1"
# source ~/.bash_profile
# go env
# go install github.com/zhufuyi/sponge/cmd/sponge@latest
# sponge init
# sponge tools