【发布时间】:2014-05-29 12:43:15
【问题描述】:
我正在使用 Vagrant 运行 Centos 虚拟机。机器似乎运行正常,但是当我尝试同步 Perforce 时,我可以看到以下错误:
[vagrant@vagrant-c5-x86_64 ~]$ /perforce/p4 sync -f ...
Perforce client error:
Connect to server failed; check $P4PORT.
failed.TCP connect to perforce.xxx.com:1666
Servname not supported for ai_socktype
我已阅读此http://www.ducea.com/2006/09/11/error-servname-not-supported-for-ai_socktype/ 并尝试在/etc/services 中设置端口,但没有成功。我什至不确定问题是否与 Perforce 或操作系统有关。
有什么提示吗?
【问题讨论】:
-
P4PORT 设置正确了吗?
-
是的,这是我的第一个猜测。从一开始就正确设置。另外,我将 P4CHARSET 更改为“utf8”和“none”。目前还没有结果...
-
“telnet perforce.xxx.com 1666”有效吗? (即建立连接)
-
它确实有效。机器可以互相看到。
-
请参阅stackoverflow.com/questions/43600239/… 以获取类似问题的答案,尽管在这种情况下答案涉及 Perl 脚本中的语法错误。不过,也许它为这个问题的答案提供了线索。
标签: sockets centos ip port perforce