C语言-apache mod(模块开发)-采用VS2017开发实战(windows篇)
名词解释:apxs
apxs is a tool for building and installing extension modules for the Apache HyperText Transfer Protocol (HTTP) server.
MinGW,是Minimalist GNUfor Windows的缩写。它是一个可自由使用和自由发布的Windows特定头文件和使用GNU工具集导入库的集合,
允许你在GNU/Linux和Windows平台生成本地的Windows程序而不需要第三方C运行时(C Runtime)库。
MinGW 是一组包含文件和端口库,其功能是允许控制台模式的程序使用微软的标准C运行时(C Runtime)库(MSVCRT.DLL),该库在所有的 NT OS 上有效,
在所有的 Windows 95发行版以上的 Windows OS 有效,使用基本运行时,你可以使用 GCC 写控制台模式的符合美国标准化组织(ANSI)程序,
可以使用微软提供的 C 运行时(C Runtime)扩展,与基本运行时相结合,就可以有充分的权利既使用 CRT(C Runtime)又使用 WindowsAPI功能。
一、apache mod模块 windows开发
1)
下载apxs apxs_win32.tar.gz,下载地址
http://download.csdn.net/detail/tengyunjiawu_com/9811400
2)
安装strawberryperl或active perl
下载地址: http://strawberryperl.com/releases.html
我安装的是active perl,所以还需要安装 dmake
dos命令行执行:ppm install dmake
3)解压apxs_win32.tar.gz
解压到C:\apache\apache2.4.9\bin\apxs
4)进入C:\apache\apache2.4.9\bin\apxs目录
perl Configure.pl --with-apache2=D:/wamp/bin/apache/apache2.4.9 --with-apache-prog
名词解释:apxs
apxs is a tool for building and installing extension modules for the Apache HyperText Transfer Protocol (HTTP) server.
apxs是用来编译和安装 apache 服务器的扩展模块(mod)、也能生成项目模版(下面有具体使用说明)
MinGW,是Minimalist GNUfor Windows的缩写。它是一个可自由使用和自由发布的Windows特定头文件和使用GNU工具集导入库的集合,
允许你在GNU/Linux和Windows平台生成本地的Windows程序而不需要第三方C运行时(C Runtime)库。
MinGW 是一组包含文件和端口库,其功能是允许控制台模式的程序使用微软的标准C运行时(C Runtime)库(MSVCRT.DLL),该库在所有的 NT OS 上有效,
在所有的 Windows 95发行版以上的 Windows OS 有效,使用基本运行时,你可以使用 GCC 写控制台模式的符合美国标准化组织(ANSI)程序,
可以使用微软提供的 C 运行时(C Runtime)扩展,与基本运行时相结合,就可以有充分的权利既使用 CRT(C Runtime)又使用 WindowsAPI功能。
一、apache mod模块 windows开发
1)
下载apxs apxs_win32.tar.gz,下载地址
http://download.csdn.net/detail/tengyunjiawu_com/9811400
2)
安装strawberryperl或active perl
下载地址: http://strawberryperl.com/releases.html
我安装的是active perl,所以还需要安装 dmake
dos命令行执行:ppm install dmake
3)解压apxs_win32.tar.gz
解压到C:\apache\apache2.4.9\bin\apxs
4)进入C:\apache\apache2.4.9\bin\apxs目录
perl Configure.pl --with-apache2=D:/wamp/bin/apache/apache2.4.9 --with-apache-prog