我有代客安装程序,并且在Laravel项目上运行良好。我可以访问mysite.test并按需加载项目。但是,当我运行命令代客共享时,出现“无法连接到127.0.0.1端口4040:连接被拒绝”错误。
我尝试更新作曲家,更新自制软件并重新安装代客,但错误消息仍然存在。如果我运行brew服务列表,则以下服务都显示为正在运行;
dnsmasq started root /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
mysql@5.7 started root /Library/LaunchDaemons/homebrew.mxcl.mysql@5.7.plist
nginx started root /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
php started root /Library/LaunchDaemons/homebrew.mxcl.php.plist
我不相信Apache正在运行。尝试停止该服务时收到以下错误;
/System/Library/LaunchDaemons/org.apache.httpd.plist: Could not find specified service
运行代客共享后收到的完整错误如下。
ERROR: Tunnel 'command_line' specifies invalid address 'Sites.
ERROR: Warning: Class 'Tightenco\Collect\Support\Debug\Dumper' not found in /Users/darren/.composer/vendor/tightenco/collect/src/Collect/Support/alias.php on line 18
ERROR:
ERROR: Warning: Class 'Tightenco\Collect\Support\Debug\HtmlDumper' not found in /Users/darren/.composer/vendor/tightenco/collect/src/Collect/Support/alias.php on line 18
ERROR: test:80': too many colons in address Sites.
ERROR: Warning: Class 'Tightenco\Collect\Support\Debug\Dumper' not found in /Users/darren/.composer/vendor/tightenco/collect/src/Collect/Support/alias.php on line 18
ERROR:
ERROR: Warning: Class 'Tightenco\Collect\Support\Debug\HtmlDumper' not found in /Users/darren/.composer/vendor/tightenco/collect/src/Collect/Support/alias.php on line 18
ERROR: test:80
Darrens-MacBook-Pro:Sites darren$ Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
Failed to connect to 127.0.0.1 port 4040: Connection refused
In Request.php line 1028:
Unable to connect to "http://127.0.0.1:4040/api/tunnels": 7 Failed to conne
ct to 127.0.0.1 port 4040: Connection refused
fetch-share-url
我认为PHP类警告是无关的。尝试解决此问题的任何帮助将不胜感激。
编辑:
运行sudo brew服务启动-全部以确保所有服务确实已经启动会导致以下错误;
/Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist: service already loaded
Error: Failure while executing; `/bin/launchctl bootstrap system /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist` exited with 133.
答案 0 :(得分:0)
经过数小时的调试,终于解决了该问题。特别是在此过程中更新了'symfony / polyfill-php72','symfony / var-dumper','tightenco / collect',因此问题一定与这些软件包之一有关。其他所有软件包都从缓存中加载。
composer global remove laravel/valet
composer self-update
composer global require laravel/valet
valet install
valet restart