how to restart nginx mac code example
Example 1: restart nginx in mac
sudo nginx -s stop && sudo nginx
Example 2: nginx: invalid option: "restart"
/etc/init.d/nginx restart
sudo nginx -s stop && sudo nginx
/etc/init.d/nginx restart