MacOS Monterey 12.3 install python2.7, php, replace Homebrew with domestic sources

Original link:

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.

Install python2.7

Manually install Python2.7, the problem is solved after installation.

Download address:

Homebrew replaced with domestic address

 Apple computer general installation script (recommended to complete the installation in a few minutes): /bin/zsh -c "$(curl -fsSL" Apple Computer Extremely Fast Installation Script (Lite version installs in a few seconds): /bin/zsh -c "$(curl -fsSL" speed Mac uninstall script: /bin/zsh -c "$(curl -fsSL" Common errors go to the following address to view Linux computer installation script: rm ; wget ; bash Linux computer uninstall script: rm ; wget ; bash

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

Organized from:

This article is reprinted from:
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment