git error:无法查找xyz.com(port< none>)(ai_socktype不支持Servname) [英] git error :Unable to look up xyz.com (port <none>) (Servname not supported for ai_socktype)
问题描述
我从git获得这个错误消息。这是什么意思?如何修复?
I'm getting this error message from git.What's this mean ? How to fix?
推荐答案
我不认为这与Git有关,而是链接到Git所在的服务器运行。
I don't think this is related to Git, but rather linked to the server on which Git is running.
请参阅本文
$ b
See this article
这意味着什么:ai_socktype不支持Servname。
经过一些其他尝试后,我终于看到了这个问题...... NTP端口没有在/ etc / services
中定义,这是错误的根源。
系统不知道如何在没有这些的情况下创建ntp连接。所以我将以下几行添加到/ etc / services
what could this mean: "Servname not supported for ai_socktype".
After some other tries I have finally seen the problem… NTP ports were not defined in/etc/services
and this was the root of the error.
The system didn’t know how to make ntp connections without that. So I’ve added the following lines to/etc/services
ntp 123/tcp
ntp 123/udp
之后,
ntpdate
开始按预期工作...
and after this
ntpdate
started working as expected…
在尝试对这些文件进行任何修改之前,请咨询您的管理员(除非这是您的个人服务器)
Check with your administrator before attempting any modification of those files (unless this is your personal server)
这篇关于git error:无法查找xyz.com(port< none>)(ai_socktype不支持Servname)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!