- 博客(7)
- 收藏
- 关注
原创 Mac:添加PATH变量 vs /.bash_profile: command not found
第一步:创建.bash_profile文件,~表示在~目录下,.表示隐藏文件,打开终端,输入命令如下。export PATH=$PATH:添加要加入PATH的变量。command + s保存文件.
2023-10-16 19:40:28
425
原创 Mac:cannot call GetTrip: rpc error: code = Unavailable desc = connection error: desc = “transport: E
添加如下语句:defer conn.Close()生成conn之后,一定要defer关闭conn。
2023-10-12 18:57:29
360
原创 Mac : protoc-gen-go-grpc: program not found or is not executable
【代码】Mac : protoc-gen-go-grpc: program not found or is not executable。
2023-10-11 18:26:30
346
原创 MAC:xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun
mac: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun 错误提示!等待几分钟,安装完成之后,重新安装即可。
2023-10-05 15:25:48
474
原创 Get https://sum.golang.org/lookup/xxxxxx: dial tcp 2 i/o timeout---错误解决
dial tcp 216.58.200.49:443: i/o timeout,则是因为Go 1.13设置了默认的GOSUMDB=可以设置 GOSUMDB="sum.golang.google.cn", 这个是专门为国内提供的sum 验证服务。-w 标记 要求一个或多个形式为 NAME=VALUE 的参数, 并且覆盖默认的设置。在Go 1.13中,我们可以通过GOPROXY来控制代理。如果在运行go mod vendor时,提示Get。私有仓库自动忽略验证。
2023-10-05 12:02:08
48
原创 vscode 报错package xxx is not in GOROOT(path) 或者go: to add module requirements and sums: go mod tidy
vscode 报错package xxx is not in GOROOT(path) 或者go: to add module requirements and sums: go mod tidy 或者 gopls requires a module at the root of your workspace
2022-07-02 14:02:17
3433
原创 MySQL安装与配置
具体安装与配置参考下面链接https://www.cnblogs.com/mysqlanzhuang/p/13336212.htmlMySQL配置时出现的bugmysqld: Can't create directory 'D: oftwares\mysql\mysql-8.0.21-winx64\data\' (OS errno 2 - No such file or directory)2020-07-20T08:16:23.069050Z 0 [System] [MY-013169] [
2020-07-20 17:03:07
942
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人