Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lavrentiev/1b5a39a158a1f286ff93065add5a2c8e to your computer and use it in GitHub Desktop.
Save lavrentiev/1b5a39a158a1f286ff93065add5a2c8e to your computer and use it in GitHub Desktop.
ps -lef|grep -i nginx:|awk '{ print $2}'|xargs kill -9
nginx -t && brew services stop nginx && brew services start nginx
Current = PHP 7.3.24-(to be removed in future macOS) (cli) (built: Dec 21 2020 21:33:25) ( NTS )
brew update && brew install mailhog
brew unlink php@7.2 && brew link --force --overwrite php@7.4
где для unlink указывается версия PHP которую вы хотите отключить у себя, а для link версия которую требуется подключить
==== PHP 8
brew install php@8.0
brew unlink php@7.4 && brew link --force --overwrite php@8.0
-- /usr/local/etc/php/8.0
==== PHP 7.4
brew install php@8.0
brew unlink php@8.0 && brew link --force --overwrite php@7.4
-- /usr/local/etc/php/8.0/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment