Linux下编译安装httpd-2.2.31

    

0.解决依赖关系    

       

        pcre-devel

        openssl-devel 

       

     yum install gcc

     yum install pcre-devel



1.解压包&& 进入 


    tar -xf httpd-2.2.31.tar.bz2 

    cd httpd-2.2.31

2.安装编译

    

    # ./configure   --prefix=/usr/local/httpd  (--prefix指定apr安装的目录)

    # make

    # make  install


3.启动 

     /usr/local/httpd/bin/apachectl start

     netstat -nltp|grep 80


你可能感兴趣的:(apache,httpd)