resin
http://blog.csdn.net/sea0x/article/details/6097531
resin 启动:
resin 配置文件摘取:
- <server-default>
- <!-- The http port -->
- <http address="*" port=""/>
- <watchdog-jvm-arg>-Dcom.sun.management.jmxremote</watchdog-jvm-arg>
- <watchdog-port></watchdog-port>
- <!-- define the servers in the cluster -->
- <server id="" address="127.0.0.1" port=""/>
- <host id="" root-directory=".">
- <!--
- - configures an explicit root web-app matching the
- - webapp's ROOT
- -->
- <web-app id="/" root-directory="webappsempwb/empwb"/>
- <web-app id="/resin-admin" root-directory="${resin.home}/php/admin">
- <!--
- - Administration application /resin-admin
- -->
- <prologue>
- <resin:set var="resin_admin_external" value="false"/>
- <resin:set var="resin_admin_insecure" value="true"/>
- </prologue>
- </web-app>
- </host>
<cache-mapping url-pattern="/" expires="5s"/>
<cache-mapping url-pattern="*.gif" expires="60s"/>
<cache-mapping url-pattern="*.jpg" expires="60s"/>
<cache-mapping url-pattern="*.png" expires="60s"/>
resin配置文件:
- app-default.xml fine.conf resin1.conf resin.conf resin_dsq.conf resin_eisifind.conf resin_ndis.conf
- development.conf minimal.conf resin_cas.conf resin.conf.orig resin_eisi.conf resinempwb.conf resin_som.conf
- [root@vm---pro01-hp conf]# cat resinempwb.conf
- <!--
- - Resin 3.1 configuration file.
- -->
- <resin xmlns="http://caucho.com/ns/resin"
- xmlns:resin="http://caucho.com/ns/resin/core">
- <!-- adds all .jar files under the resin/lib directory -->
- <class-loader>
- <tree-loader path="${resin.home}/ext-lib"/>
- <tree-loader path="${resin.root}/ext-lib"/>
- <tree-loader path="${resin.home}/lib"/>
- <tree-loader path="${resin.root}/lib"/>
- </class-loader>
- <!--
- - Management configuration
- -
- - Remote management requires at least one enabled admin user.
- -->
- <management path="${resin.root}/admin">
- <user name="admin" password="password" disable="true"/>
- <resin:if test="${resin.professional}">
- <deploy-service/>
- <jmx-service/>
- <log-service/>
- <xa-log-service/>
- </resin:if>
- </management>
- <!--
- - Logging configuration for the JDK logging API.
- -->
- <log name="" level="info" path="stdout:"
- timestamp="[%H:%M:%S.%s] {%{thread}} "/>
- <!--
- - 'info' for production
- - 'fine' or 'finer' for development and troubleshooting
- -->
- <logger name="com.caucho" level="info"/>
- <logger name="com.caucho.java" level="config"/>
- <logger name="com.caucho.loader" level="config"/>
- <!--
- - For production sites, change dependency-check-interval to something
- - like 600s, so it only checks for updates every minutes.
- -->
- <dependency-check-interval>2s</dependency-check-interval>
- <!--
- - SMTP server for sending mail notifications
- -->
- <system-property mail.smtp.host="127.0.0.1"/>
- <system-property mail.smtp.port=""/>
- <!--
- - Sets the default character encoding to utf-
- -
- - <character-encoding>utf-</character-encoding>
- -->
- <!--
- - You can change the compiler to "javac", "eclipse" or "internal".
- -->
- <javac compiler="internal" args="-source 1.5"/>
- <!-- Security providers.
- - <security-provider>
- - com.sun.net.ssl.internal.ssl.Provider
- - </security-provider>
- -->
- <!-- Uncomment to use Resin's XML implementations
- -
- - <system-property javax.xml.parsers.DocumentBuilderFactory
- - ="com.caucho.xml.parsers.XmlDocumentBuilderFactory"/>
- - <system-property javax.xml.parsers.SAXParserFactory
- - ="com.caucho.xml.parsers.XmlSAXParserFactory"/>
- -->
- <cluster id="app-tier">
- <!-- sets the content root for the cluster, relative to server.root -->
- <root-directory>.</root-directory>
- <server-default>
- <!-- The http port -->
- <http address="*" port=""/>
- <!--
- - SSL port configuration:
- -
- - <http address="*" port="">
- - <openssl>
- - <certificate-file>keys/gryffindor.crt</certificate-file>
- - <certificate-key-file>keys/gryffindor.key</certificate-key-file>
- - <password>test123</password>
- - </openssl>
- - </http>
- -->
- <!--
- - The JVM arguments
- -->
- <jvm-arg>-Xmx1024m</jvm-arg>
- <jvm-arg>-Xmn512m</jvm-arg>
- <jvm-arg>-XX:PermSize=128m</jvm-arg>
- <jvm-arg>-XX:MaxPermSize=256m</jvm-arg>
- <jvm-arg>-Xss1m</jvm-arg>
- <jvm-arg>-Xdebug</jvm-arg>
- <jvm-arg>-Dcom.sun.management.jmxremote</jvm-arg>
- <!--
- - Uncomment to enable admin heap dumps
- - <jvm-arg>-agentlib:resin</jvm-arg>
- -->
- <!--
- - arguments for the watchdog process
- -->
- <watchdog-jvm-arg>-Dcom.sun.management.jmxremote</watchdog-jvm-arg>
- <watchdog-port></watchdog-port>
- <!--
- - Configures the minimum free memory allowed before Resin
- - will force a restart.
- -->
- <memory-free-min>1M</memory-free-min>
- <!-- Maximum number of threads. -->
- <thread-max></thread-max>
- <!-- Configures the socket timeout -->
- <socket-timeout>65s</socket-timeout>
- <!-- Configures the keepalive -->
- <keepalive-max></keepalive-max>
- <keepalive-timeout>15s</keepalive-timeout>
- <!--
- - If starting bin/resin as root on Unix, specify the user name
- - and group name for the web server user.
- -
- - <user-name>resin</user-name>
- - <group-name>resin</group-name>
- -->
- </server-default>
- <!-- define the servers in the cluster -->
- <server id="" address="127.0.0.1" port=""/>
- <!--
- - Configures the persistent store for single-server or clustered
- - in Resin professional.
- -->
- <resin:if test="${resin.professional}">
- <persistent-store type="cluster">
- <init path="session"/>
- </persistent-store>
- </resin:if>
- <!--
- - For security, use a different cookie for SSL sessions.
- - <ssl-session-cookie>SSL_JSESSIONID</ssl-session-cookie>
- -->
- <!--
- - Enables the cache (available in Resin Professional)
- -->
- <resin:if test="${resin.professional}">
- <cache path="cache" memory-size="64M">
- <!-- Vary header rewriting for IE -->
- <rewrite-vary-as-private/>
- </cache>
- </resin:if>
- <!--
- - Enables periodic checking of the server status and
- - check for deadlocks..
- -
- - All servers can add <url>s to be checked.
- -->
- <resin:if test="${resin.professional}">
- <ping>
- <!-- <url>http://localhost:8080/test-ping.jsp</url> -->
- </ping>
- </resin:if>
- <!--
- - Defaults applied to each web-app.
- -->
- <web-app-default>
- <prologue>
- <!--
- - Extension library for common jar files. The ext is safe
- - even for non-classloader aware jars. The loaded classes
- - will be loaded separately for each web-app, i.e. the class
- - itself will be distinct.
- -->
- <class-loader>
- <tree-loader path="${resin.root}/ext-webapp-lib"/>
- </class-loader>
- <!--
- - Enable EL expressions in Servlet and Filter init-param
- -->
- <allow-servlet-el/>
- </prologue>
- <!--
- - Sets timeout values for cacheable pages, e.g. static pages.
- -->
- <cache-mapping url-pattern="/" expires="5s"/>
- <cache-mapping url-pattern="*.gif" expires="60s"/>
- <cache-mapping url-pattern="*.jpg" expires="60s"/>
- <cache-mapping url-pattern="*.png" expires="60s"/>
- <!--
- - for security, disable session URLs by default.
- -->
- <session-config>
- <enable-url-rewriting>false</enable-url-rewriting>
- </session-config>
- <!--
- - For security, set the HttpOnly flag in cookies.
- - <cookie-http-only/>
- -->
- <!--
- - Some JSP packages have incorrect .tld files. It's possible to
- - set validate-taglib-schema to false to work around these packages.
- -->
- <jsp>
- <validate-taglib-schema>true</validate-taglib-schema>
- <fast-jstl>true</fast-jstl>
- </jsp>
- </web-app-default>
- <!-- includes the app-default for default web-app behavior -->
- <resin:import path="${resin.home}/conf/app-default.xml"/>
- <!--
- - Sample database pool configuration
- -
- - The JDBC name is java:comp/env/jdbc/test
- <database>
- <jndi-name>jdbc/mysql</jndi-name>
- <driver type="org.gjt.mm.mysql.Driver">
- <url>jdbc:mysql://localhost:3306/test</url>
- <user></user>
- <password></password>
- </driver>
- <prepared-statement-cache-size></prepared-statement-cache-size>
- <max-connections></max-connections>
- <max-idle-time>30s</max-idle-time>
- </database>
- -->
- <!--
- - Default host configuration applied to all virtual hosts.
- -->
- <host-default>
- <!--
- - With another web server, like Apache, this can be commented out
- - because the web server will log this information.
- -->
- <access-log path="logs/access.log"
- format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
- rollover-period="1W"/>
- <!-- creates the webapps directory for .war expansion -->
- <web-app-deploy path="webapps"/>
- <!-- creates the deploy directory for .ear expansion -->
- <ear-deploy path="deploy">
- <ear-default>
- <ejb-server>
- <config-directory>WEB-INF</config-directory>
- </ejb-server>
- </ear-default>
- </ear-deploy>
- <!-- creates the deploy directory for .rar expansion -->
- <resource-deploy path="deploy"/>
- </host-default>
- <!-- configures a deployment directory for virtual hosts -->
- <host-deploy path="hosts">
- <host-default>
- <resin:import path="host.xml" optional="true"/>
- </host-default>
- </host-deploy>
- <!-- configures the default host, matching any host name -->
- <host id="" root-directory=".">
- <!--
- - configures an explicit root web-app matching the
- - webapp's ROOT
- -->
- <web-app id="/" root-directory="webappsempwb/empwb"/>
- <web-app id="/resin-admin" root-directory="${resin.home}/php/admin">
- <!--
- - Administration application /resin-admin
- -->
- <prologue>
- <resin:set var="resin_admin_external" value="false"/>
- <resin:set var="resin_admin_insecure" value="true"/>
- </prologue>
- </web-app>
- </host>
- </cluster>
- <!--
- - Configuration for the web-tier/load-balancer
- -->
- <resin:if test="${resin.professional}">
- <cluster id="web-tier">
- <server-default>
- <!-- The http port -->
- <http address="*" port=""/>
- </server-default>
- <server id="web-a" address="127.0.0.1" port=""/>
- <cache path="cache" memory-size="64M"/>
- <host id="">
- <web-app id="/">
- <rewrite-dispatch>
- <load-balance regexp="" cluster="app-tier"/>
- </rewrite-dispatch>
- </web-app>
- </host>
- </cluster>
- </resin:if>
- </resin>
resin的更多相关文章
- resin实现域名访问
1.修改resin.properties 2.修改hosts文件 3.添加一行记录 配置完后就可以通过test.com访问项目了.
- resin实现热部署配置
修改resin.xml文件 <host id="test.com" root-directory="."> <host-alias>te ...
- eclipse下maven项目保持原有目录结构配置resin运行环境
maven项目用起来很方便,但是它的目录结构和eclipse的目录结构是有区别的,故而在eclipse下的maven项目,直接运行调试是有一些问题的. 为了方便maven项目的运行调试,因而也就有了像 ...
- resin启动报错:guava-15.0.jar!/META-INF/beans.xml:5: <beans xmlns="http://xmlns.jcp.org/xml/ns/javaee"> is an unexpected top-level tag. 异常
项目完成,经过本地的测试,最后在部署的时候,发现服务器resin启动失败,报错信息如下:
- resin 安装配置
resin (下载免费版 4) 前提:已经安装了Java运行环境,resin的安装需要jdk的支持 一.安装 1.cd /usr/local/src wget http://www.caucho. ...
- 阿里云服务器Linux CentOS安装配置(六)resin多端口配置、安装、部署
阿里云服务器Linux CentOS安装配置(六)resin多端口配置.安装.部署 1.下载resin包 http://125.39.66.162/files/2183000003E08525/cau ...
- (转载)Resin安装配置及使用教程
Resin是一个提供高性能的,支持 Java/PHP 的应用服务器.目前有两个版本:一个是GPL下的开源版本,提供给一些爱好者.开发人员和低流量网站使用:一种是收费的专业版本,增加了一些更加适用于生产 ...
- Atitit.url 汉字中文路径 404 resin4 resin 解决 v2 q329
Atitit.url 汉字中文路径 404 resin4 resin 解决 v2 q329 1. Pluginx机制1 2. Code1 3. 参考4 1. 原理 过滤器 ,,拦截jpg w ...
- Nginx+Resin实现高性能JAVA平台搭建
现在流行的JavaEE容器有很多:Tomcat.Resin.JBoss.Glassfish等,我们常用的主要是前三种,那这个java容器性能方面到底谁更稳定,并发能力更强呢?那当属resin了,res ...
随机推荐
- SPOJ GSS4 Can you answer these queries IV
Time Limit: 500MS Memory Limit: 1572864KB 64bit IO Format: %lld & %llu Description You are g ...
- [NOIP2012] 提高组 洛谷P1083 借教室
题目描述 在大学期间,经常需要租借教室.大到院系举办活动,小到学习小组自习讨论,都需要向学校申请借教室.教室的大小功能不同,借教室人的身份不同,借教室的手续也不一样. 面对海量租借教室的信息,我们自然 ...
- 向列布局动态添加F7
function initBuildingEntryF7(sellId){ var comId = "buildingEntry"; var filter = "&quo ...
- protected的使用注意
在c#的可访问性级别中,public和private算是最容易理解的,相反protected往往令人非常头疼.经常在网上查资料的朋友往往会发现,答案几乎都是前篇一律,不是从msdn上拷贝的就是从别人的 ...
- C# 静态类与非静态类、静态成员的区别
静态类 静态类与非静态类的重要区别在于静态类不能实例化,也就是说,不能使用 new 关键字创建静态类类型的变量.在声明一个类时使用static关键字,具有两个方面的意义:首先,它防止程序员写代码来实例 ...
- JSONArray的使用
用的是fastjson.jar包 1. jsonarray,jsonobject 使用正确代码如下:(这种getJSONObject 函数形成jsonobj 的方式非常好,可以避免循环引用或jsono ...
- Session对象
Session对象用于存储在多个页面调用之间特定用户的信息.Session对象只针对单一网站使用者,不同的客户端无法互相访问.Session对象中止于联机机器离线时,也就是当网站使用者关掉浏览器或超过 ...
- Yocto开发笔记之《嵌入式linux libcurl编程》(QQ交流群:519230208)
开了一个交流群,欢迎爱好者和开发者一起交流,转载请注明出处. QQ群:519230208,为避免广告骚扰,申请时请注明 “开发者” 字样 =============================== ...
- HTML meta viewport属性详细说明
viewport并非只是ios上的独有属性,在android.winphone上同样也有viewport,下面为大家详细介绍下HTML meta viewport 什么是Viewport 手机浏览器是 ...
- centos Apache、php、mysql默认安装路径
apache: 如果采用RPM包安装,安装路径应在 /etc/httpd目录下 apache配置文件:/etc/httpd/conf/httpd.conf Apache模块路径:/usr/sbin/a ...