resin4 简单学习
来源:互联网 发布:中国智库网络影响力 编辑:程序博客网 时间:2024/05/22 08:27
1. Resin 4.0.26
Resin是CAUCHO公司的产品,是一个非常流行的application server,对servlet和JSP提供了良好的支持,性能也比较优良,resin自身采用JAVA语言开发。
2. 下载地址
http://www.caucho.com/download/
一同下载pdf文件,安装参考。
3. 安装
参考 文件 Resin-4.0-admin.pdf 。我以Windows为例。
前提,安装了JDK1.6或者更新版本。
首先添加环境变量RESIN_HOME ,其值为resin 的解压路径,比如:D:\Elan\resin4.0.26
4. 启动方式1
双击resin.exe 出现控制台界面:
此时浏览器中输入:http://localhost:8080/ 页面如下表示安装成功:
5. 启动方式2
双击 bin/start.bat 窗口会闪过。输入http://localhost:8080/ 也可查看。
停止时,需要双击stop.bat
6. 设置为系统服务
不好意思我还木有研究出来
7. 修改端口
打开conf/resin.properties 文件,找到
# Set HTTP and HTTPS ports
http : 8080
# https : 8443
修改8080为你定义的端口
8. 关于resin.properties
# resin.properties - configuration variable values
#
# See resin.xml, cluster-default.xml, and health.xml for full configuration.
# Any variable defined by ${...} can be set as a property in this file.
有这段话可以看出,本文件是对其它文件中用到的参数的设置
9. 部署应用
修改conf/resin.xml 文件,找到如下代码,并列加入你需要部署的app路径。
<web-app id="/" root-directory="webapps/ROOT"/>
<resin:if test="${resin_doc}">
<web-app id="/resin-doc" root-directory="${resin.root}/doc/resin-doc"/>
</resin:if>
比如下面代码,ssh为我加的。id表示上下文路径,后面的root-directory为应用路径。当然你可以直接将应用放到webapps目录下,和tomcat一样的。
<host id="" root-directory=".">
<!--
- webapps can be overridden/extended in the resin.xml
-->
<web-app id="/" root-directory="webapps/ROOT"/>
<resin:if test="${resin_doc}">
<web-app id="/resin-doc" root-directory="${resin.root}/doc/resin-doc"/>
</resin:if>
<web-app id="/ssh" root-directory="D:/Elan/EclipseWork-ssh/ssh/WebRoot"/>
</host>
今天就研究了这么一点点,网上关于resin4的资料简直是太少了。
- resin4 简单学习
- eclipse3.7 简单配置resin4
- resin4
- nginx1.0+resin4配置简单的反向代理
- resin4 使用方法
- resin4 配置
- resin4 指定浏览目录
- resin4配置状态监控
- resin4基本配置信息
- myeclipse配置resin4
- resin4.0 permgen space
- resin4开启jmx
- Fedora安装resin4
- centos下安装resin4
- resin4 发布war包
- resin4.0.41 配置
- resin4 配置的优化
- Resin4.0相关破解方式
- cms系统
- Hibernate 在MyEclipse中配置
- Java堆内存的10个要点
- 模态窗口提交请求时禁止在新窗口打开页面的处理方法
- Java 内存整理——堆、栈、常量池
- resin4 简单学习
- SQL SERVER 2005表分区创建示例
- 删掉系统服务里边的tomcat7服务
- 从jar包中读取资源文件
- web前端开发工程师笔试题
- 200行java代码实现安卓下的音视频通讯开发
- ctags中文手册
- 听同事介绍服务器端开发有感
- 备忘