1. Installation Preparation
<1> install C language compiler GCC
<2> Download Source package: http://mirror.bit.edu.cn/apache/httpd/
Download 2.2.9 's httpd
<3> you can use WINSCP to copy the software on your computer to a virtual machine, and notice that you change the permissions
<4>rpm and source packages can be installed separately, but only one. Because it occupies the same port 80
2. Precautions for installation
<1> Source code save location:/USR/LOCAL/SRC
<2> Software Installation Location:/usr/local/
<3> How to determine the installation process error:
Installation process stopped
And there is a hint of error,warning or no
3. Source Package Installation Process
<1> Download Source Package
http://mirror.bit.edu.cn/apache/httpd/download httpd2.2.9 or other versions
<2> unzip the downloaded source package
TAR-ZXVF httpd-2.2.9.tar.gz
<3> go to unzip directory (must be executed)
CD httpd-2.2.9 #注意, this command is not an option but must be executed,
#因为后面讲的相关命令, the operation is the current directory, if you do not enter the decompression directory is the other directory
<4>./configure software Configuration and inspection
#基本上每个源码包都有这个命令, if not, there will be similar orders to replace their work
<1> define the required feature options--help
<2> detects if the system environment meets the installation requirements
<3> write the defined function options and the information of the inspection system environment to the makefile file for subsequent edits
<4>./configure--prefix=/usr/local/apache2
<5>make compiling
<1>make clean #若报错, you can compile the generated cache file with make clear
<6>make Install compilation
<7> start
/usr/local/apache2/bin/apachectl Start #看具体软件提供的命令
<8> If you have already started the RPM package Apache, you need to stop the RPM package Apache
Service httpd Stop
<9> specific installation and start-up can refer to the installation documentation
4. Uninstall the source package
<1> do not need to uninstall the command, directly delete the installation directory. Don't leave any junk files behind
5-2 Source Package Installation process