Horje Website
remove apache ubuntu Code Example | Shell/Bash
remove apache2 from ubuntu
 
  1. #stop the apache2 service
  2. $ sudo systemctl stop apache2
  3. #remove apache2 packages
  4. $ sudo apt-get purge apache2 apache2-utils apache2-bin apache2.2-common
  5. # cleanup
  6. $ sudo apt-get autoremove
  7. # check if the apache has been removed:
  8. #1- following command line should return a blank line
  9. $ which apache2
  10. # 2- following command line should return apache2: Failed to start apache2.service: Unit apache2.service not found.
  11. $ sudo systemctl start apache2
remove apache ubuntu
 
  1. sudo apt autoremove
  2. sudo apt remove apache2
  3. sudo apt-get purge apache2 apache2-utils apache2-bin apache2.2-common
Published:
February 26, 2021
Author:
admin
Category:
Live Code, Shell/Bash Code
Views:
14

This article was posted in Live Code, Shell/Bash Code and tagged , , . Bookmark the permalink. Follow comments with the RSS feed for this post.Post a Comment or leave a trackback: Trackback URL.

Leave a Reply

Your email address will not be published. Required fields are marked *

 

Horje © 2011 - 2022