Laravel Valet + dnsmasq不起作用(dnsmasq状态错误)

时间:2017-01-04 09:40:48

标签: php macos laravel dnsmasq laravel-valet

我已升级到代客2和PHP 7.1。

当我重新安装代客并运行valet install时,dnsmasq没有启动。

laravel brew services list
Name                       Status  User Plist
dnsmasq                    error   root /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
elasticsearch              started wise /Users/wise/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist
...
...

dnsmasq状态为错误(红色)。

当我检查端口sudo lsof -i -n -P | grep TCP时,dnsmasq就在那里:

...
dnsmasq   31919         nobody    5u  IPv4 0xebbcb007e91d5067      0t0    TCP 192.168.0.101:53 (LISTEN)
dnsmasq   31919         nobody    7u  IPv4 0xebbcb007ea2bfc87      0t0    TCP 127.0.0.1:53 (LISTEN)
dnsmasq   31919         nobody    9u  IPv6 0xebbcb007e3cdecb7      0t0    TCP [fe80:8::d830:c1ff:fe65:f27d]:53 (LISTEN)
dnsmasq   31919         nobody   11u  IPv6 0xebbcb007dfd20c77      0t0    TCP [fe80:4::3e15:c2ff:fedb:2ae0]:53 (LISTEN)
dnsmasq   31919         nobody   13u  IPv6 0xebbcb007dfd211d7      0t0    TCP [fe80:1::1]:53 (LISTEN)
dnsmasq   31919         nobody   15u  IPv6 0xebbcb007e3cdd737      0t0    TCP [::1]:53 (LISTEN)
nginx     32053           root    6u  IPv4 0xebbcb007e91d3e77      0t0    TCP *:80 (LISTEN)
nginx     32064           wise    6u  IPv4 0xebbcb007e91d3e77      0t0    TCP *:80 (LISTEN)
nginx     32065           wise    6u  IPv4 0xebbcb007e91d3e77      0t0    TCP *:80 (LISTEN)
nginx     32066           wise    6u  IPv4 0xebbcb007e91d3e77      0t0    TCP *:80 (LISTEN)
nginx     32067           wise    6u  IPv4 0xebbcb007e91d3e77      0t0    TCP *:80 (LISTEN)

甚至可以将ping用于测试laravel应用程序:

➜  laravel ping laravel-5.3.dev 
PING laravel-5.3.dev (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.041 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.224 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.233 ms

但是当我通过浏览器访问网址laravel-5.3.dev时,我得到了ERR_CONNECTION_REFUSED

dnsmasq在重启后也没有启动(brew services restart dnsmasq - 即使使用sudo也是如此)。仍然是相同的红色错误状态。

难道你不知道问题出在哪里?

谢谢。

的Jakub

0 个答案:

没有答案