Resin

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
(相关项目)
 
(未显示2个用户的20个中间版本)
第1行: 第1行:
[[Image:Caucho-logo.jpg|right]] [[Image:Resin-logo.gif|right]]
+
[[Image:Resin-90x90.png|right]]
 +
{{SeeWikipedia|Resin Server}}
  
http://www.caucho.com/
+
Resin: fast, open source Java-PHP application server
  
[[category:Javaee]]
+
==简介==
 +
 
 +
==架构==
 +
*[http://caucho.com/products/resin/resin-benefits Resin Architecture]
 +
 
 +
==指南==
 +
1. Install JDK 1.5 or later and link /usr/java to the Java home or set environment variable JAVA_HOME.
 +
2. tar -vzxf resin-3.1.0.tar.gz in /usr/local/share
 +
3. (Optional) Link /usr/local/share/resin to the resin-3.1.0 directory.
 +
4. ./configure; make; make install
 +
5. Run java -jar resin/lib/resin.jar Or resin/bin/httpd.sh
 +
6. Browse http://localhost:8080
 +
 
 +
==Adding Content==
 +
1. Add PHP files like resin-3.1.0/webapps/ROOT/hello.php.
 +
* The URL in your browser will be http://localhost:8080/hello.php
 +
2. Add JSP files like resin-3.1.0/webapps/ROOT/hello.jsp.
 +
* The URL in your browser will be http://localhost:8080/hello.jsp
 +
3. Add servlets like resin-3.1.0/webapps/ROOT/WEB-INF/classes/test/HelloServlet.java
 +
* Create a file resin-3.1.0/webapps/hello/WEB-INF/resin-web.xml to configure the servlet.
 +
4. Add .war files like resin-3.1.0/webapps/hello.war.
 +
* The URL in your browser is http://localhost:8080/hello
 +
5. Create web-apps directly like resin-3.1.0/webapps/hello/index.php The URL in your browser is http://localhost:8080/hello.
 +
* Create a file resin-3.1.0/webapps/hello/WEB-INF/resin-web.xml to configure the 'hello' web application.
 +
 
 +
==Resin Administration==
 +
By default, access to the administration application is limited to the localhost.
 +
http://localhost:8080/resin-admin/
 +
resin.conf
 +
<resin:set var="resin_admin_password"  default="yCGkvrQHY7K8qtlHsgJ6zg=="/>  // Digest password
 +
<resin:set var="resin_admin_localhost" default="true"/>
 +
Restart resin with java -jar resin-3.1.0/lib/resin.jar restart
 +
http://localhost:8080/resin-admin/login.php?target=/resin-admin/status.php
 +
 
 +
==Resin and SOA==
 +
[[Image:resin_soa.png|right|thumb|Resin SOA]]
 +
The Resin Service-Oriented Architecture is an infrastructure that allows a service to be exposed via many different service protocols. For example in this tutorial, there is a plain-old Java object (POJO) that implements a service and this service is made available using REST, SOAP, Hessian, and JNDI.
 +
 
 +
==Running Resin as a daemon==
 +
* Start resin with java -jar resin-3.1.0/lib/resin.jar start
 +
* Stop resin with java -jar resin-3.1.0/lib/resin.jar stop
 +
* Restart resin with java -jar resin-3.1.0/lib/resin.jar restart
 +
 
 +
==Integrated Web Server==
 +
*Resin with Apache
 +
[[Image:resin_with_apache.gif]]
 +
*Resin with IIS
 +
[[Image:resin_with_iis.gif]]
 +
 
 +
==相关项目==
 +
*[[Quercus]]: PHP in Java
 +
*[[Hessian Web Services]]
 +
*[[Baratine]]
 +
 
 +
==链接==
 +
*http://www.caucho.com/
 +
 
 +
{{comment}}
 +
 
 +
[[category:java]]
 +
[[category:PHP]]
 +
[[category:web server]]

2016年6月5日 (日) 04:47的最后版本

Resin-90x90.png
Wikipedia-35x35.png 您可以在Wikipedia上了解到此条目的英文信息 Resin Thanks, Wikipedia.

Resin: fast, open source Java-PHP application server

目录

[编辑] 简介

[编辑] 架构

[编辑] 指南

1. Install JDK 1.5 or later and link /usr/java to the Java home or set environment variable JAVA_HOME.
2. tar -vzxf resin-3.1.0.tar.gz in /usr/local/share
3. (Optional) Link /usr/local/share/resin to the resin-3.1.0 directory.
4. ./configure; make; make install
5. Run java -jar resin/lib/resin.jar Or resin/bin/httpd.sh
6. Browse http://localhost:8080

[编辑] Adding Content

1. Add PHP files like resin-3.1.0/webapps/ROOT/hello.php.

2. Add JSP files like resin-3.1.0/webapps/ROOT/hello.jsp.

3. Add servlets like resin-3.1.0/webapps/ROOT/WEB-INF/classes/test/HelloServlet.java

  • Create a file resin-3.1.0/webapps/hello/WEB-INF/resin-web.xml to configure the servlet.

4. Add .war files like resin-3.1.0/webapps/hello.war.

5. Create web-apps directly like resin-3.1.0/webapps/hello/index.php The URL in your browser is http://localhost:8080/hello.

  • Create a file resin-3.1.0/webapps/hello/WEB-INF/resin-web.xml to configure the 'hello' web application.

[编辑] Resin Administration

By default, access to the administration application is limited to the localhost.

http://localhost:8080/resin-admin/

resin.conf

<resin:set var="resin_admin_password"  default="yCGkvrQHY7K8qtlHsgJ6zg=="/>  // Digest password
<resin:set var="resin_admin_localhost" default="true"/>

Restart resin with java -jar resin-3.1.0/lib/resin.jar restart

http://localhost:8080/resin-admin/login.php?target=/resin-admin/status.php

[编辑] Resin and SOA

Resin SOA

The Resin Service-Oriented Architecture is an infrastructure that allows a service to be exposed via many different service protocols. For example in this tutorial, there is a plain-old Java object (POJO) that implements a service and this service is made available using REST, SOAP, Hessian, and JNDI.

[编辑] Running Resin as a daemon

  • Start resin with java -jar resin-3.1.0/lib/resin.jar start
  • Stop resin with java -jar resin-3.1.0/lib/resin.jar stop
  • Restart resin with java -jar resin-3.1.0/lib/resin.jar restart

[编辑] Integrated Web Server

  • Resin with Apache

Resin with apache.gif

  • Resin with IIS

Resin with iis.gif

[编辑] 相关项目

[编辑] 链接

Comment-32x32.png

<discussion>characters_max=300</discussion>

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱