您的位置:首页 > 运维架构 > Apache

linux下安装apache2.4

2015-09-15 18:40 645 查看
linux安装Apache2步骤如下

apr

下载地址

http://mirrors.cnnic.cn/apache//apr/apr-1.5.2.tar.gz[/code] 
安装过程

tar -xzvf apr-1.5.2.tar.gz
       cd apr-1.5.2
       ./configure --prefix=/usr/local/apr
       make && make install
       make clean && make distclean


apr-util

下载地址

http://mirrors.cnnic.cn/apache//apr/apr-util-1.5.4.tar.gz[/code] 
安装过程

tar -xzvf apr-util-1.5.4.tar.gz
       cd apr-util-1.5.4
       ./configure --prefix=/usr/local/apr --with-apr=/usr/local/apr
       make && make install
       make clean && make distclean


apr-iconv

下载地址

http://mirrors.cnnic.cn/apache//apr/apr-iconv-1.2.1.tar.gz[/code] 
安装

tar -xzvf apr-iconv-1.2.1.tar.gz
       cd apr-iconv-1.2.1
       ./configure --prefix=/usr/local/apr --with-apr=/usr/local/apr
       make && make install
       make clean && make distclean


pcre

下载地址

http://downloads.sourceforge.net/project/pcre/pcre2/10.20/pcre2-10.20.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fpcre%2Ffiles%2F&ts=1442312799&use_mirror=nchc[/code] 
安装

unzip pcre2-10.20.zip
       cd pcre2-10.20
       ./configure
       make && make install
       make clean && make distclean


bison

下载

安装

tar -xzvf bison-2.6.5.tar
       cd bison-2.6.5
       ./configure
       make && make install
       make clean && make distclean


flex

下载

http://download.chinaunix.net/down.php?id=5837&ResourceID=3101&site=1[/code] 
安装

tar -xzvf flex-2.5.4a.tar.gz
      cd flex-2.5.4a
      ./configure
      make && make install
      make clean && make distclean


httpd

下载

http://mirrors.cnnic.cn/apache//httpd/httpd-2.4.16.tar.bz2[/code] 
安装

cd httpd-2.4.16
      ./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-pcre=/usr/local/bin/pcre-config
      make && make install
      make clean && make distclean
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: