- 浏览: 209422 次
- 性别:
- 来自: sdf
文章分类
最新评论
-
scd01234:
可以运行了,感谢师兄的慈悲加护!阿弥陀佛
基于eclipse swt做java浏览器内嵌等功能 -
seeyoula:
11
ie8 iframe支持问题 -
poorzerg:
很好,可以跑..谢谢了,我参考下..
基于eclipse swt做java浏览器内嵌等功能 -
landy8530:
验证网址那个方法,我直接输入sjkdasj这样的字符串返回也是 ...
js数据验证、js email验证、js url验证、js长度验证、js数字验证等 -
青春的、脚步:
表示运行不了 怎么回事 一模一样哦
mysql循环插入数据
resin-web.conf
<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> <!-- - Logging configuration for the JDK logging API. - <log name="" level="info" path="stdout:" - timestamp="[%H:%M:%S.%s] {%{thread}} "/> --> <log name="" level="all" path="og/stdout.log" archive-format="%Y-%m-%d.stdout.log.zip" timestamp="[%H:%M:%S.%s] {%{thread}} " rollover-period="1W"/> <!-- - 'info' for production - 'fine' or 'finer' for development and troubleshooting --> <logger name="com.caucho" level="finer"/> <logger name="com.caucho.java" level="config"/> <logger name="com.caucho.loader" level="config"/> <cluster id="app-tier"> <server-default> <jvm-arg>-Xmx128m</jvm-arg> <jvm-arg>-Xss1m</jvm-arg> <jvm-arg>-Xdebug</jvm-arg> <jvm-arg>-XX:PermSize=64m</jvm-arg> <jvm-arg>-XX:MaxNewSize=128m</jvm-arg> <jvm-arg>-XX:MaxPermSize=128m</jvm-arg> <jvm-arg>-Djava.awt.headless=true</jvm-arg> <jvm-arg>-Dcom.sun.management.jmxremote</jvm-arg> <jvm-arg>-agentlib:resin</jvm-arg> <watchdog-jvm-arg>-Dcom.sun.management.jmxremote</watchdog-jvm-arg> <watchdog-port>6600</watchdog-port> <memory-free-min>1M</memory-free-min> <thread-max>256</thread-max> <socket-timeout>65s</socket-timeout> <keepalive-max>128</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="a" address="127.0.0.1" port="6800"/> <server id='b' address='127.0.0.1' port='6801'/> <server id='c' address='127.0.0.1' port='6802' /> <server id='d' address='127.0.0.1' port='6803' /> </cluster> <cluster id="web-tier"> <server-default> <!-- The http port --> <http address="*" port="80"/> </server-default> <server id="web-a" address="127.0.0.1" port="6700"/> <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>
resin-ab.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> <!-- - Logging configuration for the JDK logging API. - <log name="" level="info" path="stdout:" - timestamp="[%H:%M:%S.%s] {%{thread}} "/> --> <log name="" level="all" path="og/stdout.log" archive-format="%Y-%m-%d.stdout.log.zip" timestamp="[%H:%M:%S.%s] {%{thread}} " rollover-period="1W"/> <!-- - 'info' for production - 'fine' or 'finer' for development and troubleshooting --> <logger name="com.caucho" level="finer"/> <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 10 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="25"/> <character-encoding>utf-8</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> <!-- - SSL port configuration: - - <http address="*" port="8443"> - <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>-Xmx256m</jvm-arg> <jvm-arg>-Xss1m</jvm-arg> <jvm-arg>-Xdebug</jvm-arg> <jvm-arg>-XX:PermSize=64m</jvm-arg> <jvm-arg>-XX:MaxNewSize=128m</jvm-arg> <jvm-arg>-XX:MaxPermSize=128m</jvm-arg> <jvm-arg>-Djava.awt.headless=true</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>6600</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>256</thread-max> <!-- Configures the socket timeout --> <socket-timeout>65s</socket-timeout> <!-- Configures the keepalive --> <keepalive-max>128</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="a" address="127.0.0.1" port="6800"/> <server id='b' address='127.0.0.1' port='6801'/> <server id='c' address='127.0.0.1' port='6802' /> <server id='d' address='127.0.0.1' port='6803' /> <!-- - 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> <fast-jsf>false</fast-jsf> </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>8</prepared-statement-cache-size> <max-connections>20</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> <host id="www.xxx.net" root-directory="."><!--这里可以设置多个虚拟主机--> <web-app id="/" root-directory="D:\wwwroot\jeef\WebContent"> </web-app> <web-app id="/resin-admin" root-directory="${resin.home}/php/admin"> <prologue> <resin:set var="resin_admin_external" value="true"/> <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="9080"/> </server-default> <server id="web-a" address="127.0.0.1" port="6700"/> <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>
发表评论
-
Proxool监控页面乱码 Proxool0.9.1监控页面乱码
2009-11-27 22:17 1235做好了proxool后查看监控,总是出现乱码,虽然不影响程序运 ... -
碰到resin怪问题
2009-11-27 22:02 11072008-11-12 17:09 META-INF/c.t ... -
resin3虚拟主机配置
2009-11-27 22:02 947我因为做本机开发测试使用,并不是生产机,所以仅提供最简单的说明 ... -
resin3状态监视 resin-status配置
2009-11-27 22:01 1965在resin.conf文件下的<web-app-defa ... -
resin3 resin-admin 后台管理
2009-11-27 21:59 16692009-06-03 23:39 首先进入http://l ... -
resin3.16集群 resin3单机集群
2009-11-27 21:57 11092009-06-11 23:32 以下内容仅仅是集群改 ...
相关推荐
泛微 ecology nginx+resin集群部署说明文档,详细讲解ecology 集群部署的实施方式方法及步骤。
e-cology F5+resin集群部署手册
NULL 博文链接:https://wuquanyin1011.iteye.com/blog/1198689
NULL 博文链接:https://baobeituping.iteye.com/blog/857085
泛微 e-cology9 nginx resin 集群部署手册
详细描述了Resin负载均衡配置,通过RESIN搭建集群系统
resin+nginx+使用说明文档,还附带有常用的配置文档。
linux nginx+resin集群实现及使用反向代理转发请求
Resin配置详细说明,里面包括一些基本的配置如:虚拟目录和myeclipse集成等,当然肯定包括集群等重要特性的,如果还是搞不懂的欢迎给我留言一起研究一下!O(∩_∩)O哈哈~!
强大的 集群 负载均衡 Nginx 的使用配置说明,resin
Nginx+KeepAlived+Tomcat负载架构 这个可以实现tomcat集群,并且可以使服务器主备机进行切换。如果其中一台机器当机,会自动切换到另一台机器。客服端感受不到服务器当掉。非常实用。
ecology 安装文档,配置文档,泛微版本 8, Linux for Oracle 数据库
可以用的,我试过。但还有很多不懂的地方,以后一起交流。
3-Linux经典之30+必备命令,一听就会懂!.mp4 4-文件命运用户&权限来主宰,风险防控要做好!.mp4 5-Linux服务管理&本地源实战,我的Server我做主。.mp4 6-Linux磁盘剖析&企业应用,经典必备应用。.mp4 7-MYSQL8.0...
resin jetty 容灾 日志框架 开源框架 slf4j 框架实现 log4j logback commong logging jdk logger 测试框架 测试框架 junit easymock testng mockito bug管理 禅道 jira 开发工具 编程工具 ...
从只有一个小的Jar文件就可以运行Servlet/JSP,到由多台服务器 进行集群和负载均衡,到多台Application进行事务处理,消息处理,一台服务器到无数 台服务器,Java显示了一个巨大的生命力。 多样化和功能强大的开发...