cd /home/chho
tar -zxvf apache_versionX.tar.gz
cd apache_versionX
./configure --prefix=/usr/local/apache_versionX --enable-module=so
make
make install
apache在linux下的默认最大进程数为256,无论如何修改httpd.conf都不能超过这个限制。如果想加大这个限制,在编译apache前编辑 /home/tmp/apache/src/include/httpd.h,将其中#define HARD_SERVER_LIMIT 256 一行改为#define HARD_SERVER_LIMIT 2048后再编译apache。
tar -zxvf apache_versionX.tar.gz
cd apache_versionX
./configure --prefix=/usr/local/apache_versionX --enable-module=so
make
make install
apache在linux下的默认最大进程数为256,无论如何修改httpd.conf都不能超过这个限制。如果想加大这个限制,在编译apache前编辑 /home/tmp/apache/src/include/httpd.h,将其中#define HARD_SERVER_LIMIT 256 一行改为#define HARD_SERVER_LIMIT 2048后再编译apache。