Laravel代客 [英] Laravel valet It works

查看:88
本文介绍了Laravel代客的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装Laravel valet,但是我一直在获取(当我访问domain.dev时):

I'm trying to install Laravel valet but I keep getting (when I visit domain.dev):

It works! 

我已经尝试了很多.例如:

I already tried a lot. For example:

remove valet 
stop apache (apachectl stop)
composer global require laravel/valet
valet install
valet restart

但这对我不起作用.我还把Laravel Homestead安装在一个无聊的盒子里.也许这与它有关?我可以访问我的Homestead网站.

But that does not work for me. I've also installed Laravel Homestead in a vagrant box. Perhaps that has something to do with it? I can visit my Homestead sites.

如何解决此问题?

推荐答案

有效!"永远是来自Apache的消息. 必须关闭Apache才能使Laravel Valet正常工作.

"It works!" will always be a message from Apache. Apache has to be turned off for Laravel Valet to work.

我看到您曾经尝试过这些:

I see you have tried these before:

  • $ stop apache (apachectl stop)
  • $ sudo apachectl -k stop
  • $ stop apache (apachectl stop)
  • $ sudo apachectl -k stop

我有同样的问题.请尝试以下命令,然后确保再次重启代客! 这已为我修复:

I had the same problem. Try with the command below and then after be sure to restart valet again! This fixed it for me:

$ sudo apachectl stop
$ valet restart

这篇关于Laravel代客的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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