gpt4 book ai didi

apache - 无法在 DigitalOcean 上安装 httpd

转载 作者:行者123 更新时间:2023-12-04 19:19:05 26 4
gpt4 key购买 nike

我尝试运行 apt-get install httpd安装 Apache HTTP 服务器,但出现以下错误:

    Package httpd is a virtual package provided by:
yaws 1.94-1
webfs 1.21+ds1-8.1
tntnet 2.1-2+deb7u1
ocsigenserver 2.1-1
ocsigen 1.3.4-2+b12
nginx-naxsi-ui 1.2.1-2.2+wheezy3
nginx-naxsi 1.2.1-2.2+wheezy3
nginx-light 1.2.1-2.2+wheezy3
nginx-full 1.2.1-2.2+wheezy3
nginx-extras 1.2.1-2.2+wheezy3
mini-httpd 1.19-9.3
micro-httpd 20051212-15
lighttpd 1.4.31-4+deb7u3
ebhttpd 1:1.0.dfsg.1-4.3
bozohttpd 20111118-1
boa 0.94.14rc21-3.1
apache2-mpm-worker 2.2.22-13+deb7u3
apache2-mpm-prefork 2.2.22-13+deb7u3
apache2-mpm-itk 2.2.22-13+deb7u3
apache2-mpm-event 2.2.22-13+deb7u3
aolserver4-daemon 4.5.1-15.1
aolserver4-core 4.5.1-15.1

You should explicitly select one to install.

有人可以帮忙吗。我真的被困在这一点上。我在ubuntu论坛等上查找了各种帖子。

最佳答案

就像 CS GO 说的,具体选择要安装的服务器真的很重要。使用了 3 个主要的服务器软件包。 Apache 网络服务器、NGINX 网络服务器和 Lighthttpd。

您在正确的轨道上安装它,但与 CentOS 的服务名称确实是 httpd 不同,在 Ubuntu 上它们被打包在产品名称下。假设您想在您的服务器上安装 Apache,命令将是

sudo apt-get install apache2

或者安装 lighttpd 或 nginx,将 apache2 替换为 lighttpd 或 nginx-full

祝你好运

关于apache - 无法在 DigitalOcean 上安装 httpd,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26865161/

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