![]() Here is a minimal working example showing a website in your home folder: worker_processes 1 The configuration file is located at /opt/homebrew/etc/nginx/nf. Now, localhost:8080 should show Welcome to nginx!. To install and launch Nginx on startup, we use: brew install nginx To install, simply execute the command shown on the official website:Īlthough Apache is natively included with macOS, we propose here to install Nginx, particularly lightweight and easily configurable. ![]() HomeBrew is a package manager for macOS, that allows to easily install various Unix applications. We will see how to install Nginx, PHP-FPM and MariaDB (MySQL) on macOS thanks to Homebrew package manager. Seeking a satisfactory solution to create a local web server for programming in macOS with PHP and MySQL, I was disappointed that the turnkey solutions were far from equaling the WAMP that may exist on Windows.īut I forgot macOS is a Unix system, and unlike Windows, it’s perfectly possible to create a customized local server with some packages. Setting up a Nginx server on macOS – Sylvain Durand sylvain durand Setting up a Nginx server on macOS
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |