Centos install apache detailed tutorial

  

Use root user installation environment:

(1)

[code]yum install gcc gcc-c++[/code]

(2)

APR and APR-UTIL download address: http://apr.apache.org/download.cgi

Install apr:

[root@ Localhost apache]# tar -zxf apr-1.4.6.tar.gz

[root@localhost apache]# cd apr-1.4.6

[root@localhost apr-1.4.6 ]# ./configure –prefix=/usr/local/apr

[root@localhost apr-1.4.6]# make

[root@localhost apr-1.4.6]# Make install

apr-util installation:

[root@localhost apache]# tar -zxf apr-util-1.4.1.tar.gz

[root@localhost Apache]# cd apr-util-1.4.1

[root@localhost apr-util-1.4.1]# ./configure –prefix=/usr/local/apr-util –with-apr =/usr/local/apr/bin/apr-1-config

[root@localhost apr-util-1.4.1]# make[root@localhost apr-util-1.4.1]# make install

(3)

Download: http://ftp.exim.llorien.org/pcre/

Download pcre-8.30.zip with more list files. The general browser will have a search Cable function, you can ctrl+f search and download after positioning.

[root@localhost apache]#unzip -o pcre-8.30.zip

[root@localhost apache]#cd pcre-8.30

[root@localhost pcre- 8.30]#./configure –prefix=/usr/local/pcre

[root@localhost pcre-8.30]#make

[root@localhost pcre-8.30]#make install< Br>

1, download httpd-2.4.10.tar.gz

URL: http://httpd.apache.org/download.cgi#apache24

2, compile source code

[code] <strong>./configure –prefix=/usr/local/apache2 –with-apr=/usr/local/apr –with-apr-util=/usr/local /apr-util/</strong><strong> </strong> [/code]

3, make

4, make install
zh-CN"],null,[0.98609865],zh-CN"]]]

Copyright © Windows knowledge All Rights Reserved