php -S 不工作(使用 Firefox 的 LMDE 上的开发服务器)

php -S 不工作(使用 Firefox 的 LMDE 上的开发服务器)

PHP 5.4 带有内置的开发 Web 服务器:

http://php.net/manual/en/features.commandline.webserver.php

当我尝试按照文档所述启动服务器时,一切看起来都很好:

php -S 本地主机:3000

PHP 5.4.4-2 开发服务器于 2012 年 12 月 29 日星期六 10:56:43 启动

监听 localhost:3000 文档根目录为 /var/www

按 Ctrl-C 退出。

当我 curl localhost:3000 时,它起作用了。

但它不适用于 Firefox 17。浏览器消息很简单,即无法连接到网站。Firebug 在网络控制台中显示状态“中止”。

这是一个已知问题吗?我可以更改此行为或至少对其进行调试吗?

答案1

我找到了:D

http://support.mozilla.org/de/questions/771916

Type about:config into the address bar
Ignore the warning
Enter network.dns.disableIPv6 into the filter box
Right-click on the entry and press on toggle (it should now say false)
Close and restart FireFox 

相关内容