sudo systemctl stop apache2
sudo systemctl disable apache2
sudo apt remove apache2
sudo rm -rf /etc/apache2
sudo rm -rf /var/www/html # 如果您的网站文件位于此目录下

sudo systemctl stop apache2
sudo systemctl disable apache2
sudo apt remove apache2
sudo rm -rf /etc/apache2
sudo rm -rf /var/www/html # 如果您的网站文件位于此目录下