我正在使用 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/ http://www.ducea.com/2006/09/11/error-servname-not-supported-for-ai_socktype/并尝试将端口设置为/etc/services
,但没有成功。我什至不确定问题是与 Perforce 还是操作系统相关。
有什么提示吗?
我在使用 Tornado/Python 应用程序时遇到了这个问题。显然,这可能会导致 https://github.com/pika/pika/issues/352#issuecomment-18704043通过将端口解释为字符串而不是整数。因此,就我而言,我需要更改启动脚本以强制将其解释为整数。
application = tornado.web.Application(...)
application.listen(int(port))
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)