Laravel Valet无法正常运作. 127.0.0.1连接被拒绝 [英] Laravel Valet not working. 127.0.0.1 Connection Refused

查看:488
本文介绍了Laravel Valet无法正常运作. 127.0.0.1连接被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图使代客泊车工作.访问127.0.0.1时出现连接被拒绝的情况,这是我进入* .dev网站设置之一时收到的消息.我已经确定apache已停止并且在整个地方都在谷歌搜索并且无法找到解决方案.

Trying to get the valet setup working. It appears when accessing 127.0.0.1 the connection is refused which is the message I get when I go to one of the *.dev sites setup. I've made sure apache is stopped and have been Googling all over the place and unable to find a solution.

有没有人遇到这个问题或对下一步的尝试有什么想法?我以前已经安装了httpd22,但是现在我用brew卸载了它,从而将127.0.0.1从响应/Users/Rick/Sites的列表目录更改为现在拒绝连接.

Has anyone come across this or have any ideas on what to try next? I previously had httpd22 installed but I've now uninstalled this with brew which changed the 127.0.0.1 from responding with a list directory of /Users/Rick/Sites to now connection refused.

推荐答案

已解决此问题.一段时间后,我按照指南进行了操作,以获取本地开发人员设置,问题是我在/Library/LaunchDaemons中有一个.plist xml文件,该文件将端口80转发到8080以获得127.0.0.1.

Fixed this. I followed a guide a while back to get a local dev setup and the issue was I had a .plist xml file within /Library/LaunchDaemons that forwarded port 80 to 8080 for 127.0.0.1.

本指南中的使用端口80运行"使我花了很多时间试图解决这一问题:

The Run with Port 80 on this guide has caused me hours time trying to solve this one haha:

https://echo.co/blog/os-x-109-local-development-environment-apache-php-and-mysql-homebrew

这篇关于Laravel Valet无法正常运作. 127.0.0.1连接被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆