PHP 5.4 附帶一個內建的開發網頁伺服器:
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 退出。
當我捲曲 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