问题描述
我正在尝试将Valet设置为与Laravel项目一起使用,但是遇到标题中提到的问题.我正在运行的Valet的当前版本是2.0.3.
I'm trying to setup Valet to use with my Laravel projects, but ran into the problem mentioned in the title. The current version of Valet I'm running is 2.0.3.
到目前为止,这是我尝试过的:
So far this is what I've tried:
- 重新安装代客+重新启动
- 重新安装了php7.0 --with-fpm
- 重新启动 nginx
- 已更新的全球作曲家
- 通过brew安装并运行 mysql
- 已安装并启动 dnsmasq
- 重新启动所有服务+通过 Brew 启动所有服务
- 将代客停车在不同的文件夹中,但获得相同的效果!"
- Reinstalled valet + restart
- Reinstalled php7.0 --with-fpm
- Restarted nginx
- Updated composer global
- Installed and ran mysql through brew
- Installed and started dnsmasq
- Restarted all services + started all services via Brew
- Parked valet in different folders, but getting the same 'it works!'
我看过其他遇到相同问题的人,但他们似乎使用的是代客1. *.他们的解决方案对我不起作用.我没有收到任何错误消息,并且可以像您期望的那样对 foo.dev 进行ping操作.
I've looked at other people with the same problem, but they seem to run Valet 1.*. The solutions for them does not work for me. I don't get any error messages, and pinging foo.dev work as you would expect.
非常感谢您提供任何可以帮助我解决此问题的反馈.
Really appreciate any feedback which can help me resolve this problem.
推荐答案
检查apachectl
状态.使用sudo apachectl stop
停止apachectl
.然后运行:valet install
运行后:valet restart
Check apachectl
status. Stop apachectl
using sudo apachectl stop
.Then run:valet install
After run:valet restart
这篇关于Laravel-Valet 2. *仅返回“有效!"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!