Apache的编译

出自小鱼工作室

跳转到: 导航, 搜索

目录

官方网站

http://httpd.apache.org

一般编译

一般来说worker(即多线程模型)比较省资源(与prefork多进程模型相比),可靠性也不错 rewrite模块一般是必备的模块之一

./configure --prefix=/usr/local/httpd --enable-so  --with-mpm=worker  --enable-rewrite=static
make
make install

其他模块介绍

Proxy

代理模块,结合rewrite模块可以实现网站的镜像

--enable-proxy=shared

Prefork

采用多进程的mpm,据说是稳定性最好的模型(但我实在没发现worker模型稳定性哪里不好),耗费的资源也是最大的

--with-mpm=prefork

首页 >> Tech-Knowledge
小猪的知识库
小猪实验室(LABS)