我试着运行apt-get install httpd来安装Apache,但是我得到了以下错误:
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论坛上查过各种帖子,等等。
发布于 2014-11-11 21:28:19
就像CS GO所说的,具体选择要安装的服务器是非常重要的。有三个主要的服务器包被使用。Apache and服务器、NGINX and服务器和Lighthttpd。
您在正确的轨道上安装了它,但是与CentOS不同的是,在Ubuntu上,服务名称实际上是httpd,它们是在产品名称下打包的。假设您想在服务器上安装Apache,则命令如下
sudo apt-get install apache2另外,若要安装lighttpd或nginx,请将apache2替换为lighttpd或nginx-full。
祝好运
https://stackoverflow.com/questions/26865161
复制相似问题