本文档说明了如何在 ubuntu 操作系统下安装 Apache 的方法。

 

如果你使用命令行工具,你可以使用下面的命令进行安装:

root@verani-iweb2:/usr/local/tomcat/conf# sudo apt-get install apache2[/code]输出:[code]root@verani-iweb2:/usr/local/tomcat/conf# sudo apt-get install apache2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  bind9utils
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libaprutil1-dbd-sqlite3 libaprutil1-ldap ssl-cert
Suggested packages:
  apache2-doc apache2-suexec apache2-suexec-custom openssl-blacklist
The following NEW packages will be installed:
  apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libaprutil1-dbd-sqlite3 libaprutil1-ldap ssl-cert
0 upgraded, 8 newly installed, 0 to remove and 45 not upgraded.
Need to get 3,247kB of archives.
After this operation, 10.8MB of additional disk space will be used.
Do you want to continue [Y/n]? 

这里你需要输入 y 然后回车继续安装。

在 ubuntu 中安装 Apache 2 Web 服务器_Web

 

在 ubuntu 中安装 Apache 2 Web 服务器图文教程 - 计算科学 / 系统和容器 - OSSEZ