如何在ubuntu下安装apache【菜鸟来袭,请高手指教】
老师布置了一个作业,让搭建apache。在ubuntu下。第一次接触ubuntu,给了个sudo apt-get install apache2命令。但是不会用这个命令啊!求大神指教
[解决办法]
。。。。直接在终端里输入这个命令就ok了
前提是电脑要能够链接互联网。。。。。
安装之后,会自动启动,默认http根目录是/VAR/WWW
[解决办法]
zhu@ubuntu:~$ sudo apt-get install apache2[sudo] password for zhu: Reading package lists... DoneBuilding dependency tree Reading state information... DoneThe following extra packages will be installed: apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libaprutil1-dbd-sqlite3 libaprutil1-ldapSuggested packages: apache2-doc apache2-suexec apache2-suexec-customThe following NEW packages will be installed: apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libaprutil1-dbd-sqlite3 libaprutil1-ldap0 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]?
[解决办法]