Apache(2.4.29)安装日记

  • 前期准备

    基础依赖库:gcc gcc-c++ expat-devel  

    apache2安装依赖环境:apr(1.5.1)、apr-util(1.5.1)、pcre(8.40)

#基础依赖安装
yum install gcc gcc-c++ expat-devel
#apr
./configure
make && make install
#apr-util
./configure -with-apr=/usr/local/apr
make && make install
#pcre
./configure
make && make install

 

  • apahce安装
cd "path"
./configure
make && make install
  • 环境测试
cd apache-home
bin/apachectl -k start

访问端口默认80,访问http://localhost

Apache(2.4.29)安装日记_第1张图片

转载于:https://my.oschina.net/zhuzhaoyong/blog/1600009

你可能感兴趣的:(Apache(2.4.29)安装日记)