编译apache模块

以前编译安装的时候忘记了mod_rewrite
hanyh@hanyh-sina:~/download/httpd-2.2.14/modules/mappers$/opt/apache/bin/apxs -c mod_rewrite.c
/opt/apache/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/opt/apache/include  -I/opt/apache/include   -I/opt/apache/include   -c -o mod_rewrite.lo mod_rewrite.c && touch mod_rewrite.slo
/opt/apache/build/libtool --silent --mode=link gcc -o mod_rewrite.la  -rpath /opt/apache/modules -module -avoid-version    mod_rewrite.lo


hanyh@hanyh-sina:~/download/httpd-2.2.14/modules/mappers$ sudo /opt/apache/bin/apxs -i -a -n mod_rewrite mod_rewrite.la
[sudo] password for hanyh:
默认写入到apache配置文件的模块 名字有错误,需要手动改改

你可能感兴趣的:(apache,C++,c,gcc,C#)