在我将 php 从 7.3 更新到 7.4 后,代客不工作。我已经尝试重新安装 valet、php、nginx 和 dnsmasq,但它仍然无法正常工作。现在 ngix 服务器正在运行,但我无法访问我的项目。对于每个项目 url,我都会收到错误 502 Bad Gateway。
服务正在运行,但 brew 服务未显示正确的状态。
dnsmasq unknown root /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
gitlab-runner started user /Users/user/Library/LaunchAgents/homebrew.mxcl.gitlab-runner.plist
mysql@5.7 started user /Users/user/Library/LaunchAgents/homebrew.mxcl.mysql@5.7.plist
nginx unknown root /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
php error root /Library/LaunchDaemons/homebrew.mxcl.php.plist
php@7.4 unknown root /Library/LaunchDaemons/homebrew.mxcl.php@7.4.plist
redis started user /Users/user/Library/LaunchAgents/homebrew.mxcl.redis.plist
Nginx 错误日志
2021/01/27 16:35:21 [crit] 35081#0: *1 connect() to unix:/Users/user/.config/valet/valet.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://unix:/Users/user/.config/valet/valet.sock:", host: "devtest.test", referrer: "http://devtest.test/"