restart apache debian 6 code example Example 1: apache restart ubuntu sudo service apache2 restart Example 2: start apache service systemctl status apache2