Target: Source installation Apache
Dependency packages: Apr, Apr-util, and Pcre. The Pcre regular library to install first, Apr and Apr-util (extracted) can be copied to Apache under the repository srclib .
Install Pcre:
Decompression Pcre****.tar.bz2:tar ZXVF pcre****.tar.bz2
1, precompiled: Into the Pcre directory execution./configure--prefix=/usr/local/pcre (directory to be installed)
2, compile: Make the process may be wrong, hint gcc-c++ and so on, you can directly yum-y install GCC gcc-c++(direct installation of two packages)
Conditions: Must be guaranteed to be networked (because there is no internet, it took more than a few hours)
3. Install: Make install can be installed to the specified directory after completion.
Install Apache:
Unzip the apache*.tar.bz2, APR*.TAR.BZ2, and apr-util*.tar.bz2 three files separately. Tar zxvf ****.tar.bz2. and copy the two dependencies to Apache under the repository Srclib, with the names Apr and Apr-until, respectively.
1, precompiled: Into the Apache directory execution ./configure--prefix=/usr/local/apache (Installation directory)--with-pcre=/usr/local/pcre/(dependent package directory)
2. Compiling: Make
3. Install: Make install can be installed to the specified directory after completion.
Installation Services:
Copy Apache execution script./bin/apachectl to/ETC/INIT.D under rename Apache
Execute Chkconfig--add Apache
Set Chkconfi--levels Apache on
Source Installation Apache