HTTP Server :Apache的安装

Apache2.4下载

进入apache官网:https://httpd.apache.org/download.cgi

HTTP Server :Apache的安装

HTTP Server :Apache的安装

 

HTTP Server :Apache的安装

下载后解压,

例子:解压到D盘下

打开D:\Apache24\conf\httpd.conf

修改几个地方

SRVROOT

        默认值:Define SRVROOT "c:/Apache24"

        修改后:HTTP Server :Apache的安装

端口

        默认值:Listen 80

        修改后:HTTP Server :Apache的安装

路径

        默认值:
        DocumentRoot "${SRVROOT}/htdocs"
        <Directory "${SRVROOT}/htdocs">

        修改后:
        HTTP Server :Apache的安装

好了,作为静态HTTP服务器可以使用了

在命令窗口启动:D:\Apache24\bin>httpd.exe

HTTP Server :Apache的安装

访问index.html页面

HTTP Server :Apache的安装