HTTP Server :Apache的安装
Apache2.4下载
进入apache官网:https://httpd.apache.org/download.cgi
下载后解压,
例子:解压到D盘下
打开D:\Apache24\conf\httpd.conf
修改几个地方
SRVROOT
默认值:Define SRVROOT "c:/Apache24"
修改后:
端口
默认值:Listen 80
修改后:
路径
默认值:
DocumentRoot "${SRVROOT}/htdocs"
<Directory "${SRVROOT}/htdocs">
修改后:
好了,作为静态HTTP服务器可以使用了
在命令窗口启动:D:\Apache24\bin>httpd.exe
访问index.html页面