- 1. 下载文件: 选择红色部分
- Apache HTTP Server 2.4.41 (httpd): 2.4.41 is the latest available version 2019-08-14
- Downloading Apache for Windows
- 图标(网速较慢):">3. 选择 图标(网速较慢):
- 4. 解压文件到指定目录下,比如R:\programs\apache-httpd-2.4.41-o102s-x64-vc14-r2,为apache24/bin目录配置环境变量。
- 5. 更改apache24/conf/httpd.conf文件内容如下:
- 6.解决错误:AH00526: Syntax error on line 34 of R:/programs/apache-httpd-2.4.41-o102s-x64-vc14-r2/Apache24/conf/extra/httpd-ahssl.conf:SSLProtocol: Illegal protocol ‘TLSv1.3’
- 7. 安装服务器:
- 8. 启动服务:
- 9. 对于默认服务器的安装/卸载/停止/终止/重启的命令如下:
1. 下载文件: 选择红色部分
Apache HTTP Server 2.4.41 (httpd): 2.4.41 is the latest available version 2019-08-14
The Apache HTTP Server Project is pleased to announce the release of version 2.4.41 of the Apache HTTP Server (“Apache” and “httpd”). This version of Apache is our latest GA release of the new generation 2.4.x branch of Apache HTTPD and represents fifteen years of innovation by the project, and is recommended over all previous releases!
For details, see the Official Announcement and the CHANGES_2.4 and CHANGES_2.4.41 lists.
- Source: httpd-2.4.41.tar.bz2 [ PGP ] [ SHA256 ]
- Source: httpd-2.4.41.tar.gz [ PGP ] [ SHA256 ]
- Binaries
- Security and official patches
- Other files
-
2. 选择红色部分:
Downloading Apache for Windows
The Apache HTTP Server Project itself does not provide binary releases of software, only source code. Individual committers may provide binary packages as a convenience, but it is not a release deliverable.
If you cannot compile the Apache HTTP Server yourself, you can obtain a binary package from numerous binary distributions available on the Internet.
Popular options for deploying Apache httpd, and, optionally, PHP and MySQL, on Microsoft Windows, include: - Apache Lounge
- Bitnami WAMP Stack
- WampServer
- XAMPP
3. 选择 图标(网速较慢):
Apache 2.4.x OpenSSL 1.0.2 VC14
Built using C sources from the ASF and OpenSSL on Visual Studio 2015 (VC14).
Note: VC14 binaries do not run on Windows XP or Server 2003
See readme_first.html file for details.
4. 解压文件到指定目录下,比如R:\programs\apache-httpd-2.4.41-o102s-x64-vc14-r2,为apache24/bin目录配置环境变量。
5. 更改apache24/conf/httpd.conf文件内容如下:
1.更改apache的安装路径:
Define SRVROOT "R:\programs\apache-httpd-2.4.41-o102s-x64-vc14-r2\Apache24"
ServerRoot "${SRVROOT}"
2.更改监听端口号:
#Listen 12.34.56.78:80
Listen 81
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName localhost:81
6.解决错误:AH00526: Syntax error on line 34 of R:/programs/apache-httpd-2.4.41-o102s-x64-vc14-r2/Apache24/conf/extra/httpd-ahssl.conf:SSLProtocol: Illegal protocol ‘TLSv1.3’
<IfModule ssl_module>
#Include conf/extra/httpd-ssl.conf
#下行注释掉:
#Include conf/extra/httpd-ahssl.conf
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
7. 安装服务器:
httpd -k install
8. 启动服务:
httpd -k start
9. 对于默认服务器的安装/卸载/停止/终止/重启的命令如下:
httpd -k install
httpd -k uninstall
httpd -k stop
httpd -k shutdown
httpd -k restart