1. Download Apache Source Package
Http://www.apache.org/apache official website, contains very much software to find Apache software http://httpd.apache.org/selected to download the source package copy downloaded urlhttp:// mirrors.tuna.tsinghua.edu.cn/apache//httpd/httpd-2.4.25.tar.bz2 Enter Linux/usr/local/src wget/http mirrors.tuna.tsinghua.edu.cn/apache//httpd/httpd-2.4.25.tar.bz2 wait for download to complete unzip TAR-JXF httpd-2.4.25.tar.bz2 move to installation directory MV Httpd-2.4.25/usr/local/apache2 2. Install Apache View Source package Install File
$ ./ configure -- prefix = prefix
$ make
$ make install
$ PREFIX / bin / apachectl start
Specifies the installation directory/usr/local/apache2/apache./configure--prefix=/usr/local/apache2/apache Installation Environment Check result error cannot find Apr Apr is a library that Apache needs to run 3. Install Apr download is also installed on the Apache website http://apr.apache.org//usr/local/apache2 4. Install Apr-utilInstall Apache againError cannot find apr-util with Apr download is a page installed when you specify the installation directory and the APR installation directory./configure--prefix=/usr/local/apache2/apr-util--with-apr=/ USR/LOCAL/APACHE2/APR Note: Apr-util installation is successful. The first time I did not install the success, when installing Apache error cannot find Lib libaprutil-1.la in the Apr-util installation directory did not find the file, deleted the re-installed side apr-util, only to see the file 5. Install Pcre Install Apache, error cannot find Pcre-configrpm-q Pcre can see already installed pcre Ah, actually installed here is a binary package, not a development package, yum-y install pcre-devel.x86_64 installed PCR E Development Kit 6. Final installation of Apache./configure--prefix=/usr/local/apache2/apache--with-apr=/usr/local/apache2/apr-1.5.2-- with-apr-util=/usr/local/apache2/apr-util-1.5.4 Make make install view/usr/local/apache2/apache below, the installation files have been generated 7. Launch Apache./usr/local/apache2/apache/bin/apachectl Start Open your browser 127.0.0.1 to see it works! or perform netstat-tln see 80 port Start listening, indicating the installation is successful below can be configured Apache summary: Seemingly simple source package installation process, tossing for 2 hours, it is clear that everything must not above his business, did not know
Apache Source package installation process record