apache 源码编译生成 .so 文件
下面以生成 mod_rewrite.so# find . -name mod_rewrite.c //在apache的源码安装目录中寻找mod_rewrite.c文件
# cd ... //进入包含mod_rewrite.c文件的目录
# /usr/local/apache/bin/apxs -c mod_rewrite.c //apxs应指定绝对路径,apache的bin目录里
# /usr/local/apache/bin/apxs -i -a -n mod_rewrite mod_rewrite.la
如果重启apache出现这个错误module rewrite_module is built-in and can`t be loaded
表示模块是内建的,不用再调入,注释掉
#LoadModule rewrite_module modules/mod_rewrite.so
页:
[1]