Chinaunix首页 | 论坛 | 博客
  • 博客访问: 194975
  • 博文数量: 25
  • 博客积分: 2030
  • 博客等级: 大尉
  • 技术积分: 335
  • 用 户 组: 普通用户
  • 注册时间: 2009-05-05 02:49
文章分类

全部博文(25)

文章存档

2012年(1)

2011年(1)

2010年(2)

2009年(21)

我的朋友

分类: 系统运维

2009-08-09 22:38:54

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
 
阅读(3533) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~