安装resin

esin是CAUCHO的产品,是application server,支持servlet和JSP,本身采用Java开发

本次使用的是普通版(pro版收费),主要差别在缓存和负载均衡

  • 缓存:作为web服务器处理静态页面性能可媲美apache
    • 普通版本独立作为web服务器性能要差些
    • 本处仅在内部staging使用
    • apache+resin(普通版)可借助apache的缓存功能提高性能
  • 负载均衡,普通版难以望其项背

官网下载普通版本,pro版可能会出问题

下载地址:http://caucho.com/products/resin/download/gpl#download

  1. 下载后解压,拷贝到自定义软件存放目录
  2. 安装:
    1. 进入resin源代码根目录
    2. sudo ./configure --prefix=/usr/resin-4.0.53 --enable-64bit
      1. 可指定JAVA_HOME:--with-java-home=/home/homer/eclipse/jdk1.6.0_22
    3. make
    4. make install
  3. 验证
    1. 启动resin:./bin/resin.sh start
      1. 安装成功提示:

sai@sai-VirtualBox:/usr/resin4053$ ./bin/resin.sh start
Resin/4.0.53 launching watchdog at 127.0.0.1:6600
Resin/4.0.53 started -server 'app-0' with watchdog at 127.0.0.1:6600

      1. 浏览器输入:localhost:8080
Resin® Default Home Page
This is the default page for the Resin web server.

Documentation is available at /resin-doc.

Administration is available at /resin-admin.
    1. 开机自启动:sudo vi /etc/rc.local  添加下行命令:/opt/resin-4.0.36/bin/resin.sh start

猜你喜欢

转载自blog.csdn.net/vip_wangsai/article/details/78488476