1. Installing Apache
First unload your own httpd
RPM-E httpd--nodeps
Download four of files online
1, apr-1.4.6.tar.gz
2, apr-util-1.5.1.tar.gz
3, pcre-8.32.tar.gz
4, httpd-2.4.3.tar.gz
:
http://pan.baidu.com/share/link?shareid=169366&uk=1829018343
Install each of the four package root users separately
Installing apr-1.4.6.tar.gz
Tar xzf apr-1.4.6.tar.gz
./configure-prefix=/usr/local/apr
Make
Make install
Installing apr-util-1.5.1.tar.gz
Tar xzf apr-util-1.5.1.tar.gz
./configure-with-apr=/usr/local/apr
Make
Make install
Install C + + (must be installed before installing pcre-8.32 under Linux)
Yum install-y gcc gcc-c+ +
Installing Pcre
Tar xzf pcre-8.32.tar.gz
./configure-prefix=/usr/local/pcre
Make
Make install
Installing Apache
Tar xzf httpd-2.4.3.tar.gz
./configure-prefix=/usr/local/apache--with-apr=/usr/local/apr/--with-pcre=/usr/local/pcre/
Make
Make install
After the installation is complete, go to
httpd.conf add configuration under the/usr/local/apache/conf/path
ServerName localhost:80
Check to see if Apache is properly installed
to the/usr/local/apache/bin/path
./apachectl
Then log in to 127.0.0.1
Normal Condition:
Linux deployment Python Django program-apache