neversoft 发表于 2018-11-20 09:55:37

二、2.4版本之前的apache的安装

  1.apache的下载
  # cd /usr/local/src/
  # wget http://mirrors.sohu.com/apache/httpd-2.4.18.tar.bz2
  
  2.解压
  # tar jvxf httpd-2.4.18.tar.bz2
  
  
  3.配置编译参数
  # cd httpd-2.4.18
  #
   ./configure \
  --prefix=/usr/local/apache2 \
  --with-included-apr \
  --enable-so \
  --enable-deflate=shared \
  --enable-expires=shared \
  --enable-rewrite=shared \
  --with-pcre
  
  --prefix 指定安装到哪里, --enable-so 表示启用DSO , --enable-deflate=shared 表示共享的方式编译deflate
  
  make && make install
  




页: [1]
查看完整版本: 二、2.4版本之前的apache的安装