win10下Resin安装--入门(1)
我个人采用是解压版的,直接解压亦可使用下载地址
开启该服务需要的环境:首先你的JDK必须安装成功
解压后你会看到

当我们运行程序时,需要修改配置文件中的相关配置:
1、端口:以免端口被占用

2、相应的初始页面:默认的路劲会出现找不到也没的情况(404)
以上两点是最基本的
该窗口是对resin服务的开启和停止

出现改信息则服务启动成功,可以对该端口进行访问了
一下对resin.xonf配置文件进行详细描述:
<resin xmlns="http://caucho.com/ns/resin" xmlns:resin="http://caucho.com/ns/resin/core">
<!-- adds all .jar files under the resin/lib directory (加载 resin/lib 下的所有.jar文件) -->
<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>
<span id="more-321"></span>
<!--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.(JDK日志配置)-->
<log name="" level="info" path="stdout:"
timestamp="[%H:%M:%S.%s] {%{thread}} "/>
<!-- 'info' for production 'fine' or 'finer' for development and troubleshooting (日志信息级别:info生产环境 fine和finer适合开发环境和调试环境)-->
<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 10 minutes.(环境依赖检查时间,生产系统设置长点,600s 10分钟)-->
<dependency-check-interval>2s</dependency-check-interval>
<!-- SMTP server for sending mail notifications (SMTP服务器配置)-->
<system-property mail.smtp.host="127.0.0.1"/>
<system-property mail.smtp.port="25"/>
<!-- Sets the default character encoding to utf-8 <character-encoding>utf-8</character-encoding> (默认字符集为 utf-8 ) -->
<!-- You can change the compiler to "javac", "eclipse" or "internal".(你可以把编译器改成 javac、eclipse 或 internal)-->
<javac compiler="internal" args="-source 1.5"/>
<!-- Security providers. <security-provider> com.sun.net.ssl.internal.ssl.Provider </security-provider> (SSL 安全)-->
<!-- 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"/>
(去掉注视,可以使用resin提供的xml应用)
-->
<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服务的端口)-->
<http address="*" port="8080"/>
<!-- 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> (SSL配置)
-->
<!-- The JVM arguments (JVM参数设置)-->
<jvm-arg>-Xmx256m</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)-->
<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.(配置resin强制重启时的最小空闲内存)-->
<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 的最大链接数和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.(使用unix系统时 启动resin的用户和组)
- <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="6800"/>
<!-- 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会话定义一个不同的cookie)
- <ssl-session-cookie>SSL_JSESSIONID</ssl-session-cookie>
-->
<!-- Enables the cache (available in Resin Professional) (缓存功能启用, 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. (可以定期检查服务器的状态和死锁检查..所有服务器都可以添加的<url> s的检查 Professional功能 )-->
<resin:if test="${resin.professional}">
<ping>
<!-- <url>http://localhost:8080/test-ping.jsp</url> -->
</ping>
</resin:if>
<!-- Defaults applied to each web-app.(默认web程序)-->
<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. (扩展库的公共jar文件,扩展是安全的即使没有类装载器知道的jars,装载的类将为每个应用分别装载,也就是这些类都是不同的)
-->
<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. (安全的原因,默认禁用了会话的URL) -->
<session-config>
<enable-url-rewriting>false</enable-url-rewriting>
</session-config>
<!-- For security, set the HttpOnly flag in cookies.(安全原因,在cokkies中设置 HttpOnly标记 防止跨站攻击)
- <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包有不正确的。TLD文件。它可以设置validate-taglib-schema为false来变通解决这些包。使其可以正常工作) -->
<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>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.(如果和别的 web服务器整合,这个可以被去掉,因为web服务器也可以记录这些信息)-->
<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 (.war文件的目录)-->
<web-app-deploy path="webapps"/>
<!-- creates the deploy directory for .ear expansion (.ear文件的目录)-->
<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 (.rar文件目录)-->
<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="webapps/ROOT"/>
<web-app id="/resin-admin" root-directory="${resin.home}/php/admin">
<!-- Administration application /resin-admin (管理应用程序 /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 (配置为Web层/负载平衡器)-->
<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>
win10下Resin安装--入门(1)的更多相关文章
- 全网最新方法:Win10下如何安装和搭建appium自动化测试环境
为了方便大家,下面是本人安装和搭建appium所需要的软件,自取. 链接:https://pan.baidu.com/s/1wl5Xnos4BmnSZsBRd6B5YA#list/path=%2F ...
- Anaconda3(5-2)程序编辑器 win10下PyCharm安装及配置Pytorch流程
由于破解和付费问题,不推荐.优先用自带的spyder Win10 下PyCharm安装流程:(1)官网:https://www.jetbrains.com/pycharm/download/#sect ...
- win10 下Oracle安装
在win10 64bit下安装oracle 11的时候,有些问题不注意,安装的时候才遇到就gg了.下面将介绍win10下安装oracle 11的步骤以及安装过程中遇到的一些问题及解决方案. 安装过程中 ...
- ml-agent:Win10下环境安装
这是我看到的最全面最详细的ml-agent讲解.(只用于学习与知识分享,如有侵权,联系删除.谢谢!) 来自CodeGize的个人博客 .源链接:https://www.cnblogs.com/Code ...
- MongoDB在Win10下的安装
原文地址:http://blog.csdn.net/polo_longsan/article/details/52430539 1.下载MongoDB在windows下的安装文件 首先去官网https ...
- 萌新深度学习与Pytorch入门记录(一):Win10下环境安装
深度学习从入门到入土,安装软件及配置环境踩了不少坑,过程中参考了多处博主给的解决方法,遂整合一下自己的采坑记录. (若遇到不一样的错误,请参考其他博主答案解决) 笔者电脑系统为win10系统,在此环境 ...
- win10下caffe安装与mnist测试实验注意点
caffe安装 安装内容:win10教育版+anaconda2+python(无gpu版本) 安装教程:主要依照三年一梦教程:https://www.cnblogs.com/king-lps/p/65 ...
- 【20181025】win10下Python安装osmnx包
系统:win10 64位 Python:3.7 在网上查了很多资料,主要有两种方法安装osmnx包,一种是通过anaconda安装,这种方法会自动帮你装好osmnx的依赖包:另一种是用pip安装,需要 ...
- win10下MongoDB安装
下载 MongoDB 官网下载链接 如果被墙的话,请点击 mongodb-win32-x86_64-2008plus-ssl-3.4.1-signed.msi 下载 选择custom安装方式,手动切换 ...
随机推荐
- css常见的各种布局下----三列布局
css 三列布局,左右固定宽度右边自适应 1不使用定位,只使用浮动可以实现左右固定,中间宽度自适应布局 1.1.1 自适应部分一定要放第一个位子,使用浮动,并且设置宽度为100%,不设置浮动元素内容不 ...
- Android-原笔迹手写的探索与开发
前言 这篇文章主要是关于移动端原笔迹的开发,让平板上的手写效果达到笔迹光滑且有笔锋. 介绍关于原笔迹的算法思路. 项目github地址 算法思路分析 曲线拟合算法 利用曲线拟合算法增加虚拟的点,使得 ...
- asp.net core重新加载应用配置
asp.net core重新加载应用配置 Intro 我把配置放在了数据库或者是Redis里,配置需要修改的时候我要直接修改数据库,然后调用一个接口去重新加载应用配置,于是就尝试写一个运行时重新加载配 ...
- git入门手册:git的基本安装,本地库管理,远程上传
前言: git是分布式的版本库控制系统,它能方便你将自己的代码寄存于远程服务器上,从而实现集体合作开发.git有GUI 图形界面,然而使用终端命令仍是主流.以下基于Ubuntu系统操作git(其方式也 ...
- iTop软件功能分析以及优缺点比较
iTop软件功能分析以及优缺点比较 iTop对标文档 1. 概述 2. CMDB 3. 主要功能模块 3.1 配置管理(Configuration Managment) 3.2 用户请求管理(Help ...
- 关于linux上postgresql的一些理解
刚开始接触postgresql,安装后就有一个默认用户postgres,而且在启动postgresql后只能通过切换到linux的postgres用户才能登录数据库进行操作,和Mysql的登录认证居然 ...
- mssql sqlserver 三种数据表数据去重方法分享
摘要: 下文将分享三种不同的数据去重方法数据去重:需根据某一字段来界定,当此字段出现大于一行记录时,我们就界定为此行数据存在重复. 数据去重方法1: 当表中最在最大流水号时候,我们可以通过关联的方式为 ...
- Hexo + GitHub 搭建个人博客
对于程序员来说,搭建和维护一个个人博客十分必要,写博客既是对所学知识的整理和总结,同时也能向他人展现自己的学习成果.这篇教程就是基于 Hexo 和 GitHub 来搭建属于自己的个人博客,简单快捷, ...
- iFace Chain [ 爱妃链 ] 或将凭借人脸密钥技术成为安全领域最大的赢家
前段时间iFace Chain [ 中文音译名称: 爱妃链 ] 安全专家揭密了区块链领域,数字资产存放于无信用钱包中的一些风险,并为区块链玩家解密如何安全保护资产私钥,我们再来回顾分析一下目前跑路钱包 ...
- qml demo分析(photosurface-图片涅拉)
阅读qml示例代码已有一小段时间,也陆续的写了一些自己关于qml示例代码的理解,可能由于自己没有大量的qml开发经验,总感觉复杂的ui交互qml处理起来可能会比较棘手,但事实总是会出人意料,今天我们就 ...