nginx httpd_conf restart code example Example 1: restart nginx sudo systemctl restart nginx Example 2: stop gnix sudo service nginx stop