无法在本地启动 Go 服务器。

huangapple go评论86阅读模式
英文:

Cannot start Go server on localhost

问题

今天,我在MAC OS X 10.12.2上遇到了一个非常奇怪的问题,涉及到Go语言的本地服务器。突然之间,在成功构建之后,我无法启动我的应用程序。每次都会收到一个"Killed 9"的消息。

这个问题可能是由两个依赖项引起的:

  1. github.com/xeodou/go-sqlcipher
  2. github.com/shirou/gopsutil/host

如果没有它们,应用程序可以启动,但我需要它们。

我已经使用这两个依赖项两个月了,之前没有遇到任何问题。问题突然发生在成功构建之后。我将整个代码库克隆到了两个环境中,一个是Mac OS X 10.12.2,另一个是Windows 8,但都没有出现问题。这两台机器上的应用程序都能正常启动。

可能是由于不断进行的应用程序检查和创建的大量本地服务器,MAC OS 阻止了一些进程,但我找不到问题出在哪里。

英文:

Today, i encountered a very strange problem concerning a local server in Go on MAC OS X 10.12.2. Suddenly, after a successful build, i cannot start my application. Every time i get a "Killed 9" message.

This problem could be caused by two dependencies:

  1. github.com/xeodou/go-sqlcipher
  2. github.com/shirou/gopsutil/host

Without them the application can start, but I need them.

I have been using those two dependencies for two months and I haven't had any problems with them. The problem happened suddenly after a successful build. I cloned the whole repository into two environments with Mac OS X 10.12.2 and Windows 8 and I didn't get any problems. The applications started on both machines.

Probably due to constant application checks and dozens of local servers created, MAC OS blocks some processes, but I couldn't find out where the problem is.

答案1

得分: 2

今天作为Xcode 8.3的一部分发布的Sierra命令行工具似乎存在一些问题。当我运行我的Go项目时,立即出现了"Killed: 9"的错误,导致项目完全崩溃。我不得不回滚到8.2版本的命令行工具。

英文:

There seems to be some issue with the Sierra command line tools that were released today as part of xcode 8.3. Totally hosed my go project with immediate Killed: 9 upon running it. I had to revert back to command line tools from 8.2

huangapple
  • 本文由 发表于 2017年3月28日 23:25:10
  • 转载请务必保留本文链接:https://go.coder-hub.com/43073636.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定