Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
langbash
sudo service apache2 stop
sudo service apache2 start
sudo service apache2 restart # restart will restart the service (safer, as not all services support reload)
sudo service apache2 reload # Somebodyreload explainwill re-load the differenceconfiguration files, with little or no downtime. I knowNot butall don'tservices havesupport theit energy tonight. (source: http://askubuntu.com/questions/105200/what-is-the-difference-between-service-restart-and-service-reload)

Before Ubuntu12,

Code Block
languagebash
sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 start
sudo /etc/init.d/apache2 restart
sudo /etc/init.d/apache2 reload

...