日期:2014-05-16  浏览次数:20605 次

如何在ubuntu下安装apache【菜鸟来袭,请高手指教】
老师布置了一个作业,让搭建apache。在ubuntu下。第一次接触ubuntu,给了个sudo apt-get install apache2命令。但是不会用这个命令啊!求大神指教


------解决方案--------------------
。。。。直接在终端里输入这个命令就ok了
前提是电脑要能够链接互联网。。。。。

安装之后,会自动启动,默认http根目录是/VAR/WWW

------解决方案--------------------
PHP code
zhu@ubuntu:~$ sudo apt-get install apache2
[sudo] password for zhu: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common
  libaprutil1-dbd-sqlite3 libaprutil1-ldap
Suggested packages:
  apache2-doc apache2-suexec apache2-suexec-custom
The following NEW packages will be installed:
  apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common
  libaprutil1-dbd-sqlite3 libaprutil1-ldap
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,679 kB of archives.
After this operation, 5,064 kB of additional disk space will be used.
Do you want to continue [Y/n]?

------解决方案--------------------
探讨
老师布置了一个作业,让搭建apache。在ubuntu下。第一次接触ubuntu,给了个sudo apt-get install apache2命令。但是不会用这个命令啊!求大神指教