在 Ubuntu 上全新安装 Apache2 [英] Fresh Apache2 installation on Ubuntu

查看:44
本文介绍了在 Ubuntu 上全新安装 Apache2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Ubuntu 上卸载了损坏的 Apache2,当我重新/安装 Apache2 时,它将恢复与旧文件相同的文件.

I uninstalled a corrupted Apache2 on Ubuntu and when I re/install Apache2 it will restore the same files as the old one.

我想重新安装 apache2.

I want to do a fresh installation of apache2.

推荐答案

使用 sudo apt-get uninstall 是不够的,那会保留配置.
要完全卸载,请使用 sudo apt-get purge apache2.

It is not enough to use sudo apt-get uninstall, that will keep the configuration.
For a complete uninstall, use sudo apt-get purge apache2.

您可能也有兴趣阅读 Ubuntu Stack Exchange 网站上的此问答,其中涵盖了相同的问题.

You may also be interested in reading this Q&A on the Ubuntu Stack Exchange site, which covers the same problem.

这篇关于在 Ubuntu 上全新安装 Apache2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆