centos6.3安装apache和tomcat

centos6.3安装apache和tomcat

ID:8797770

大小:347.72 KB

页数:9页

时间:2018-04-08

centos6.3安装apache和tomcat_第1页
centos6.3安装apache和tomcat_第2页
centos6.3安装apache和tomcat_第3页
centos6.3安装apache和tomcat_第4页
centos6.3安装apache和tomcat_第5页
资源描述:

《centos6.3安装apache和tomcat》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库

1、Centos6.3安装apache和Tomcat安装apache第一部分:准备工作。1.全新centos6.3(以下简称centos)最基本的设置略过(比如用户、网络设置等等)。2.这里可以联网了。这里用到的我不写到一起了。安装wget工具。[root@localhost ~]# yum-yinstallwget安装GCC软件套件[root@localhost ~]# yum-yinstallgcc[root@localhost ~]# yum-yinstallgcc-c++安装make[root@localhost ~]# yum-yinst

2、allmake安装vim[root@localhost ~]# yum-yinstallvim 3.下载各个安装包:基本上多是官网提供的源。[root@localhost ~]# wgethttp://apache.etoak.com/httpd/httpd-2.4.3.tar.gz[root@localhost ~]# wget http://apache.etoak.com/apr/apr-1.4.6.tar.gz[root@localhost ~]# wgethttp://apache.etoak.com/apr/apr-util-1.5

3、.1.tar.gz[root@localhost ~]# wget http://hk1.php.net/distributions/php-5.4.8.tar.gz[root@localhost ~]# wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.31.tar.gz[root@localhost ~]# wget http://nchc.dl.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-

4、2.5.8.tar.gz(注意大小写,不然会报404错误的。)[root@localhost ~]#ls查看下有没有全部下好,如图片中红色的就是刚刚下载的。 4.以上源码包全部用tar zxvf xxx.tar.gz解压缩[root@localhost ~]# tar zxvf httpd-2.4.3.tar.gz[root@localhost ~]#tar zxvf apr-1.4.6.tar.gz[root@localhost ~]#tar zxvf apr-util-1.5.1.tar.gz[root@localhost ~]# tar 

5、zxvf php-5.4.8.tar.gz[root@localhost ~]# tar zxvf pcre-8.31.tar.gz[root@localhost ~]#tar zxvf libmcrypt-2.5.8.tar.gz[root@localhost ~]#ls查看如图中蓝色的就是解压好文件夹。 第二部分:安装Apache。1.安装apache依赖包pcre[root@localhost ~]# cd./pcre-8.31[root@localhost ~]# ./configure--prefix=/usr/local/pcre[

6、root@localhost ~]# make&&makeinstall 2.安装openssl[root@localhost ~]# yum-yinstall openssl-devel 3.移动apr和apr-util到httpd-2.4.3文件夹下srclib内并且重命名(手动将文件移进去并改名)[root@localhost ~]# mvapr-1.4.6/httpd-2.4.3/srclib/apr[root@localhost ~]#mvapr-util-1.5.1/httpd-2.4.3/srclib/apr-util 4.安装A

7、pache2.4.3主程序[root@localhost ~]#cd./httpd-2.4.3[root@localhost ~]#./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-ap

8、r --with-mpm=prefork --enable-cache --enable-file-cache --with-pcre=/usr/lo

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。