centos5.5 安装apache2.4.2
2012-09-15 16:23
176 查看
Apache
2.4.2 安装:
1.下载文件到download文件
cd /download
wgethttp://mirrors.axint.net/apache/httpd/httpd-2.4.2.tar.gz
wgethttp://mirrors.axint.net/apache/apr/apr-1.4.6.tar.gz
wgethttp://mirrors.axint.net/apache/apr/apr-util-1.4.1.tar.gz
wgetftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.30.tar.gz
2.解压文件
tar zxvf httpd-2.4.2.tar.gz
tar zxvf apr-1.4.6.tar.gz
tar zxvf apr-util-1.4.1.tar.gz
tar zxvf pcre-8.30.tar.gz
3、移动apr到srclib
mv apr-1.4.6 httpd-2.4.2/srclib/apr
mv apr-util-1.4.1 httpd-2.4.2/srclib/apr-util
4.安装pcre-8.30(--prefix 指的是安装文件目录)
cd /tmp/pcre-8.30
./configure
make
make install
5、安装apache-2.4(安装目录为/usr/local/apache)
cd /tmp/httpd-2.4.2
./configure --prefix=/usr/local/apache --enable-so --enable-deflate=shared --enable-ssl=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
ln -s /usr/local/apache/ httpd
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
# service httpd restart
2.4.2 安装:
1.下载文件到download文件
cd /download
wgethttp://mirrors.axint.net/apache/httpd/httpd-2.4.2.tar.gz
wgethttp://mirrors.axint.net/apache/apr/apr-1.4.6.tar.gz
wgethttp://mirrors.axint.net/apache/apr/apr-util-1.4.1.tar.gz
wgetftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.30.tar.gz
2.解压文件
tar zxvf httpd-2.4.2.tar.gz
tar zxvf apr-1.4.6.tar.gz
tar zxvf apr-util-1.4.1.tar.gz
tar zxvf pcre-8.30.tar.gz
3、移动apr到srclib
mv apr-1.4.6 httpd-2.4.2/srclib/apr
mv apr-util-1.4.1 httpd-2.4.2/srclib/apr-util
4.安装pcre-8.30(--prefix 指的是安装文件目录)
cd /tmp/pcre-8.30
./configure
make
make install
5、安装apache-2.4(安装目录为/usr/local/apache)
cd /tmp/httpd-2.4.2
./configure --prefix=/usr/local/apache --enable-so --enable-deflate=shared --enable-ssl=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
ln -s /usr/local/apache/ httpd
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
# service httpd restart
相关文章推荐
- CentOS 5.5安装apache2.2.17 ZT
- lamp环境搭建 centos5.5 +Apache2.2.9 +mysql5.1.18+php5.3.6 源码安装,【附配置环境】
- Centos 5.5上安装 Apache php mysql(Lamp)
- CentOS 5.5使用yum安装Apache+PHP+MySQL
- CentOS 5.5使用yum安装Apache+PHP+MySQL
- lamp编译安装(centos6.2+apache2.4.2+mysql5.5.24+php5.3.13)
- CentOS 5.5(Apache+PHP+Mysql)安装
- CentOS 5.5 中 Apache、MySQL、PHP 的安装信息
- centOS6.4 RedHat 安装 apache2.4 php5.6 mysql5.5
- CentOS 5.5(Apache+PHP+Mysql)安装2
- Linux(CentOS 5.5)安装Apache 2.2.3
- CentOS 5.5 使用yum来安装 LAMP (Apache+Mysql+php5)
- CentOS 5.5安装apache2.2.17(最简单安装)
- CentOS 5.5上安装Apache+Php+Mysql+phpMyAdmin+Zend Optimizer
- CentOS 5.5使用yum安装Apache+PHP+MySQL
- CentOS 5.5 编译安装Apache+MySQL+PHP
- CentOS 5.4 +apache 2.4.2 编译安装SVN服务器 neon (含所需软件包)
- CentOS5.5 编译安装 apache +php +mysql +Zend Optimizer +eaccelerator
- CentOS 5.5(Apache+PHP+Mysql)安装
- Centos5.5整合Apache和Tomcat 之二安装Tomcat