disable apache2 ubuntu centos 7 code example Example: how to stop a web server linux # how to stop a web server linux sudo service apache2 stop