nginx for mac code example Example 1: nginx by brew brew install nginx Example 2: start nginx mac brew services start nginx