1.编译方法1
.
/configure
--prefix=
/usr/local/apache
\
--with-mpm=prefork \
--
enable
-so --
enable
-modules=
"all"
\
--
enable
-mods-shared=
"all"
make
&&
make
cp
support
/apachectl
/etc/init
.d
/httpd
chmod
+x
/etc/init
.d
/httpd
2.编译方法2
.
/configure
--prefix=
/usr/local/apache
\
--
enable
-so \
--
enable
-rewrite \
--with-mpm=worker
make
&&
make
install
3.查看Apache 静态模块
/usr/local/apache/bin/apachectl
-l
4.查看动态模块
ls
/usr/local/apache/modules
5.启动Apache
/usr/local/apache/bin/apachectl
start
转载于:https://blog.51cto.com/jwh5566/1356954