nginx macos code example Example 1: nginx on mac brew install nginx brew services start nginx Example 2: start nginx mac brew services start nginx