正如title说的,我可以访问本地主机,但是我的应用程序需要从twitter通过127.0.0.1:8000和127.0.0.1:8000被“拒绝连接”回调。
编辑:这看起来是IPv6冲突,我可以通过(Apache ) http://127.0.0.1:8888/访问本地服务器
EDITEDIT:如果我在端口9000上提供一个有角度的应用程序,我可以在浏览器中使用127.0.0.1:9000访问它,但是如果我运行php artisan serve --port=9000,那么我仍然会得到一个连接拒绝错误。
因此,我的问题被改进为:如何让php artisan serve (对于laravel应用程序)与http://127.0.0.1:8000/一起工作?
Lewiss-MBP:stripe2 Lewis$ php artisan serve Laravel development server started on http://localhost:8000/
肉:
OSX YOSOMITE 10.10.5
MAMP (非pro)被设置为Apache而不是NGINX。
东主:file -b /etc/hosts === ASCII英文本
127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost
Lewiss-MBP:applications Lewis$ telnet -6 ::1 8000 </dev/null Trying ::1... Connected to localhost. Escape character is '^]'. Connection closed by foreign host.
Lewiss-MBP:applications Lewis$ telnet -4 127.0.0.1 8000 </dev/null Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host
发布于 2015-08-20 07:03:02
解决了问题:经过多次拖网捕捞,如果我运行php artisan serve --host 0.0.0.0,我的应用程序运行良好,twitter应用程序回调到127.0.0.1也一样。
问题一定是艺术家如何倾听。
https://stackoverflow.com/questions/32081279
复制相似问题