how to restart nginx brew code example Example: restart nginx in mac sudo nginx -s stop && sudo nginx