go install github.com/go-delve/delve/cmd/dlv@latest 到go的path目录下的bin目录,找到dlv执行文件,cp到/usr/local/bin目录下 注意:dlv要和go的版本最好保持一致