如何在 Mac OS 中阻止 Laravel 代客自动启动

ove*_*ack 5 macos laravel-5

代客服务器与apache冲突,如何停止自启动,自启动的原理是什么?谢谢!

CRa*_*von 8

如果您运行,valet uninstall如果您想使用它,则必须重新安装 valet。我在安装中所做的就是从注册的启动服务中删除启动代理。为此,您必须使用 launchctl :

launchctl remove homebrew.mxcl.dnsmasq
launchctl remove homebrew.mxcl.nginx
launchctl remove homebrew.mxcl.php
launchctl remove homebrew.mxcl.php@7.4; //and other versions of php loaded. 
Run Code Online (Sandbox Code Playgroud)

请参阅https://rakesh.com/mac/macos-launchctl-commands/

那么如果你想开始代客泊车,你就必须这样做

valet start
Run Code Online (Sandbox Code Playgroud)

请参阅https://laravel.com/docs/8.x/valet#other-valet-commands/

如果要停止所有服务,请在命令行中输入

valet stop
Run Code Online (Sandbox Code Playgroud)