Home > Article > Backend Development > Install nginx on Mac
Mac installation nginx
nginx: a high-performance HTTP and reverse proxy server...
Requires homebrew (official website address: http://brew.sh/)
If it prompts that the installation is successful, you can skip the following steps~
If you also get an error message: brew link pcre, please follow the steps below~
If the prompt is successful, re-execute: brew install nginx –build-from-source
If you still get an error like me, execute the following command~
Tip: The pkgconfig file is not writable, which means that the permissions are insufficient, so you need to increase the permissions or modify the user group ~
Before modification:
After modification:
Then re-execute the installation command
After the installation is complete, execute the command nginx to start
View help nginx -h
The above introduces how to install nginx on Mac, including all aspects. I hope it will be helpful to friends who are interested in PHP tutorials.