Chinaunix首页 | 论坛 | 博客
  • 博客访问: 86020
  • 博文数量: 18
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 0
  • 用 户 组: 普通用户
  • 注册时间: 2015-03-23 11:02
个人简介

IT从业十几年,为爱梦一生!

文章分类

全部博文(18)

文章存档

2015年(18)

我的朋友
最近访客

分类: 系统运维

2015-03-31 10:43:19

原文地址:源码安装apache2.2.13 作者:butting

1.源码安装OpenSSL ,下载地址:
#> ./config --prefix=/usr/local/openssl
#> make
#> make test
#> make install
 
2.源码安装apache2.2.14,下载地址:
#> ./configure --prefix=/usr/local/apache2/ --sysconfdir=/etc/ --enable-so  --with-mpm=prefork --enable-ssl --with-ssl=/usr/local/openssl/  --enable-rewrite  --disable-autoindex  --disable-userdir
#####################################################################################
参数说明:
--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-userdir 禁用用户有自己的HTML目录
--disable-autoindex 禁止给没有默认HTML文件的目录建索引

##############################################################################################
#>  make && make install
#> /home/server/http/apache2/apachectl start
 
阅读(1502) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~