HTTP::Server::Simple 无法安装

发布于 2024-11-01 00:11:51 字数 468 浏览 7 评论 0原文

考试失败了,不知道怎么解决。

#   Failed test 'Environment - REMOTE_ADDR'
#   at t/04cgi.t line 64.
#                   'HTTP/1.0 200 OK
# Content-Type: text/html
# Content-Length: 27
# 
# REMOTE_ADDR: 17x.x.x.x'
#     doesn't match '/REMOTE_ADDR: 127.0.0.1/'
t/04cgi.t .......... 19/23 # Looks like you failed 1 test of 23.
t/04cgi.t .......... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/23 subtests 

显然环境变量设置为VPS的主机ip;不是127.0.0.1?

Fails a test, don't know how to get around it.

#   Failed test 'Environment - REMOTE_ADDR'
#   at t/04cgi.t line 64.
#                   'HTTP/1.0 200 OK
# Content-Type: text/html
# Content-Length: 27
# 
# REMOTE_ADDR: 17x.x.x.x'
#     doesn't match '/REMOTE_ADDR: 127.0.0.1/'
t/04cgi.t .......... 19/23 # Looks like you failed 1 test of 23.
t/04cgi.t .......... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/23 subtests 

Apparently an environmental variable is set to the VPS's host ip; not 127.0.0.1?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

酒中人 2024-11-08 00:11:51

强制安装步骤。

要找出测试失败的原因,请单步执行调试器。有趣的部分是HTTP::Server::Simple::lookup_localhost。也许您的 /etc/hosts 文件已被冻结。

force the install step.

To find out why the test fails, step through the debugger. The interesting part is HTTP::Server::Simple::lookup_localhost. Perhaps your /etc/hosts file is frobnitzed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文