First, go to mirror website download Apr apr-util and HTTP source package
Second, prepare the development environment installation develoment tools and development libraries
Iii. addressing the dependency relationship
Yum-y Install Pcre-devel
Iv. Compiling and installing APR
Tar
Cd
./configure--PREFIX=/USR/LOCAL/APR
Make && make install
V. Compile and install Apr-util
Tar
Cd
./configure--frefix=/usr/local/apr-util--WITH-APR=/USR/LOCAL/APR
Make && make install
VI. Compiling HTTPD
Tar
Cd
./configure--prefix=/usr/local/apache--sysconfdir=/etc/httpd24--enable-so--enable--ssl--enable-cgi-- Enable-rewrite--with-zlib--with-pcre--with-apr=/usr/local/apr--with-apr-util=/usr/local/apr-util-- Enable-modeles=most--enable-mpms-shared=all--with-mpm=event
Make && make install
Then export header files, library files, Help files, modify environment variables
Modify the/etc/init.d/http file later to modify the Apachectl path httpd path and PID path
Chkconfig Join boot Start
It's done.
httpd2.4 new features
1) MPM supports loading at run time
--enable-mpms-shared=all--with-mpm=event Enable the default event
2) Support event
3) asynchronous read and write
4) Specify the log level on each module and per directory
5) per request configuration: <If> <elseif>
6) Enhanced Expression Analyzer
7) Millisecond keepalive timeout
8) The host name of the virtual host is not required namevirtualhost directives
9) Support the use of custom variables
Add some modules: Mod_proxy_fcgi,mod_ratelimit,mod_request,mod_remoteip
has made modifications to IP-based access and is not using order,allow,deny mechanisms; It uses require for
This article is from the "10633230" blog, please be sure to keep this source http://10643230.blog.51cto.com/10633230/1882231
HTTP 24 Compilation Installation