Ubuntu 下Apache2 Tomcat6 and MySql5 安装配置

1.Apache2 安装

  1)下载: Apache2 download page: http://httpd.apache.org/download.cgi    使用版本


  2) 解压: tar -zxvf httpd-2.2.15.tar.gz

  3)安装:  执行如下命令:(一般地,把PREFIX替换成/usr/local/apache2/)

                $ ./configure --prefix=PREFIX

                $ make

                $ make install

                $ PREFIX/bin/apachectl start 

4)运行apache2 :

         cd PREFIX/bin/ 

        ./apachectl start

        使用浏览器访问,http://localhost/  ,返回页面:   It works!


  截止这里,Apache2安装完成。


2. Tomcat6安装 (这个过程,可以参考http://www.howtogeek.com/howto/linux/installing-tomcat-6-on-ubuntu/)

   1) 下载: Tomcat6 download page : http://tomcat.apache.org/     使用版本
   2) 解压:  tar -zxvf apache-tomcat-6.0.26.tar.gz


3.使用mod_jk实现apache2与tomcat连接

  完全参考这里http://www3.ntu.edu.sg/home/ehchua/programming/howto/apache_tomcat_howto.html;但是,也遇到一些问题.
  1)从源码编译mod_jk

  $> cd native
   $> ./configure --with-apxs=/usr/sbin/apxs (or where ever the apxs/apxs2 is)
  $> make
  $> su -c 'make install'

   2)这中间关键的一步是:找到apxs(在通过个源代码安装的apache2版本中,bin/下已经包含了该文件)

在之前直接使用apt-get install apache2 后,找不到apxs. 这时候,就需要: Use “apt-file” to look for specific files to be installed.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值