Resin is Caucho company's products, is a very popular support servlets and JSP engine, fast. The resin itself contains a Web server that supports http/1.1 .
Note: resin requires a corresponding JDK version support and needs to be viewed on the official website.
First, configure the JDK
1. Download and install the JDK
Download Jdk-6u11-linux-i586.bin
Execute SH jdk-6u11-linux-i586.bin
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6F/44/wKioL1WWSfGyG93SAAE0lXloW6A333.jpg "title=" 1.PNG " alt= "Wkiol1wwsfgyg93saae0lxlow6a333.jpg"/>
2. Configuring the JDK
Establish the installation path/var/application
[Email protected] jdk1.6.0_11]# mkdir-p/var/application
Cut the JDK directory to application
[Email protected] ~]# MV jdk1.6.0_11//var/application/
Add a soft connection
[Email protected]esin ~]# ln-s/var/application/jdk1.6.0_11//var/application/jdk
[Email protected] ~]# ls-l/VAR/APPLICATION/JDK
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6F/44/wKioL1WWTGXxils5AADDqgdynyE858.jpg "title=" 3.PNG " alt= "Wkiol1wwtgxxils5aaddqgdynye858.jpg"/>
3, test installation of Java
[Email protected] ~]#/var/application/jdk/bin/java-version
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6F/47/wKiom1WWSiexpakrAADM-aAtjE0058.jpg "title=" 4.PNG " alt= "Wkiom1wwsiexpakraadm-aatje0058.jpg"/>
4, set the Java environment variable, append the global variable to/etc/profile
[email protected] ~]# cat << EOF >>/etc/profile
> #java env start config by Wbq 2015-7-3
> Export JAVA_HOME=/VAR/APPLICATION/JDK
> Export classpath= $CLASSPATH: $JAVA _home/lib: $JAVA _home/jre/lib
> Export path= $JAVA _home/bin: $JAVA _home/jre/bin: $PATH: $HOMR/bin
> Export Resin_home=/var/application/resin
> EOF
5, implementation. /etc/profile Effective
[Email protected] ~]#. /etc/profile
[Email protected] ~]# echo $JAVA _home
/var/application/jdk
[Email protected] ~]# echo $PATH
/var/application/jdk/bin:/var/application/jdk/jre/bin:/bin:/jre/bin:/usr/kerberos/sbin:/u sr/kerberos/bin:/usr/ Local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/b In:/bin
[Email protected] ~]# echo $CLASSPATH
:/lib:/jre/lib:/var/application/jdk/lib:/var/application/jdk/jre/lib
[Email protected] ~]# echo $RESIN _home
/var/application/resin
6. Test the global effect again
[Email protected] ~]# java-version
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6F/44/wKioL1WWTBXBqdjLAACymyAzqII979.jpg "title=" 5.PNG " alt= "Wkiol1wwtbxbqdjlaacymyazqii979.jpg"/>
This completes the JDK environment.
Second, installation configuration resin
1. Download and install resin
Resin-3.1.13.tar.gz
Extract
TAR-ZXVF resin-3.1.13.tar.gz
Cut to installation path
[Email protected] ~]# MV resin-3.1.13/var/application/
Add a soft connection
[Email protected] ~]# ln-s/var/application/resin-3.1.13//var/application/resin
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6F/47/wKiom1WWS6fRht6YAAE7CNxAmZc942.jpg "title=" 6.PNG " alt= "Wkiom1wws6frht6yaae7cnxamzc942.jpg"/>
2. Edit the configuration file
[Email protected] ~]# vi/var/application/resin/conf/resin.conf
<server id= "wbq" address= "192.168.6.128" port= "6800"/>
3. Use the command to start/var/application/resin/bin/httpd.sh-server WBQ start
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6F/44/wKioL1WWTtyRL7ZTAACMxzcjkIg351.jpg "title=" 9.PNG " alt= "Wkiol1wwttyrl7ztaacmxzcjkig351.jpg"/>
View Startup Netstat-lnt
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6F/44/wKioL1WWTxzRqWGCAAF9A5RtyF8627.jpg "title=" 10.PNG "alt=" Wkiol1wwtxzrqwgcaaf9a5rtyf8627.jpg "/>
4, test in Windows Browser, as shown below, that is, you can use
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6F/44/wKioL1WWT2zwk7vwAAEO8vnbt_w017.jpg "title=" 7.PNG " alt= "Wkiol1wwt2zwk7vwaaeo8vnbt_w017.jpg"/>
Add test.jsp page, test
[Email protected] ~]# cd/var/application/resin/webapps/root/
[[email protected] root]# ls
index.jsp test.jsp Web-inf
[email protected] root]# cat test.jsp
1+1=<%=1+1%>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6F/44/wKioL1WWUC6iB5huAACOczJw27I971.jpg "title=" 8.PNG " alt= "Wkiol1wwuc6ib5huaacoczjw27i971.jpg"/>
At this point, the simple resin server configuration is complete.
This article is from the "Filter New" blog, please be sure to keep this source http://wahehe.blog.51cto.com/8935316/1670632
Configuration of Java Application Server resin under Linux