resin配置文件解释
很多配置文件的详解在网上都能查到,比如Apache的httpd.conf nginx的nginx.conf
最近在用一款java解释器软件,resin,网上找资料,发现都是3.0和2.0版本的,可能是不是这个软件用户太少了,有没有哪位了解4.0的resin.xml 和resin.properties,谢谢,我晒出具体内容,resin.xml 如下:
<!--
- Resin 4.0 configuration file.
-->
<resin xmlns="http://caucho.com/ns/resin"
xmlns:resin="urn:java:com.caucho.resin">
<!-- property-based Resin configuration -->
<resin:properties path="${__DIR__}/resin.properties" optional="true"/>
<resin:properties path="cloud:/resin.properties"
optional="true" recover="true"/>
<resin:if test="${properties_import_url}">
<resin:properties path="${properties_import_url}"
optional="true" recover="true"/>
</resin:if>
<!-- Logging configuration for the JDK logging API -->
<log-handler name="" level="all" path="stdout:"
timestamp="[%y-%m-%d %H:%M:%S.%s]"
format=" {${thread}} ${log.message}"/>
<!--
- Alternative pseudo-TTCC log format
-
- <log-handler name="" level="all" path="stdout:"
- timestamp="%y-%m-%d %H:%M:%S.%s"
- format=" [${thread}] ${log.level} ${log.shortName} - ${log.message}"/>
-->
<!--
- level='info' for production
- 'fine' or 'finer' for development and troubleshooting
-->
<logger name="" level="${log_level?:'info'}"/>
<logger name="com.caucho.java" level="config"/>
<logger name="com.caucho.loader" level="config"/>
<!--
- Default configuration applied to all clusters, including
- HTTP, HTTPS, and /resin-admin configuration.
-->
<resin:import path="${__DIR__}/cluster-default.xml"/>
<!--
- health configuration
-->
<resin:import path="${__DIR__}/health.xml"/>
<!--
- Remote management requires at least one enabled admin user.
-->
<resin:AdminAuthenticator>
<user name="${admin_user}" password="${admin_password}"/>
<resin:import path="${__DIR__}/admin-users.xml" optional="true"/>
<resin:import path="cloud:/admin-users.xml" optional="true" recover="true"/>
</resin:AdminAuthenticator>
<!--
- For clustered systems, create a password in as cluster_system_key
-->
<cluster-system-key>${cluster_system_key}</cluster-system-key>
<!--
- For production sites, change dependency-check-interval to something
- like 600s, so it only checks for updates every 10 minutes.
-->
<dependency-check-interval>${dependency_check_interval?:'2s'}</dependency-check-interval>
<!-- For resin.properties dynamic cluster joining -->
<home-cluster>${home_cluster}</home-cluster>
<home-server>${home_server}</home-server>
<elastic-server>${elastic_server}</elastic-server>
<elastic-dns>${elastic_dns}</elastic-dns>
<!--
- Configures the main application cluster. Load-balancing configurations
- will also have a web cluster.
-->
<cluster id="app">
<!-- define the servers in the cluster -->
<server-multi id-prefix="app-" address-list="${app_servers}" port="6800"/>
<host-default>
<!-- creates the webapps directory for .war expansion -->
<web-app-deploy path="webapps"
expand-preserve-fileset="WEB-INF/work/**"
multiversion-routing="${webapp_multiversion_routing}"
path-suffix="${elastic_webapp?resin.id:''}"/>
</host-default>
<!-- auto virtual host deployment in hosts/foo.example.com/webapps -->
<host-deploy path="hosts">
<host-default>
<resin:import path="host.xml" optional="true"/>
</host-default>
</host-deploy>
<!-- the default host, matching any host name -->
<host id="" root-directory=".">
<!--
- webapps can be overridden/extended in the resin.xml
-->
<web-app id="/" root-directory="webapps/ROOT"/>
</host>
<resin:if test="${resin_doc}">
<host id="${resin_doc_host}" root-directory="${resin_doc_host}">
<web-app id="/resin-doc" root-directory="${resin.root}/doc/resin-doc"/>
</host>
</resin:if>
</cluster>
<cluster id="web">
<!-- define the servers in the cluster -->
<server-multi id-prefix="web-" address-list="${web_servers}" port="6810"/>
<host id="" root-directory="web">
<web-app id="">
<resin:LoadBalance regexp="" cluster="app"/>
</web-app>
</host>
</cluster>
<cluster id="memcached" xmlns:memcache="urn:java:com.caucho.memcached">
<!-- define the servers in the cluster -->
<server-multi id-prefix="memcached-" address-list="${memcached_servers}" port="6820">
<!-- listen for the memcache protocol -->
<listen port="${memcached_port?:11211}"
keepalive-timeout="600s" socket-timeout="600s">
<memcache:MemcachedProtocol/>
</listen>
</server-multi>
</cluster>
<cluster id="proxycache">
<!-- define the servers in the cluster -->
<server-multi id-prefix="proxycache-" address-list="${proxycache_servers}" port="6830"/>
<host id="" root-directory="proxycache">
<web-app id="">
<resin:HttpProxy regexp=".*">
<!-- backend HTTP servers to proxy to -->
<addresses>${backend_servers}</addresses>
</resin:HttpProxy>
</web-app>
</host>
</cluster>
</resin>
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.
#
# Individual server overrides can be specified by prepending the server.id.
# For example, increasing the log level for an individual server:
#
# log_level : info
# app-0.log_level : finest
#
# Like Resin XML configuration, modification of this file will trigger
# a restart.
#
# General log level (modify resin.xml for more granular log level adjustments)
# log_level : finer
# Enable verbose browser error reporting
dev_mode : true
# How often Resin should check for updated files.
# dependency_check_interval : 5m
# Enable /resin-doc Resin documentation
resin_doc : true
resin_doc_host :
# List Triad server ip-addresses:hmux-port for each tier, space separated
# App tier Triad servers must be listed to enable web-tier to
# app-tier load-balancing
# web-tier Triad servers: web-0 web-1 web-2
# web_servers : 127.0.0.1:6810
# app-tier Triad servers: app-0 app-1 app-2
app_servers : 127.0.0.1:6800
# Configures Resin for a memcached server tier
# memcached-tier Triad servers: memcached-0 memcached-1 memcached-2
# memcached_servers : 127.0.0.1:6820
# memcached_port : 11211
# proxycache tier: proxycache-0 proxycache-1 proxycache-2
# proxycache_servers : 127.0.0.1:6830
# backend_servers : 127.0.0.1:80
# Allow elastic nodes to join the cluster (enable for cloud mode)
# elastic_cloud_enable : true
# The cluster that elastic nodes should join - each will contact a Triad server
# Use a separate resin.properties file for each cluster
home_cluster : app
# Used for an elastic server to join the cluster in home_cluster
# elastic_server : true
# Create a distinct webapps/ directory for each server, for vertical scaling
# elastic_webapp : true
# Used for cloud servers with dynamic IP addresses where the DNS name for the
# server is assigned after the server starts. Resin will retry the start.
# elastic_dns : true
# specifies the --server in the config file
# home_server : app-0
# Set HTTP and HTTPS bind address
# http_address : *
# Set HTTP and HTTPS ports.
# Use overrides for individual server control, for example: app-0.http : 8081
app.http : 36006
# app.https : 8443
web.http : 36006
# web.https : 8443
# memcached.http : 8080
# memcached.https : 8443
# proxycache.http : 8080
# proxycache.https : 8443
# For security, Resin can switch to a non-root user after binding to port 80
setuid_user :
setuid_group :
# Arg passed directly to the JVM
# jvm_args : -Xmx2048m -XX:MaxPermSize=256m
# jvm_mode : -server
# Local URLs for the watchdog to check to ensure the server is up,
# space separated
# http_ping_urls : http://127.0.0.1/test.jsp
# Throttle the number of active threads for a port
port_thread_max : 256
accept_thread_max : 32
accept_thread_min : 4
# Enable JNI TCP speed optimizations
tcp_cork : true
sendfile : true
keepalive_select_enable : true
# OpenSSL certificate configuration
# Keys are typically stored in the resin configuration directory.
# openssl_file : keys/test.crt
# openssl_key : keys/test.key
# openssl_password : changeme
# JSSE certificate configuration
# Keys are typically stored in the resin configuration directory.
# jsse_keystore_type : jks
# jsse_keystore_file : /etc/resin/keys/server.keystore
# jsse_keystore_password : changeme
# In absence of a signed certificate, Resin will fallback to using a
# self-signed development certificate if HTTPS is enabled
# Enable the proxy-cache - for caching static content in memory
proxy_cache_enable : true
# Sets the proxy cache memory size
# proxy_cache_size : 256m
# Enable clustered persistent sessions (for failover)
session_store : true
# disable the quercus *.php mapping when using Apache for PHP
# quercus_disable : true
# Web-apps named with numeric suffixes, e.g. foo-10.0.war and can be browsed
# as /foo. When a new version of the web-app is deployed, Resin continues
# to route active session requests to the previous web-app version while
# new sessions go to the new version, so users will not be aware of the
# application upgrade.
# webapp_multiversion_routing : true
# Set the email address to receive weekly and restart PDF reports
# email : admin@example.com
# Set a global password to prevent foreign Resin instances from connecting.
# Must be identical between web, app, and cache clusters.
# cluster_system_key : changeme
# Enable remote admin (for remote CLI and for EC2 ext: triad discovery)
# remote_admin_enable : true
# Enable /resin-admin web administration console
web_admin_enable : true
web_admin_host :
# Permit access to /resin-admin from non-local network ip-addresses
# web_admin_external : true
# Require HTTPS to access /resin-admin
# web_admin_ssl : true
# Enable Resin REST Admin
# rest_admin_enable : true
# Require SSL for REST Admin
# rest_admin_ssl : true
# Access to /resin-admin and remote CLI is password restricted.
# Use "resinctl generate-password" and copy/paste here to set the admin
# admin_user : admin
# admin_password : {SSHA}xxxxxxxx
# Enable reading EC2 user data as resin properties
# properties_import_url : http://169.254.169.254/latest/user-data
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
引用来自“梅开源”的评论
他们家有官方的admin手册啊
他们家有官方的admin手册啊
船老大,我就想问两块东西,一个session在哪里设置,一个最大连接数,最大连接时间在哪里设置,?英文不太好。。
回复
就是在resin.xml里
都是英文单词,没啥要说的了吧。。resin 官方也有PDF文档的