Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Resin implementation configuration and installation method

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report