1. Apache 설치
[root@webap /]# cd /usr/local/src
[root@webap src]# wget http://apache.mirror.cdnetworks.com//httpd/httpd-2.2.17.tar.gz
--2011-02-28 15:50:52-- http://apache.mirror.cdnetworks.com//httpd/httpd-2.2.17.tar.gz
Resolving apache.mirror.cdnetworks.com... 61.110.198.174
Connecting to apache.mirror.cdnetworks.com|61.110.198.174|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6597991 (6.3M) [application/x-gzip]
Saving to: `httpd-2.2.17.tar.gz'
100%[==========================================================================================>] 6,597,991 469K/s in 18s
2011-02-28 15:51:10 (361 KB/s) - `httpd-2.2.17.tar.gz' saved [6597991/6597991]
[root@webap src]# tar zxvf httpd-2.2.17.tar.gz
[root@webap src]# cd httpd-2.2.17
[root@webap httpd-2.2.17]# vi server/mpm/prefork/prefork.c
-------------------------------------------------------------
#define DEFAULT_SERVER_LIMIT 256 을 찾아서
#define DEFAULT_SERVER_LIMIT 8192 으로 수정
[root@webap httpd-2.2.17]# vi server/mpm/worker/worker.c
-------------------------------------------------------------
#define DEFAULT_SERVER_LIMIT 16 을 찾아서
#define DEFAULT_SERVER_LIMIT 20 으로 수정
[root@webap httpd-2.2.17]# ./configure --prefix=/usr/local/apache2 --with-mpm=prefork --enable-modules=all --enable-mods-shared=all --enable-ssl --enable-cashe --enable-mem-cache --enable-disk-cache --enable-proxy --enable-proxy-connect --enable-proxy-http --enable-proxy-ftp --enable-proxy-ajp --enable-proxy-balancer
[root@webap httpd-2.2.17]# make
[root@webap httpd-2.2.17]# make install
설치후
vi httpd-mpm.conf
-------------------------------------------------------------
StartServers 150
MinSpareServers 150
MaxSpareServers 250
MaxClients 8192
MaxRequestsPerChild 100