如何在Ubuntu卸载Apache2
时间:2020-07-27 12:59:42 来源:igfitidea点击:
我们可以使用apt-get purge命令卸载Apache2在Ubuntu中。
但首先,运行'dpkg -l |grep -i apache2'命令检查Ubuntu服务器上是否安装了Apache。
要卸载Apache2,请运行以下命令:
apt-get purge apache2*
之后,运行“apt-get autoremove”命令,以删除最初安装在Ubuntu上的所有不必要的包,以满足Apache2 Web服务器的依赖项。
apt-get autoremove
如果要重新安装Apache Web服务器,请运行“apt install apache2”命令。