douyueju2912 2017-01-04 09:40
浏览 106

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

I've upgraded to Valet 2 and PHP 7.1.

When I reinstall valet and ran valet install, dnsmasq didn't start.

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 status is error (red).

When I check ports sudo lsof -i -n -P | grep TCP, dnsmasq is there:

...
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)

Even works ping to the test laravel app:

➜  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

But when I visit the url laravel-5.3.dev via the browser, I got ERR_CONNECTION_REFUSED.

dnsmasq doesn't start after restart too (brew services restart dnsmasq - even with sudo). Still the same red error status.

Don't you know, where the problem can be?

Thank you.

Jakub

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 python的qt5界面
    • ¥15 无线电能传输系统MATLAB仿真问题
    • ¥50 如何用脚本实现输入法的热键设置
    • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
    • ¥30 深度学习,前后端连接
    • ¥15 孟德尔随机化结果不一致
    • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
    • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
    • ¥15 谁有desed数据集呀
    • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100