Valet installation cannot connect to php

the operation is as follows:
1.brew install php70
2.brew install mysql
3.brew update
4.composer global require laravel/valet
5.vi ~ / .bash_profile
export PATH= "$PATH:$HOME/.composer/vendor/bin"
6.source ~ / .bash_profile has been written in the file to restart the terminal

error was reported in the last valet install:

how to solve it? Baidu has nothing, ji

Mar.04,2021

$ brew install php
$ brew install php7.1
-sharp for @179
$ ln -s /usr/local/Cellar/php@7.1/7.1.16 /usr/local/Cellar/php/7.1.16
-sharp for @187
$ ln -s /usr/local/Cellar/php/7.1.16/bin/php /usr/local/bin/php
$ valet install

address


brew link php71-- force ends the old connection and reopens the new connection

Menu