首页
编程技巧
开发教程
工具箱
修改go的默认代理
发布于: 2021-02-20 | 分类:
golang
在命令行使用下面命令完成代理设置
go env -w GOPROXY=https://goproxy.cn,direct
热门分类
数据库 (23)
Linux (21)
Windows (10)
Python (10)
golang (9)
Javascript (7)
JAVA (6)
PHP (5)
.net/c# (3)
Android (3)
C++ (3)
热门标签
报错
linux
性能排查
Windows 10
内存
进程
数据库调优
Java
python
慢查询
推荐阅读
Go程序CPU占用过高与内存持续上涨的pprof定位方法(火焰图、heap profile与goroutine泄漏排查)
Go报错context deadline exceeded与dial tcp i/o timeout的排查方法(http.Client超时设置、Transport三个超时字段与数据库连接池定位)
Go报错fatal error: concurrent map read and map write的排查与解决方法(go run -race定位、sync.RWMutex与sync.Map选型)
go mod tidy报错missing go.sum entry与module lookup disabled by GOPROXY=off的解决方法(GOPROXY镜像、GOPRIVATE与校验数据库配置)
Golang交叉编译后的程序在Linux上报错cannot execute binary file与no such file or directory的排查与解决方法(GOOS、GOARCH、CGO_ENABLED)