寫一個腳本,然后執(zhí)行就可以啦
#!/bin/bash
sudo apt-get --purge remove apache-common
sudo apt-get --purge remove apache
sudo rm -rf /var/www
sudo rm -rf /etc/libapache2-mod-jk
dpkg -l |grep apache2|awk '{print $2}'|xargs dpkg -P
寫一個腳本,然后執(zhí)行就可以啦
#!/bin/bash
sudo apt-get --purge remove apache-common
sudo apt-get --purge remove apache
sudo rm -rf /var/www
sudo rm -rf /etc/libapache2-mod-jk
dpkg -l |grep apache2|awk '{print $2}'|xargs dpkg -P