properly restart nginx homebrew code example Example: restart nginx in mac sudo nginx -s stop && sudo nginx