1.源代码
                安装包格式一般为:名称.tar.gz    名称.tar.bz2
 
步骤:
 
              ./configure 是一个shell脚本
 
               安装目录  一般会安装到bin目录和 /sbin目录
 
               目录/bin  /sbin  /lib /include  一般在安装过成中会自动创建
 
               文件一般解压后会用到一个配置目录    --sysconfdir 
 
   检测安装环境
   安装http2.4  这是安装包
 

                          源代码安装 httpd 2.44_安装

  
 第一步 :拆包
[root@localhost src]# tar -jxvf httpd-2.4.4.tar.bz2 -C /usr/local/src
[root@localhost src]# tar -zxvf apr-1.4.6.tar.gz -C/usr/local/src
 
[root@localhost src]# tar -zxvf apr-1.4.6.tar.gz -C/usr/local/src
[root@localhost src]#./configure
[root@localhost src]# make
Make install
 
[root@localhost apr-util-1.5.1]# tar -zxvf apr-util-1.5.1.tar.gz -C /usr/local/src/
 
然后找到安装目录
        [root@localhost apr-util-1.5.1]# ./configure --with-apr=/usr/local/apr/bin/apr-1-config
        Make
Make install
 
 
安装之后 配置http2.4
再次尝试安装
[root@localhost httpd-2.4.4]# ./configure --prefix=/usr/local/apache --sysconfdir=/etc/httpd
 
结果发现错误安装时会发现Apr没有发现
 
configure:
checking for APR... no
configure: error: APR not found. Please read the documentation.
 
我们进入 /usr/local/bin/测试
[root@localhost bin]# ./apchectl start
[root@localhost bin]# netstart -tupln|grep 80
 
安装完毕!