gpt4 book ai didi

linux - 删除旧安装后在linux中安装apache2

转载 作者:太空宇宙 更新时间:2023-11-04 04:20:43 25 4
gpt4 key购买 nike

linux ubuntu lucid中搜索安装apache web服务器时,我发现一些文章使用名称apache2,而其他文章使用httpd。.apt-get install apache2是正确的安装方法吗?

我想删除当前安装的所有 apache2,并重新安装所有内容。我应该使用

sudo apt-get remove --purge apache2

我目前在 /etc/apache2

中有 apache

最佳答案

apache2 是 Ubuntu 的 Apache httpd 版本 2 分支的名称(我认为当前使用的是 2.2)。有关 Ubuntu 软件包信息的最佳来源可能是它自己的文档;参见https://help.ubuntu.com/10.04/serverguide/httpd.html 。但是,是的,这两个命令是正确的。

关于linux - 删除旧安装后在linux中安装apache2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13523483/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com