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