源码安装apache2.2.13
时间:2009-08-09 来源:butting
1.源码安装apache2.2.13
http://www.apache.org/dist/httpd/
#> ./configure --prefix=/home/service/http/apache2/ --sysconfdir=/etc/ --enable-so --with-mpm=worker --enable-ssl --with-ssl=/usr/local/ssl/ --enable-rewrite --disable-autoindex --disable-userdir --disable-autoindex
#####################################################################################
参数说明:
--enable-so DSO capability
--with-mpm=MPM Choose the process model for Apache to use.
MPM={beos|event|worker|prefork|mpmt_os2} --enable-rewrite rule based URL manipulation --disable-autoindex directory listing --disable-userdir mapping of requests to user-specific directories --disable-autoindex directory listing --enable-so启用加载共享模块,必须的 --with-mpm=worker 进程控制的方式,worker表示使用线程,性能比较好,减少内存空间占用,因为进程下挂载了好几个线程,共享父进程的内存信息,静态内容用这个比较好。默认是使用prefork,就是每个连接启用一个进程,比较占用内存,但是兼容性好,php这些动态的脚步用这个比较好。 --enable-ssl 启用ssl的支持 --enable-rewrite 使用正则表达式重写URL,三级域名需要 --disable-autoindex 禁用服务器端包含SSI --disable-userdir 禁用用户有自己的HTML目录 --disable-autoindex 禁止给没有默认HTML文件的目录建索引
############################################################################################## #> make && make install #> /home/server/http/apache2/apachectl start
参数说明:
--enable-so DSO capability
--with-mpm=MPM Choose the process model for Apache to use.
MPM={beos|event|worker|prefork|mpmt_os2} --enable-rewrite rule based URL manipulation --disable-autoindex directory listing --disable-userdir mapping of requests to user-specific directories --disable-autoindex directory listing --enable-so启用加载共享模块,必须的 --with-mpm=worker 进程控制的方式,worker表示使用线程,性能比较好,减少内存空间占用,因为进程下挂载了好几个线程,共享父进程的内存信息,静态内容用这个比较好。默认是使用prefork,就是每个连接启用一个进程,比较占用内存,但是兼容性好,php这些动态的脚步用这个比较好。 --enable-ssl 启用ssl的支持 --enable-rewrite 使用正则表达式重写URL,三级域名需要 --disable-autoindex 禁用服务器端包含SSI --disable-userdir 禁用用户有自己的HTML目录 --disable-autoindex 禁止给没有默认HTML文件的目录建索引
############################################################################################## #> make && make install #> /home/server/http/apache2/apachectl start
相关阅读 更多 +