Note: MAC uses brew to configure nginx, php, mysql, phpfpm, redis
I used the built-in apache and php configuration on the mac before,it was all patchwork made by Baidu,no record. This time I changed it to nginx environment & # xff0c; write a note to record it & # xff0c; for later viewing & # xff0c; also hope to borrow flowers & offer Buddha & # xff0c; to help others. The content is all pieced together from the Internet,Thank you to all the selfless and dedicated gods on the Internet. Install xcode-select When installing some applications through brew, you need to use this program to compile ( If the words are not accurate, please forgive me) ;,So in order to avoid installation failure,It is recommended to install first; xcode-select –install install homebrew /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent. com/Homebrew/install/master/install)” [ The system will , add a series of files in the /usl/local/* directory] The above information sources : Install nginx and The configuration command is as follows brew install nginx Test modification is successful sudo nginx -t Start sudo nginx Restart sudo nginx -s reload After installing nginx, run nginx -s reload directly, the following error will occur& #xff1a; The reason for this error is , there is no nginx.pid file ;…