Rainie999 发表于 2018-11-25 13:15:56

apache-2.4.x 编译安装

  
cd /tmp/httpd-2.4.3
  
./configure --prefix=/usr/local/apache2 --enable-so --enable-deflate=shared --enable-expires=shared --enable-headers=shared --enable-rewrite=shared --enable-static-support --with-included-apr --with-mpm=prefork
  
make && make install
  

  
/*
  
// 下面的不用
  
cp -f build/rpm/httpd.init /etc/init.d/httpd
  
chmod +x /etc/init.d/httpd
  
chkconfig --add httpd
  
chkconfig httpd on
  
cd /etc
  
mv httpd httpd_old
  
mkdir -p httpd/conf.d
  
ln -s /usr/local/apache/conf httpd/conf
  
cd /usr/sbin/
  
ln -fs /usr/local/apache/bin/httpd
  
ln -fs /usr/local/apache/bin/apachectl
  
cd /var/log
  
rm -rf httpd/
  
ln -s /usr/local/apache/logs httpd
  
*/
  



页: [1]
查看完整版本: apache-2.4.x 编译安装