- 浏览: 212967 次
- 性别:
- 来自: 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 1271做好了proxool后查看监控,总是出现乱码,虽然不影响程序运 ... -
碰到resin怪问题
2009-11-27 22:02 11542008-11-12 17:09 META-INF/c.t ... -
resin3虚拟主机配置
2009-11-27 22:02 1027我因为做本机开发测试使用,并不是生产机,所以仅提供最简单的说明 ... -
resin3状态监视 resin-status配置
2009-11-27 22:01 2019在resin.conf文件下的<web-app-defa ... -
resin3 resin-admin 后台管理
2009-11-27 21:59 17052009-06-03 23:39 首先进入http://l ... -
resin3.16集群 resin3单机集群
2009-11-27 21:57 11422009-06-11 23:32 以下内容仅仅是集群改 ...
相关推荐
- 配置HTTP服务器部分,指定反向代理到Resin集群: ```nginx location / { proxy_pass http://resin_cluster; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; # 其他相关配置 } `...
6. **集群功能**:Resin3支持负载均衡和故障转移,可以轻松搭建多服务器集群,提升应用的可用性和可扩展性。 7. **热部署**:开发者可以在不中断服务的情况下更新应用,提高了开发和调试效率。 8. **管理工具**:...
泛微 ecology nginx+resin集群部署说明文档,详细讲解ecology 集群部署的实施方式方法及步骤。
Resin3和Resin4是该服务器软件的两个主要版本,它们各自具有不同的特性和改进。 Resin3是Resin的早期版本,它为开发者提供了一个强大而可靠的平台,用于部署和管理基于Java的Web应用。Resin3的主要特性包括: 1. *...
在Linux环境下,配置Resin集群通常涉及以下步骤: 1. **安装Resin**:首先,你需要在每台服务器上安装Resin软件。这通常通过下载Resin的tar.gz压缩包,解压并配置环境变量来完成。 2. **配置集群节点**:在Resin的...
通常,Resin的配置文件`resin.conf`位于`resin1`目录下,可以在这里设置服务器的端口、数据源、session管理、集群配置等参数。在`resin-webapp`目录下的`WEB-INF`目录里,可以放置Web应用的`web.xml`部署描述符,...
2. **虚拟主机**: 在`resin.conf`中,可以定义多个虚拟主机,通过`<host>`标签来设置不同的域名或IP地址映射到不同的应用目录。 3. **连接池配置**: Resin支持JDBC连接池,可以在`conf/resin.xml`中配置数据源,...
1. "resin配置.txt" 可能包含Resin服务器的配置教程或示例,可能包括如何设置虚拟主机、调整线程池、配置数据源、设置日志记录等关键参数。 2. "resin-4.0-admin.pdf" 很可能是Resin 4.0版本的管理员指南,详细阐述...
- 虚拟主机的概念及在 Resin 中的应用方法,包括多个域名指向同一服务器的不同目录。 #### 七、集群配置 - **Resin 集群** - 介绍如何配置 Resin 集群以提高可用性和负载能力,涵盖集群同步、会话复制等关键概念...
4. **负载均衡与集群**:Resin支持多服务器集群,可以实现自动负载均衡,提高系统的可用性和扩展性。 5. **高并发处理**:Resin通过非阻塞I/O模型处理并发请求,能有效应对高流量场景,避免了线程池的资源消耗。 6...
为了提高系统的可用性和性能,通常会采用集群部署的方式,而在此过程中,Nginx 和 Resin 服务器的结合使用是非常常见的一种架构。Nginx 作为反向代理和负载均衡器,Resin 则作为应用服务器,负责处理业务逻辑。 一...
2. 部署到Resin:将Web项目打包成WAR文件,然后将此WAR文件放入Resin的webapps目录下,或者在resin.xml中配置虚拟主机和应用路径,实现自动部署。 3. 启动Resin:通过IDE中的插件或手动执行Resin的start.sh(Linux/...
1. **安装与配置**:学习如何在不同的操作系统环境下安装Resin,并理解配置文件`resin.conf`中的各项设置。 2. **应用部署**:掌握WAR文件的部署方法,以及如何配置虚拟主机和Context。 3. **JNDI资源**:学习如何...
使用Resin Pro 4.0.65时,用户需要按照官方文档或在线教程进行配置,包括设置服务器端口、配置虚拟主机、定义数据源、启用HTTPS等。一旦配置完成,可以通过解压压缩包并运行启动脚本来启动服务器,然后在浏览器中...
5. **负载均衡和集群**:Resin提供了内置的负载均衡和集群功能,可以将请求自动分发到多个服务器节点,提高系统的可用性和可扩展性。 6. **JMX管理工具**:Resin 3.2.0集成了Java Management Extensions (JMX)技术...
- **VirtualHost配置**:配置服务器的虚拟主机,可以为不同的域名提供服务。 - **Connector配置**:定义服务器与客户端的连接器,包括HTTP、HTTPS协议,以及连接器的端口、最大连接数等。 - **JNDI资源**:配置...
6. **集群和负载均衡**:Resin可以通过其集群特性实现多个服务器间的负载均衡,提高系统的可用性和扩展性。 7. **Web应用部署**:通过WAR文件,开发者可以轻松地在Resin上部署和更新Web应用。 8. **内存管理**:...