centos7 编译安装httpd 2.2.15

参考自

yum -y install openssl-devel pcre-devel expat-devel libtool

wget https://archive.apache.org/dist/httpd/httpd-2.2.15.tar.gz

tar -zxvf httpd-2.2.15.tar.gz

cd httpd-2.2.15/

./configure --prefix=/usr/local/httpd

make -j8

make install

#加入全局变量
  vim /etc/profile
      PATH=$PATH:/usr/local/httpd/bin
  
  cd /etc && source profile
posted @ 2022-07-26 14:39  tangshow  阅读(186)  评论(0编辑  收藏  举报