Linux下编译安装httpd-2.2.31

来源:互联网 发布:中国二季度经济数据 编辑:程序博客网 时间:2024/05/19 17:50

    

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


0 0
原创粉丝点击