Ubuntu安装Web服务器-Apache篇

发布于 2013-12-27

讲解环境 linux ubuntu Ubuntu 10.04.3 x64 +Apache2   一、登陆你的系统,记得使用root 二、安装Apache 1、输入如下命令安装 #apt-get install apache2 正常情况下会给出如下提示,说明Apache2默认已经安装好了: [email protected]:~# apt-get install apache2 Reading package lists... Done Building dependency tree... Done apache2 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2、开启 Apache2 的伪静态 如果希望开启Apache2 伪静态 rewrite 支持,输入如下命令安装 #a2enmod rewrite 正常情况下会给出如下提示,说明已经安装成功: [email protected]:~# a2enmod rewrite Module rewrite installed; run /etc/init.d/apache2 force-reload to ...