请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

本地的mac本的go系统启动不了

本地的mac本的go系统启动不了了,网上查了下好像是电脑的最大连接数的问题,但是没找到解决办法

GOROOT=/usr/local/go #gosetup
GOPATH=/Users/tal/go #gosetup
/usr/local/go/bin/go build -o /private/var/folders/45/8wmktjj91wj6644z7b7p2tcc0000gn/T/___go_build_main_go -gcflags "all=-N -l" /Users/tal/web/go_framework/main.go #gosetup
/Applications/GoLand.app/Contents/plugins/go/lib/dlv/mac/dlv --listen=localhost:49610 --headless=true --api-version=2 --check-go-version=false --only-same-user=false exec /private/var/folders/45/8wmktjj91wj6644z7b7p2tcc0000gn/T/___go_build_main_go -- #gosetup
API server listening at: 127.0.0.1:49610
debugserver-@(#)PROGRAM:LLDB  PROJECT:lldb-1103.0.22
 for x86_64.
Got a connection, launched process /private/var/folders/45/8wmktjj91wj6644z7b7p2tcc0000gn/T/___go_build_main_go (pid = 1326).
2020/07/06 14:16:58 dial tcp :0: connect: can't assign requested address
Exiting.

Debugger finished with exit code 0

正在回答 回答被采纳积分+3

1回答

ccmouse 2020-07-07 17:34:53

看起来像启动成功了,但是程序运行报错。运行的是什么代码?

0 回复 有任何疑惑可以回复我~
  • 我也是这样
    GOROOT=/usr/local/go #gosetup
    GOPATH=/Users/cola/go #gosetup
    /usr/local/go/bin/go build -o /private/var/folders/lt/5b_tj1cj1_500k9lt2slnfz40000gn/T/___go_build_imooc_com_ccmouse_learngo_crawler_distributed imooc.com/ccmouse/learngo/crawler_distributed #gosetup
    /private/var/folders/lt/5b_tj1cj1_500k9lt2slnfz40000gn/T/___go_build_imooc_com_ccmouse_learngo_crawler_distributed #gosetup
    panic: dial tcp: missing address
    
    goroutine 1 [running]:
    main.main()
            /Users/cola/Documents/code/demo/coding-180/crawler_distributed/main.go:37 +0x30e
    
    Process finished with exit code 2
    回复 有任何疑惑可以回复我~ 2020-07-16 12:38:53
  • 解决了
    回复 有任何疑惑可以回复我~ 2020-07-16 15:12:25
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信