apache 2 restart ubuntu 10.04 code example Example: restart apache sudo systemctl restart apache2 # or sudo service apache2 restart