![php -S 不工作(使用 Firefox 的 LMDE 上的开发服务器)](https://linux22.com/image/1344766/php%20-S%20%E4%B8%8D%E5%B7%A5%E4%BD%9C%EF%BC%88%E4%BD%BF%E7%94%A8%20Firefox%20%E7%9A%84%20LMDE%20%E4%B8%8A%E7%9A%84%E5%BC%80%E5%8F%91%E6%9C%8D%E5%8A%A1%E5%99%A8%EF%BC%89.png)
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