美文网首页我爱编程
Ubuntu上安装Apache HTTPD

Ubuntu上安装Apache HTTPD

作者: yulong_vip | 来源:发表于2017-11-01 14:23 被阅读0次

1.安装apache httpd依赖库pcre

wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.38.tar.gz
tar zxvf pcre-8.38.tar.gz 
cd pcre-8.38
./configure -prefix=/usr/local/pcre
make && make install

2.安装httpd

apt-get install libexpat1-dev
wget http://apache.website-solution.net//apr/apr-1.6.3.tar.gz
tar -xzvf apr-1.6.3.tar.gz 
wget http://apache.website-solution.net//apr/apr-util-1.6.1.tar.gz
tar -xzvf apr-util-1.6.1.tar.gz 
wget http://apache.website-solution.net//httpd/httpd-2.4.29.tar.gz
tar -xzvf httpd-2.4.29.tar.gz
#移动apr和apr-util到httpd下的srclib目录并去掉版本号
mv apr-1.6.3 httpd-2.4.29/srclib/apr
mv apr-util-1.6.1 httpd-2.4.29/srclib/apr-util
cd httpd-2.4.29
./configure -prefix=/usr/local/httpd -with-pcre=/usr/local/pcre
make && make install

也许会碰到的问题
httpd-2.4.1/support/ab.c:2227: undefined reference to `SSLv2_client_method'
参考连接:
https://stackoverflow.com/questions/9856812/apache-2-4-1-undefined-reference-to-sslv2-client-method

相关文章

网友评论

    本文标题:Ubuntu上安装Apache HTTPD

    本文链接:https://www.haomeiwen.com/subject/lqgwpxtx.html