First, Introduction
Apache HTTP Server (Apache) is an open source Web server of the Apache Software Foundation, which can run in most computer operating systems, and is one of the most popular Web server-side software due to its extensive use of multiple platforms and security. It is fast, reliable, and can be compiled into the server by a simple API extension, such as the Perl/python interpreter.
II. Preparation 1, environment
System platform: Red Hat Enterprise Linux Server release 7.3 (MAIPO)
Kernel version: 3.10.0-514.el7.x86_64
2. Download APR and Apr-util package
http://apr.apache.org/download.cgi
3. Download Pcre Package
Https://sourceforge.net/projects/pcre/files/pcre/
4. Download Apache Package
Http://httpd.apache.org/download.cgi#apache24
Third, installation
In accordance with official documentation requirements, APR, Apr-util, pcre,gcc-c++ and other packages must be installed, document URL address http://httpd.apache.org/docs/2.4/install.html
1. Installing GCC-related dependencies
# yum-y Install gcc*
2. Install Apr
# tar ZXVF apr-1.5.2.tar.gz
# CD apr-1.5.2
#./configure--PREFIX=/USR/LOCAL/APR
# make
# make Install
3, Installation Apr-util
# tar ZXVF apr-util-1.5.4.tar.gz
# CD apr-util-1.5.4
#./configure--prefix=/usr/local/apr-util--with-apr=/usr/local/apr/bin/apr-1-config
# make
# make Install
4, Installation Pcre
# tar ZXVF pcre-8.38.tar.gz
# CD pcre-8.38
#./configure--prefix=/usr/local/pcre--with-apr=/usr/local/apr/bin/apr-1-config
# make
# make Install
5. Installing Apache
# tar ZXVF httpd-2.4.23.tar.gz
# CD httpd-2.4.23
#./configure--prefix=/usr/local/apache--with-pcre=/usr/local/pcre--with-apr=/usr/local/apr--with-apr-util=/usr /local/apr-util
# make
# make Install
6. Test whether the installation is successful
View Apache version
Four, start 1, start the command
#/usr/local/apache/bin/apachectl Start
2. Access Test
Apache "First article" Installation