Original link: https://chegva.com/5428.html
Recent education discount → 2022 Apple education discount Mac buying guide channel finally replaced 17 Macs that have been used for 5 years to second-tier, but migrated to a new Mac → Use Migration Assistant to migrate content to a new Mac I found that the old system python2.7 and php have been removed before, and some scripts can’t run, so I can only go to the Internet to search and reinstall. Mark it and give it to those in need.
Manually install Python2.7, the problem is solved after installation.
Download address: https://www.python.org/ftp/python/2.7.18/python-2.7.18-macosx10.9.pkg
Homebrew replaced with domestic address
Apple computer general installation script (recommended to complete the installation in a few minutes): /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" Apple Computer Extremely Fast Installation Script (Lite version installs in a few seconds): /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" speed Mac uninstall script: /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)" Common errors go to the following address to view https://gitee.com/cunkai/HomebrewCN/blob/master/error.md Linux computer installation script: rm Homebrew.sh ; wget https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh ; bash Homebrew.sh Linux computer uninstall script: rm HomebrewUninstall.sh ; wget https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh ; bash HomebrewUninstall.sh
Install php, nginx, mysql using the homwbrew installation package tool
# install php brew install php # install nginx brew install nginx # install mysql brew install mysql # Start, close and restart php and mysql services respectively using brew services start|stop|restart php/mysql # And the service settings of nginx need to add sudo in front of the command line because it involves the underlying files of the system sudo brew services start|stop|restart nginx
This article is reprinted from: https://chegva.com/5428.html
This site is for inclusion only, and the copyright belongs to the original author.