Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Resin implementation configuration and installation method

Shulou Source: shulou.com Published: 2022-06-01 08:27:18 09月29日 Update

The following mainly brings you resin implementation configuration and installation methods, I hope that resin implementation configuration and installation methods can bring you practical use, which is also the main purpose of my editing this article. All right, don't talk too much nonsense, let's just read the following.

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

For the above about the resin implementation configuration and installation methods, we do not find it very helpful. If you need to know more, please continue to follow our industry information. I'm sure you'll like it.

Tags: Configuration content method following host virtual host success slogan name actual nonsense file more end version usefulness purpose program port article Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Huawei Apple Microsoft vpn