【问题标题】:Laravel Valet sites connection refused on port 80Laravel Valet 站点连接在端口 80 上被拒绝
【发布时间】:2018-06-11 17:00:37
【问题描述】:

自从 Chrome 和 Safari 开始在 .dev TLD 上强制进行 HTTPS 重定向以来,我在连接到我的 Laravel Valet 网站时遇到了问题。

在不知道 Chrome 和 Safari 已经做到这一点的情况下,我将 Valet 从 1.2 更新到了,并且没有考虑先签入 Firefox(doh!????)。我已经在 High Sierra (10.13.2) 上安装了 Laravel Valet (2.0.6) 的最新稳定版本,完全删除了 homebrew/php/php70 的运行版本并重新安装以确保现在已将 TLD 更改为 .test。

我可以 ping 域而不会丢失任何数据包,但是当我运行时

curl oldabp.test --verbose

我明白了

* Rebuilt URL to: oldabp.test/
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connection failed
* connect to 127.0.0.1 port 80 failed: Connection refused
* Failed to connect to oldabp.test port 80: Connection refused
* Closing connection 0
curl: (7) Failed to connect to oldabp.test port 80: Connection refused

我还使用this article 中的命令清除了 dns 缓存,重新启动代客服务并重新启动。我在每个步骤后重新测试,输出保持不变。

【问题讨论】:

    标签: nginx dnsmasq connection-refused port80 laravel-valet


    【解决方案1】:

    我找到了一个类似问题here 的堆栈溢出答案,它成功了。在valet install 步骤中,我注意到它安装并启动了nginx,我不记得它在我之前多次调用valet restart 时重新启动了nginx,尽管它告诉我它已成功重新启动。它归结为已经解决的非常奇怪的行为。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-02-12
      • 1970-01-01
      • 1970-01-01
      • 2019-12-18
      • 2021-06-19
      • 2017-02-11
      • 1970-01-01
      相关资源
      最近更新 更多