# 在 ubuntu 中安装 Apache 2 Web 服务器图文教程

**URL:** <https://www.isharkfly.com/t/ubuntu-apache-2-web/9353>\
**Category:** DevOps\
**Tags:** apache\
**Created:** [June 20, 2011, 8:53am UTC](https://www.isharkfly.com/t/ubuntu-apache-2-web/9353 "2011-06-20T08:53:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [June 20, 2011, 8:53am UTC](https://www.isharkfly.com/t/ubuntu-apache-2-web/9353/1 "2011-06-20T08:53:51Z")

</div>

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

```auto
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 然后回车继续安装。

![](https://www.isharkfly.com/images/transparent.png)
