Resin configuration
Resin configuration
The official website http://caucho.com/
Resin needs jdk support
Jdk official website http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html
Cannot compile java program without jdk
1. Install jdk
Cd / usr/local/src
Wget' http://download.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-i586.tar.gz?AuthParam=1466748694_4fba144996aad848aa5ee7344c94ad2e'
Tar-zxvf jdk-8u77-linux-i586.gz / / file name may be different
Mv jdk1.8.0_77 / usr/local/
Vim / etc/profile.d/java.sh
Add content:
JAVA_HOME=/usr/local/jdk1.8.0_77
JAVA_BIN=/usr/local/jdk1.8.0_77/bin
JRE_HOME=/usr/local/jdk1.8.0_77/jre
CLASSPATH=/usr/local/jdk1.8.0_77/jre/lib:/usr/local/jdk1.8.0_77/lib:/usr/local/jdk1.8.0_77/jre/lib/charsets.jar
PATH=/usr/local/jdk1.8.0_77/bin:/usr/local/jdk1.8.0_77/jre/bin:$PATH
/ / put $PATH at the end of the line and make sure that the first java searched is installed by yourself.
Source / etc/profile.d/java.sh
Java-version
/ / display the version installed by yourself is OK
2 install resin:
Cd / usr/local/src/
Wget' http://caucho.com/download/resin-4.0.44.tar.gz'
Tar zxvf resin-4.0.44.tar.gz
Cd resin-4.0.44
. / configure-- prefix=/usr/local/resin--with-java-home=/usr/local/jdk1.8.0_91
Make
Make install
Cd / usr/local/resin/
/ etc/init.d/resin start / / start script generation automatically
Vim / usr/local/resin/conf/resin.properties / / modify port number
Find app.http: 8080
Change to app.http: 80
/ etc/init.d/resin stop
/ etc/init.d/resin start
Netstat-lnp / / Port 80 starts slowly
Vim / usr/local/resin/conf/resin.xml / / configure virtual host
Add virtual hosts to the structure
Mkdir / tmp/resin
/ etc/init.d/resi stop
/ etc/init.d/resin start
Vim / tmp/resin/1.jsp
Add content:
Now time is:
Curl-x192.168.134.137purl 80 www.111.com/1.jsp
/ / normal resolution indicates that the configuration is successful